Completed
Push — master ( 64e270...cce510 )
by Iman
01:20
created
src/CheckNamespaces.php 2 patches
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
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
-     * @param  $command
20
+     * @param  Commands\CheckPsr4 $command
21 21
      *
22 22
      * @return void
23 23
      */
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         }
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $relativePath
77
+     */
75 78
     private static function warn($currentNamespace, $relativePath)
76 79
     {
77 80
         $p = app(ErrorPrinter::class);
@@ -93,6 +96,9 @@  discard block
 block discarded – undo
93 96
         return Str::startsWith($buffer, '<?php');
94 97
     }
95 98
 
99
+    /**
100
+     * @param string $correctNamespace
101
+     */
96 102
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
97 103
     {
98 104
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -100,6 +106,9 @@  discard block
 block discarded – undo
100 106
         event('laravel_microscope.namespace_fixed', get_defined_vars());
101 107
     }
102 108
 
109
+    /**
110
+     * @param string $correctNamespace
111
+     */
103 112
     private static function ask($command, $correctNamespace)
104 113
     {
105 114
         return $command->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\Str;
6 6
 use Imanghafoori\LaravelMicroscope\Analyzers\FilePath;
7
-use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths;
8 7
 use Imanghafoori\LaravelMicroscope\Analyzers\GetClassProperties;
9 8
 use Imanghafoori\LaravelMicroscope\Analyzers\NamespaceCorrector;
10 9
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
10
+use Imanghafoori\LaravelMicroscope\LaravelPaths\MigrationPaths;
11 11
 
12 12
 class CheckNamespaces
13 13
 {
Please login to merge, or discard this patch.