@@ -133,7 +133,7 @@ |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @param $generator |
|
136 | + * @param FileGenerator $generator |
|
137 | 137 | * @return array |
138 | 138 | */ |
139 | 139 | protected function getReplaceableFunctions($generator) |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 11/1/15 |
|
5 | - * Time: 12:30 AM |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 11/1/15 |
|
5 | + * Time: 12:30 AM |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | namespace NilPortugues\BackslashFixer\Fixer; |
11 | 11 | |
12 | 12 | use NilPortugues\BackslashFixer\Fixer\Interfaces\FileSystem as FileSystemInterface; |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $line = $token[2]; |
72 | 72 | |
73 | 73 | if ($this->isBackslashable($functions, $token, $previousToken, $constants)) { |
74 | - $source[$line-1] = str_replace($token[1], '\\'.$token[1], $source[$line-1]); |
|
74 | + $source[$line - 1] = str_replace($token[1], '\\' . $token[1], $source[$line - 1]); |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Search backwards starting from haystack length characters from the end |
38 | 38 | * |
39 | - * @param $haystack |
|
39 | + * @param string $haystack |
|
40 | 40 | * @param $needle |
41 | 41 | * @return bool |
42 | 42 | */ |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Author: Nil Portugués Calderó <[email protected]> |
|
4 | - * Date: 10/31/15 |
|
5 | - * Time: 11:24 PM |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Author: Nil Portugués Calderó <[email protected]> |
|
4 | + * Date: 10/31/15 |
|
5 | + * Time: 11:24 PM |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | namespace NilPortugues\BackslashFixer\Fixer; |
11 | 11 | |
12 | 12 | /** |
@@ -5,10 +5,10 @@ |
||
5 | 5 | return \file_exists($file) ? include $file : \\false; |
6 | 6 | } |
7 | 7 | |
8 | -if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) { |
|
9 | - echo 'You must set up the project dependencies, run the following commands:'.\\PHP_EOL. |
|
10 | - 'curl -sS https://getcomposer.org/installer | php'.\\PHP_EOL. |
|
11 | - 'php composer.phar install'.\\PHP_EOL; |
|
8 | +if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) { |
|
9 | + echo 'You must set up the project dependencies, run the following commands:' . \\PHP_EOL . |
|
10 | + 'curl -sS https://getcomposer.org/installer | php' . \\PHP_EOL . |
|
11 | + 'php composer.phar install' . \\PHP_EOL; |
|
12 | 12 | exit(1); |
13 | 13 | } |
14 | 14 |