Completed
Push — master ( a1a223...235b12 )
by Iman
01:29
created
src/CheckNamespaces.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Get all of the listeners and their corresponding events.
21 21
      *
22
-     * @param  iterable  $paths
22
+     * @param  \Symfony\Component\Finder\Finder  $paths
23 23
      * @param  $composerPath
24 24
      * @param  $composerNamespace
25
-     * @param  $command
25
+     * @param  Commands\CheckPsr4 $command
26 26
      *
27 27
      * @return void
28 28
      */
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         }
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $relativePath
84
+     */
82 85
     private static function warn($currentNamespace, $relativePath, $class)
83 86
     {
84 87
         /**
@@ -107,6 +110,9 @@  discard block
 block discarded – undo
107 110
         return Str::startsWith($buffer, '<?php');
108 111
     }
109 112
 
113
+    /**
114
+     * @param string $correctNamespace
115
+     */
110 116
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
111 117
     {
112 118
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -114,6 +120,9 @@  discard block
 block discarded – undo
114 120
         event('laravel_microscope.namespace_fixed', get_defined_vars());
115 121
     }
116 122
 
123
+    /**
124
+     * @param string $correctNamespace
125
+     */
117 126
     private static function ask($command, $correctNamespace)
118 127
     {
119 128
         if ($command->option('force')) {
@@ -123,6 +132,9 @@  discard block
 block discarded – undo
123 132
         return $command->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true);
124 133
     }
125 134
 
135
+    /**
136
+     * @param string $correctNamespace
137
+     */
126 138
     private static function changedNamespaces($class, $currentNamespace, $correctNamespace)
127 139
     {
128 140
         $_currentClass = $currentNamespace.'\\'.$class;
Please login to merge, or discard this patch.