Completed
Pull Request — master (#42)
by James
01:14
created
src/SolutionProviders/TableNotFoundSolutionProvider.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use Illuminate\Database\QueryException;
7
-use Facade\Ignition\Solutions\RunMigrationsSolution;
8 5
 use Facade\IgnitionContracts\HasSolutionsForThrowable;
6
+use Facade\Ignition\Solutions\RunMigrationsSolution;
7
+use Illuminate\Database\QueryException;
8
+use Throwable;
9 9
 
10 10
 class TableNotFoundSolutionProvider implements HasSolutionsForThrowable
11 11
 {
Please login to merge, or discard this patch.
src/Solutions/SolutionTransformer.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\Solutions;
4 4
 
5
-use Facade\IgnitionContracts\Solution;
6
-use Illuminate\Contracts\Support\Arrayable;
7 5
 use Facade\IgnitionContracts\RunnableSolution;
6
+use Facade\IgnitionContracts\Solution;
8 7
 use Facade\Ignition\Http\Controllers\ExecuteSolutionController;
8
+use Illuminate\Contracts\Support\Arrayable;
9 9
 
10 10
 class SolutionTransformer implements Arrayable
11 11
 {
Please login to merge, or discard this patch.
src/Views/Concerns/CollectsViewExceptions.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 {
11 11
     protected $lastCompiledData = [];
12 12
 
13
+    /**
14
+     * @param string $path
15
+     */
13 16
     public function collectViewData($path, array $data): void
14 17
     {
15 18
         $this->lastCompiledData[] = [
@@ -32,6 +35,9 @@  discard block
 block discarded – undo
32 35
         }, ARRAY_FILTER_USE_BOTH);
33 36
     }
34 37
 
38
+    /**
39
+     * @param string $compiledPath
40
+     */
35 41
     public function getCompiledViewData($compiledPath): array
36 42
     {
37 43
         $compiledView = $this->findCompiledView($compiledPath);
@@ -39,6 +45,9 @@  discard block
 block discarded – undo
39 45
         return $compiledView['data'] ?? [];
40 46
     }
41 47
 
48
+    /**
49
+     * @param string $compiledPath
50
+     */
42 51
     public function getCompiledViewName($compiledPath): string
43 52
     {
44 53
         $compiledView = $this->findCompiledView($compiledPath);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\Views\Concerns;
4 4
 
5
-use Illuminate\Support\Collection;
6 5
 use Illuminate\Foundation\Application;
6
+use Illuminate\Support\Collection;
7 7
 use Illuminate\View\Engines\CompilerEngine;
8 8
 
9 9
 trait CollectsViewExceptions
Please login to merge, or discard this patch.
src/SolutionProviders/ViewNotFoundSolutionProvider.php 1 patch
Unused Use Statements   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,19 +2,18 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use Illuminate\Support\Arr;
7
-use InvalidArgumentException;
8
-use Illuminate\Support\Facades\View;
9
-use Symfony\Component\Finder\Finder;
10
-use Symfony\Component\Finder\SplFileInfo;
11 5
 use Facade\IgnitionContracts\BaseSolution;
12
-use Symfony\Component\Filesystem\Filesystem;
6
+use Facade\IgnitionContracts\HasSolutionsForThrowable;
13 7
 use Facade\Ignition\Exceptions\ViewException;
14
-use Facade\Ignition\Support\StringComparator;
15 8
 use Facade\Ignition\Solutions\CreateViewFileSolution;
16 9
 use Facade\Ignition\Solutions\UpdateViewNameSolution;
17
-use Facade\IgnitionContracts\HasSolutionsForThrowable;
10
+use Facade\Ignition\Support\StringComparator;
11
+use Illuminate\Support\Arr;
12
+use Illuminate\Support\Facades\View;
13
+use InvalidArgumentException;
14
+use Symfony\Component\Finder\Finder;
15
+use Symfony\Component\Finder\SplFileInfo;
16
+use Throwable;
18 17
 
19 18
 
20 19
 class ViewNotFoundSolutionProvider implements HasSolutionsForThrowable
Please login to merge, or discard this patch.
src/Views/Engines/CompilerEngine.php 1 patch
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 namespace Facade\Ignition\Views\Engines;
4 4
 
5 5
 use Exception;
6
-use ReflectionProperty;
7
-use Illuminate\Support\Collection;
8
-use Illuminate\Filesystem\Filesystem;
9
-use Facade\Ignition\Exceptions\ViewException;
10 6
 use Facade\IgnitionContracts\ProvidesSolution;
7
+use Facade\Ignition\Exceptions\ViewException;
11 8
 use Facade\Ignition\Exceptions\ViewExceptionWithSolution;
12
-use Facade\Ignition\Views\Concerns\CollectsViewExceptions;
13 9
 use Facade\Ignition\Views\Compilers\BladeSourceMapCompiler;
10
+use Facade\Ignition\Views\Concerns\CollectsViewExceptions;
11
+use Illuminate\Filesystem\Filesystem;
12
+use Illuminate\Support\Collection;
13
+use ReflectionProperty;
14 14
 
15 15
 class CompilerEngine extends \Illuminate\View\Engines\CompilerEngine
16 16
 {
Please login to merge, or discard this patch.