@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Get all of the listeners and their corresponding events. |
16 | 16 | * |
17 | - * @param iterable $paths |
|
17 | + * @param \Symfony\Component\Finder\Finder $paths |
|
18 | 18 | * @param $composerPath |
19 | 19 | * @param $composerNamespace |
20 | 20 | * @param FileCheckContractAlias $fileCheckContract |
@@ -70,6 +70,9 @@ discard block |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $relativePath |
|
75 | + */ |
|
73 | 76 | private static function warn($currentNamespace, $relativePath) |
74 | 77 | { |
75 | 78 | $p = app(ErrorPrinter::class); |
@@ -91,6 +94,9 @@ discard block |
||
91 | 94 | return Str::startsWith($buffer, '<?php'); |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param string $correctNamespace |
|
99 | + */ |
|
94 | 100 | protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace) |
95 | 101 | { |
96 | 102 | event('laravel_microscope.namespace_fixing', get_defined_vars()); |
@@ -110,6 +116,10 @@ discard block |
||
110 | 116 | return $migrationDirs; |
111 | 117 | } |
112 | 118 | |
119 | + /** |
|
120 | + * @param FileCheckContractAlias $fileCheckContract |
|
121 | + * @param string $correctNamespace |
|
122 | + */ |
|
113 | 123 | private static function ask($fileCheckContract, $correctNamespace) |
114 | 124 | { |
115 | 125 | return $fileCheckContract->getOutput()->confirm("Do you want to change it to: {$correctNamespace}", true); |
@@ -83,6 +83,9 @@ |
||
83 | 83 | return [$fixes, $tokens]; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param integer $fixed |
|
88 | + */ |
|
86 | 89 | private function printFinalMsg($fixed) |
87 | 90 | { |
88 | 91 | $msg = $fixed > 0 |