From da9250bb9572c83ed397d3bfda0e44fa13016efb Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 14 Nov 2018 17:24:30 +0100 Subject: [PATCH] Fix PHP_CodeSniffer errors Fix the following errors reported by PHP_CodeSniffer: FILE: .../tweeper.php ----------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------- 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line ----------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------- FILE: .../src/Tweeper.php ----------------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------- 373 | ERROR | [x] Incorrect spacing between argument "$host" and equals sign; expected 1 but found 0 373 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$host"; expected 1 but found 0 373 | ERROR | [x] Incorrect spacing between argument "$validate_scheme" and equals sign; expected 1 but found 0 373 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$validate_scheme"; expected 1 but found 0 388 | ERROR | [x] Inline comments must start with a capital letter 388 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses ----------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------- FILE: .../autoload.php ----------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------- 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line ----------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------- Time: 260ms; Memory: 10Mb --- autoload.php | 1 + src/Tweeper.php | 4 ++-- tweeper.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload.php b/autoload.php index d3ebc5a..d366bbb 100644 --- a/autoload.php +++ b/autoload.php @@ -1,4 +1,5 @@