Completed
Push — master ( 0d723c...aa6b9d )
by Korvin
04:30
created
src/Console/Console.php 1 patch
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Buttress\Concrete\Console;
4 4
 
5
+use Buttress\Concrete\CommandBus\Command\HandlerLocator;
5 6
 use Buttress\Concrete\CommandBus\Provider\DefaultProvider;
6 7
 use Buttress\Concrete\Console\Command\CacheCommand;
7
-use Buttress\Concrete\CommandBus\Command\HandlerLocator;
8 8
 use Buttress\Concrete\Console\Command\Collection\Collection;
9 9
 use Buttress\Concrete\Console\Command\HelpCommand;
10 10
 use Buttress\Concrete\Console\Command\PackageCommand;
@@ -15,12 +15,9 @@  discard block
 block discarded – undo
15 15
 use Buttress\Concrete\Locator\Site;
16 16
 use Buttress\Concrete\Route\Dispatcher;
17 17
 use Buttress\Concrete\Route\RouteCollector;
18
-use League\CLImate\Argument\Argument;
19 18
 use League\CLImate\Argument\Manager;
20 19
 use League\CLImate\CLImate;
21 20
 use Psr\Container\ContainerInterface;
22
-use Psr\Log\LoggerInterface;
23
-use Whoops\Handler\PlainTextHandler;
24 21
 use Whoops\Run;
25 22
 
26 23
 /**
Please login to merge, or discard this patch.
src/Exception/ErrorHandler.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
         set_exception_handler([$this, 'handleException']);
27 27
     }
28 28
 
29
+    /**
30
+     * @param boolean $verbose
31
+     */
29 32
     public function setVerbose($verbose)
30 33
     {
31 34
         $this->verbose = $verbose;
@@ -56,7 +59,7 @@  discard block
 block discarded – undo
56 59
      * @param string $file
57 60
      * @param int $line
58 61
      * @param array $context
59
-     * @return bool
62
+     * @return false|null
60 63
      */
61 64
     public function handleError($code, $message, $file, $line, $context)
62 65
     {
Please login to merge, or discard this patch.
src/Provider/LeagueContainer/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $container = $this->getContainer();
53 53
 
54 54
         // Share the CLImate object
55
-        $container->share(CLImate::class, function () use ($container) {
55
+        $container->share(CLImate::class, function() use ($container) {
56 56
             return new CLImate();
57 57
         });
58 58
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         // Add the command bus
63 63
         $container->add(
64 64
             CommandBus::class,
65
-            function (ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) {
65
+            function(ClassNameExtractor $extractor, HandlerLocator $locator, HandleClassNameInflector $inflector) {
66 66
                 $handlerMiddleware = new CommandHandlerMiddleware($extractor, $locator, $inflector);
67 67
 
68 68
                 return new CommandBus([$handlerMiddleware]);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 ErrorHandler::class
79 79
             ]);
80 80
 
81
-        $container->share(Site::class, function () use ($container) {
81
+        $container->share(Site::class, function() use ($container) {
82 82
             $site = $container->get(Locator::class)->getLocation();
83 83
             if (!$site) {
84 84
                 $site = new Site();
Please login to merge, or discard this patch.