Completed
Push — master ( 7381e1...0d723c )
by Korvin
02:16
created
src/CommandBus/Handler/CacheHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
     /**
62 62
      * Clear cache for a LegacyConnection
63
-     * @param \Buttress\Concrete\CommandBus\Handler\LegacyConnection $connection
63
+     * @param Connection $connection
64 64
      */
65 65
     private function clearLegacy(LegacyConnection $connection)
66 66
     {
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/Console/Console.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\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;
Please login to merge, or discard this patch.
src/Service/Package/Driver/LegacyDriver.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param \Buttress\Concrete\Service\Package\PackageItem $package
28
-     * @return Package|null
28
+     * @return PackageItem
29 29
      */
30 30
     private function getPackage(PackageItem $package)
31 31
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
     /**
135 135
      * Get a list of package item objects
136
-     * @return PackageItem[]
136
+     * @return \Generator
137 137
      */
138 138
     public function all()
139 139
     {
Please login to merge, or discard this patch.
src/Service/Package/Driver/ModernDriver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 
160 160
     /**
161 161
      * Get a list of package item objects
162
-     * @return PackageItem[]
162
+     * @return \Generator
163 163
      */
164 164
     public function all()
165 165
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 namespace Buttress\Concrete\Service\Package\Driver;
4 4
 
5 5
 use Buttress\Concrete\Client\Connection\Connection;
6
+use Buttress\Concrete\Exception\RuntimeException;
6 7
 use Buttress\Concrete\Service\Package\PackageItem;
7 8
 use Buttress\Concrete\Service\Package\PackageItemFactory;
8 9
 use Buttress\Concrete\Service\Result;
9
-use Buttress\Concrete\Exception\RuntimeException;
10 10
 use Concrete\Core\Error\ErrorList\ErrorList;
11 11
 use Concrete\Core\Foundation\ClassLoader;
12 12
 use Concrete\Core\Package\BrokenPackage;
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/Service/Result.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     }
21 21
 
22 22
     /**
23
-     * @return success
23
+     * @return boolean
24 24
      */
25 25
     public function success()
26 26
     {
Please login to merge, or discard this 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.
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/Provider/LeagueContainer/ServiceProvider.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,9 +80,10 @@
 block discarded – undo
80 80
                 $site = new Site();
81 81
             }
82 82
 
83
-            if ($site->getVersion())
84
-
83
+            if ($site->getVersion()) {
84
+            
85 85
             return $site;
86
+            }
86 87
         });
87 88
 
88 89
         // Share the container
Please login to merge, or discard this patch.