@@ -61,6 +61,9 @@ |
||
61 | 61 | return [self::replaceFirst($absPath, $class, $prefix.$correct[0], $lineNum), $correct]; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param \Closure $lineChanger |
|
66 | + */ |
|
64 | 67 | private static function applyToFile($file, $lineChanger) |
65 | 68 | { |
66 | 69 | $reading = fopen($file, 'r'); |
@@ -5,10 +5,10 @@ |
||
5 | 5 | use Illuminate\Support\Composer; |
6 | 6 | use Illuminate\Support\Str; |
7 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
8 | +use Imanghafoori\LaravelMicroscope\Analyzers\FileManipulator; |
|
8 | 9 | use Imanghafoori\LaravelMicroscope\Analyzers\GetClassProperties; |
9 | 10 | use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector; |
10 | 11 | use Imanghafoori\LaravelMicroscope\Analyzers\ParseUseStatement; |
11 | -use Imanghafoori\LaravelMicroscope\Analyzers\FileManipulator; |
|
12 | 12 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
13 | 13 | |
14 | 14 | class CheckClasses |
@@ -55,6 +55,9 @@ |
||
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $string |
|
60 | + */ |
|
58 | 61 | protected function getClassyPath($string) |
59 | 62 | { |
60 | 63 | ($string[0] !== '\\') && ($string = '\\'.$string); |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\Str; |
6 | 6 | use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; |
7 | -use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector; |
|
8 | 7 | use Imanghafoori\LaravelMicroscope\Analyzers\FileManipulator; |
8 | +use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector; |
|
9 | 9 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
10 | 10 | |
11 | 11 | class CheckStringy |