From: Antonio Ospite Date: Wed, 14 Nov 2018 16:24:30 +0000 (+0100) Subject: Fix PHP_CodeSniffer errors X-Git-Tag: v1.4.0~4 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/da9250bb9572c83ed397d3bfda0e44fa13016efb?hp=d84e6866a556f74f4c7623fcb415ad251ba00bfc 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 --- diff --git a/autoload.php b/autoload.php index d3ebc5a..d366bbb 100644 --- a/autoload.php +++ b/autoload.php @@ -1,4 +1,5 @@