Completed
Push — master ( 3c93b7...6b2a82 )
by Korvin
02:25
created
src/Route/RouteCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function addGroup($prefix, callable $callback)
43 43
     {
44
-        $this->collector->addGroup($prefix . ':', function (Collector $collector) use ($callback) {
44
+        $this->collector->addGroup($prefix . ':', function(Collector $collector) use ($callback) {
45 45
             return $callback(new RouteCollector($collector));
46 46
         });
47 47
     }
Please login to merge, or discard this patch.
src/Console/Console.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $site = $this->site;
74 74
         $cli = $this->container->get(CLImate::class);
75 75
 
76
-        $dispatcher = Dispatcher::simpleDispatcher(function (RouteCollector $routes) use ($site) {
76
+        $dispatcher = Dispatcher::simpleDispatcher(function(RouteCollector $routes) use ($site) {
77 77
             foreach ($this->collection->all() as $command) {
78 78
                 $command->registerRoutes($routes, $site);
79 79
             }
Please login to merge, or discard this 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/Route/Dispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public static function simpleDispatcher(callable $routeDefinitionCallback, array $options = [])
44 44
     {
45
-        return new static(simpleDispatcher(function (Collector $collector) use ($routeDefinitionCallback) {
45
+        return new static(simpleDispatcher(function(Collector $collector) use ($routeDefinitionCallback) {
46 46
             return $routeDefinitionCallback(new RouteCollector($collector));
47 47
         }, $options));
48 48
     }
Please login to merge, or discard this patch.
src/Log/Logger.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Buttress\Concrete\Log;
4 4
 
5 5
 use League\CLImate\CLImate;
6
+use Psr\Log\LogLevel;
6 7
 use Psr\Log\LoggerInterface;
7 8
 use Psr\Log\LoggerTrait;
8
-use Psr\Log\LogLevel;
9 9
 
10 10
 /**
11 11
  * A PSR3 logger that pushes entries out to CLImate
Please login to merge, or discard this patch.
src/Console/Command/PackageCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     public function registerRoutes(RouteCollector $collector, Site $site = null)
38 38
     {
39
-        $collector->addGroup('package', function (RouteCollector $collector) {
39
+        $collector->addGroup('package', function(RouteCollector $collector) {
40 40
             // install
41 41
             $collector->addRoute(
42 42
                 'install',
Please login to merge, or discard this patch.
src/CommandBus/Handler/PackageHandler.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 Buttress\Concrete\CommandBus\Handler;
4 4
 
5
-use Buttress\Concrete\Service\Package\Package;
6
-use Buttress\Concrete\Service\Package\PackageItem;
7 5
 use Buttress\Concrete\CommandBus\Command\Package\Install;
8 6
 use Buttress\Concrete\CommandBus\Command\Package\ListPackages;
9 7
 use Buttress\Concrete\CommandBus\Command\Package\Uninstall;
10 8
 use Buttress\Concrete\Exception\RuntimeException;
9
+use Buttress\Concrete\Service\Package\Package;
10
+use Buttress\Concrete\Service\Package\PackageItem;
11 11
 
12 12
 class PackageHandler
13 13
 {
Please login to merge, or discard this patch.
src/Service/Package/DriverFactory.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Buttress\Concrete\Service\Package;
4 4
 
5
+use Buttress\Concrete\Locator\Site;
5 6
 use Buttress\Concrete\Service\Package\Driver\LegacyDriver;
6 7
 use Buttress\Concrete\Service\Package\Driver\ModernDriver;
7
-use Buttress\Concrete\Locator\Site;
8 8
 use Psr\Container\ContainerInterface;
9 9
 
10 10
 class DriverFactory
Please login to merge, or discard this patch.
src/Client/Adapter/ModernAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function attach()
40 40
     {
41
-        $connection =  new ModernConnection();
41
+        $connection = new ModernConnection();
42 42
         $connection->connect($this->resolveApplication());
43 43
 
44 44
         return $connection;
Please login to merge, or discard this patch.
src/Service/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         }
17 17
 
18 18
         $this->success = (bool) $success;
19
-        $this->errors = (array)$errors;
19
+        $this->errors = (array) $errors;
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.