Completed
Pull Request — master (#42)
by Freek
01:17
created
src/SolutionProviders/BadMethodCallSolutionProvider.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
             })->first();
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $class
75
+     */
73 76
     protected function getAvailableMethods($class): Collection
74 77
     {
75 78
         $class = new ReflectionClass($class);
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use ReflectionClass;
7
-use ReflectionMethod;
8 5
 use BadMethodCallException;
9
-use Illuminate\Support\Collection;
10 6
 use Facade\IgnitionContracts\BaseSolution;
11 7
 use Facade\IgnitionContracts\HasSolutionsForThrowable;
8
+use Illuminate\Support\Collection;
9
+use ReflectionClass;
10
+use ReflectionMethod;
11
+use Throwable;
12 12
 
13 13
 class BadMethodCallSolutionProvider implements HasSolutionsForThrowable
14 14
 {
Please login to merge, or discard this patch.
src/SolutionProviders/MissingImportSolutionProvider.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 Facade\Ignition\Support\ComposerClassMap;
7
-use Facade\Ignition\Solutions\SuggestImportSolution;
8 5
 use Facade\IgnitionContracts\HasSolutionsForThrowable;
6
+use Facade\Ignition\Solutions\SuggestImportSolution;
7
+use Facade\Ignition\Support\ComposerClassMap;
8
+use Throwable;
9 9
 
10 10
 class MissingImportSolutionProvider implements HasSolutionsForThrowable
11 11
 {
Please login to merge, or discard this patch.
src/SolutionProviders/MissingPackageSolutionProvider.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use Illuminate\Support\Str;
5
+use Facade\IgnitionContracts\HasSolutionsForThrowable;
6
+use Facade\Ignition\Solutions\MissingPackageSolution;
7 7
 use Facade\Ignition\Support\Packagist\Package;
8 8
 use Facade\Ignition\Support\Packagist\Packagist;
9
-use Facade\Ignition\Solutions\MissingPackageSolution;
10
-use Facade\IgnitionContracts\HasSolutionsForThrowable;
9
+use Illuminate\Support\Str;
10
+use Throwable;
11 11
 
12 12
 class MissingPackageSolutionProvider implements HasSolutionsForThrowable
13 13
 {
Please login to merge, or discard this patch.
src/SolutionProviders/SolutionProviderRepository.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use Illuminate\Support\Collection;
7
-use Facade\IgnitionContracts\Solution;
8
-use Facade\IgnitionContracts\ProvidesSolution;
9 5
 use Facade\IgnitionContracts\HasSolutionsForThrowable;
6
+use Facade\IgnitionContracts\ProvidesSolution;
7
+use Facade\IgnitionContracts\Solution;
10 8
 use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract;
9
+use Illuminate\Support\Collection;
10
+use Throwable;
11 11
 
12 12
 class SolutionProviderRepository implements SolutionProviderRepositoryContract
13 13
 {
Please login to merge, or discard this patch.
src/Tabs/Tab.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\Tabs;
4 4
 
5
-use Throwable;
6
-use JsonSerializable;
7
-use Illuminate\Support\Str;
8 5
 use Facade\FlareClient\Flare;
6
+use Illuminate\Support\Str;
7
+use JsonSerializable;
8
+use Throwable;
9 9
 
10 10
 abstract class Tab implements JsonSerializable
11 11
 {
Please login to merge, or discard this patch.
src/Commands/TestCommand.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Facade\Ignition\Commands;
4 4
 
5 5
 use Exception;
6
-use Illuminate\Log\LogManager;
7
-use Illuminate\Console\Command;
8 6
 use Illuminate\Config\Repository;
7
+use Illuminate\Console\Command;
8
+use Illuminate\Log\LogManager;
9 9
 
10 10
 class TestCommand extends Command
11 11
 {
Please login to merge, or discard this patch.
src/Http/Requests/ExecuteSolutionRequest.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\Http\Requests;
4 4
 
5
-use Facade\IgnitionContracts\Solution;
6
-use Illuminate\Foundation\Http\FormRequest;
7 5
 use Facade\IgnitionContracts\RunnableSolution;
6
+use Facade\IgnitionContracts\Solution;
8 7
 use Facade\IgnitionContracts\SolutionProviderRepository;
8
+use Illuminate\Foundation\Http\FormRequest;
9 9
 
10 10
 class ExecuteSolutionRequest extends FormRequest
11 11
 {
Please login to merge, or discard this patch.
src/Logger/FlareHandler.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Facade\Ignition\Logger;
4 4
 
5
-use Throwable;
6
-use Monolog\Logger;
7 5
 use Facade\FlareClient\Flare;
8 6
 use Facade\Ignition\Ignition;
9 7
 use Facade\Ignition\Tabs\Tab;
10 8
 use Monolog\Handler\AbstractProcessingHandler;
9
+use Monolog\Logger;
10
+use Throwable;
11 11
 
12 12
 class FlareHandler extends AbstractProcessingHandler
13 13
 {
Please login to merge, or discard this patch.
src/SolutionProviders/IncorrectValetDbCredentialsSolutionProvider.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\SolutionProviders;
4 4
 
5
-use Throwable;
6
-use Illuminate\Database\QueryException;
7 5
 use Facade\IgnitionContracts\HasSolutionsForThrowable;
8 6
 use Facade\Ignition\Solutions\UseDefaultValetDbCredentialsSolution;
7
+use Illuminate\Database\QueryException;
8
+use Throwable;
9 9
 
10 10
 class IncorrectValetDbCredentialsSolutionProvider implements HasSolutionsForThrowable
11 11
 {
Please login to merge, or discard this patch.