Completed
Pull Request — master (#74)
by amir
01:23
created
src/ErrorReporters/ErrorPrinter.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -47,6 +47,10 @@  discard block
 block discarded – undo
47 47
         $this->pendError($absPath, $lineNumber, $relatedModel, 'badRelation', $header);
48 48
     }
49 49
 
50
+    /**
51
+     * @param string $key
52
+     * @param string $header
53
+     */
50 54
     public function pendError($path, $lineNumber, $absent, $key, $header)
51 55
     {
52 56
         ($this->errorsList[$key][] = (new PendingError($key))
@@ -64,6 +68,11 @@  discard block
 block discarded – undo
64 68
             ->link($absPath, $lineNumber));
65 69
     }
66 70
 
71
+    /**
72
+     * @param string $absent
73
+     * @param string $key
74
+     * @param string $header
75
+     */
67 76
     public function simplePendError($path, $lineNumber, $absent, $key, $header)
68 77
     {
69 78
         ($this->errorsList[$key][] = (new PendingError($key))
@@ -150,6 +159,9 @@  discard block
 block discarded – undo
150 159
             ->link($absPath, $lineNumber));
151 160
     }
152 161
 
162
+    /**
163
+     * @param integer $len
164
+     */
153 165
     public function print($msg, $path = '|  ', $len = null)
154 166
     {
155 167
         ! $len && $len = PendingError::$maxLength + 1;
@@ -165,6 +177,9 @@  discard block
 block discarded – undo
165 177
         $this->printer->writeln($path.$msg.str_repeat(' ', $len).'|');
166 178
     }
167 179
 
180
+    /**
181
+     * @param string $msg
182
+     */
168 183
     public function printHeader($msg)
169 184
     {
170 185
         $number = ++$this->errorsList['total'];
@@ -223,6 +238,9 @@  discard block
 block discarded – undo
223 238
         }
224 239
     }
225 240
 
241
+    /**
242
+     * @param string $key
243
+     */
226 244
     public function getCount($key)
227 245
     {
228 246
         return \count($this->errorsList[$key] ?? []);
Please login to merge, or discard this patch.
src/LaravelMicroscopeServiceProvider.php 1 patch
Unused Use Statements   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,23 +2,23 @@
 block discarded – undo
2 2
 
3 3
 namespace Imanghafoori\LaravelMicroscope;
4 4
 
5
-use Illuminate\View\View;
6
-use Illuminate\Support\Str;
5
+use Faker\Generator as FakerGenerator;
6
+use Illuminate\Contracts\Auth\Access\Gate as GateContract;
7
+use Illuminate\Contracts\Queue\Factory as QueueFactoryContract;
8
+use Illuminate\Database\Eloquent\Factory as EloquentFactory;
7 9
 use Illuminate\Support\Facades\Event;
8 10
 use Illuminate\Support\Facades\Route;
9
-use Faker\Generator as FakerGenerator;
10 11
 use Illuminate\Support\ServiceProvider;
12
+use Illuminate\Support\Str;
13
+use Illuminate\View\View;
14
+use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
15
+use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
16
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler;
17
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher;
18
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyFactory;
11 19
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyGate;
12 20
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyRouter;
13 21
 use Imanghafoori\LaravelMicroscope\SpyClasses\ViewsData;
14
-use Illuminate\Contracts\Auth\Access\Gate as GateContract;
15
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyFactory;
16
-use Illuminate\Database\Eloquent\Factory as EloquentFactory;
17
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher;
18
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler;
19
-use Illuminate\Contracts\Queue\Factory as QueueFactoryContract;
20
-use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
21
-use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
22 22
 
23 23
 class LaravelMicroscopeServiceProvider extends ServiceProvider
24 24
 {
Please login to merge, or discard this patch.