diff --git a/tests/codesniffer/FHComplete/tests/files/FHComplete/throws_pass.php b/tests/codesniffer/FHComplete/tests/files/FHComplete/throws_pass.php index 854344b5b..b2c1d2a04 100644 --- a/tests/codesniffer/FHComplete/tests/files/FHComplete/throws_pass.php +++ b/tests/codesniffer/FHComplete/tests/files/FHComplete/throws_pass.php @@ -8,29 +8,29 @@ use Other\Error as OtherError; class Throws { - /** - * Test throws - * - * @throws Exception An expection happened. - * @throws FHComplete\Boom A boom went off. - * @throws FHComplete\Error\Boom Oh, shucks, another boom. - * @throws Other\Crap Oh boy. - * @throws Other\Error\Issue A missing tissue for your PSR-2 issues. - * @return void - */ - public function test() - { - switch ($a) { - case 1: - throw new Boom(); - case 2: - throw new Error\Boom(); - case 3: - throw new OtherError\Issue(); - case 4: - throw new Crap(); - default: - throw new \Exception(); - } - } + /** + * Test throws + * + * @throws Exception An expection happened. + * @throws FHComplete\Boom A boom went off. + * @throws FHComplete\Error\Boom Oh, shucks, another boom. + * @throws Other\Crap Oh boy. + * @throws Other\Error\Issue A missing tissue for your PSR-2 issues. + * @return void + */ + public function test() + { + switch ($a) { + case 1: + throw new Boom(); + case 2: + throw new Error\Boom(); + case 3: + throw new OtherError\Issue(); + case 4: + throw new Crap(); + default: + throw new \Exception(); + } + } } diff --git a/tests/codesniffer/FHComplete/tests/files/control_structure_brackets_pass.php b/tests/codesniffer/FHComplete/tests/files/control_structure_brackets_pass.php index 75c37ee8e..2584c3507 100644 --- a/tests/codesniffer/FHComplete/tests/files/control_structure_brackets_pass.php +++ b/tests/codesniffer/FHComplete/tests/files/control_structure_brackets_pass.php @@ -1,19 +1,25 @@ 100) { +} +elseif ($i > 100) +{ echo 'i > 100'; } -while (false) { +while (false) +{ echo 'false'; } -do { +do +{ echo 'dowhile test'; } while (false); diff --git a/tests/codesniffer/FHComplete/tests/files/control_structure_dowhile.php b/tests/codesniffer/FHComplete/tests/files/control_structure_dowhile.php index 54b2190d4..b423a48e0 100644 --- a/tests/codesniffer/FHComplete/tests/files/control_structure_dowhile.php +++ b/tests/codesniffer/FHComplete/tests/files/control_structure_dowhile.php @@ -1,6 +1,7 @@ 'after 2 tabs' - ); -} diff --git a/tests/codesniffer/FHComplete/tests/files/multiple_use.php b/tests/codesniffer/FHComplete/tests/files/multiple_use.php deleted file mode 100644 index b239a6419..000000000 --- a/tests/codesniffer/FHComplete/tests/files/multiple_use.php +++ /dev/null @@ -1,6 +0,0 @@ -passingPublic = 'changed'; - $this->underscored = 'has value now'; - $this->doubleUnderscore = 'not recommended'; - } - - /** - * [setStatics description] - * - * @return void - */ - public static function setStatics() - { - self::$publicStatic = true; - self::$protectedStatic = true; - self::$privateStatic = true; - } -} diff --git a/tests/codesniffer/FHComplete/tests/files/whitespace_comma.php b/tests/codesniffer/FHComplete/tests/files/whitespace_comma.php deleted file mode 100644 index 78e43d5f0..000000000 --- a/tests/codesniffer/FHComplete/tests/files/whitespace_comma.php +++ /dev/null @@ -1,2 +0,0 @@ -