Completed
Push — master ( b149fd...ff6aac )
by Iman
01:22
created
src/LaravelMicroscopeServiceProvider.php 1 patch
Unused Use Statements   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,24 +2,24 @@
 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;
11 14
 use Imanghafoori\LaravelMicroscope\Commands;
15
+use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
16
+use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
17
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler;
18
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher;
19
+use Imanghafoori\LaravelMicroscope\SpyClasses\SpyFactory;
12 20
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyGate;
13 21
 use Imanghafoori\LaravelMicroscope\SpyClasses\SpyRouter;
14 22
 use Imanghafoori\LaravelMicroscope\SpyClasses\ViewsData;
15
-use Illuminate\Contracts\Auth\Access\Gate as GateContract;
16
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyFactory;
17
-use Illuminate\Database\Eloquent\Factory as EloquentFactory;
18
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyDispatcher;
19
-use Imanghafoori\LaravelMicroscope\SpyClasses\SpyBladeCompiler;
20
-use Illuminate\Contracts\Queue\Factory as QueueFactoryContract;
21
-use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
22
-use Imanghafoori\LaravelMicroscope\ErrorReporters\ConsolePrinterInstaller;
23 23
 
24 24
 class LaravelMicroscopeServiceProvider extends ServiceProvider
25 25
 {
Please login to merge, or discard this patch.
src/Analyzers/FunctionCall.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
         return [$token, $i];
17 17
     }
18 18
 
19
+    /**
20
+     * @param string[] $tokenType
21
+     */
19 22
     public static function forwardTo($tokens, $i, $tokenType)
20 23
     {
21 24
         $i++;
@@ -46,6 +49,9 @@  discard block
 block discarded – undo
46 49
         return ($tokens[0][0] == T_CONSTANT_ENCAPSED_STRING) && ($nextToken !== '.');
47 50
     }
48 51
 
52
+    /**
53
+     * @param string $funcName
54
+     */
49 55
     public static function isGlobalCall($funcName, &$tokens, $i)
50 56
     {
51 57
         $expectedTokens = [
@@ -80,6 +86,9 @@  discard block
 block discarded – undo
80 86
         return self::checkTokens($expectedTokens, $tokens, $i);
81 87
     }
82 88
 
89
+    /**
90
+     * @param string $methodName
91
+     */
83 92
     public static function isMethodCallOnThis($methodName, &$tokens, $i)
84 93
     {
85 94
         $expectedTokens = [
Please login to merge, or discard this patch.