Passed
Push — master ( ee6060...4c211f )
by Brent
02:40
created
src/Brendt/Stitcher/Adapter/FilterAdapter.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
             $entries = $this->getData($page->getVariable($variable)) ?? [];
43 43
 
44 44
             foreach ($filters as $field => $value) {
45
-                $entries = array_filter($entries, function ($entry) use ($field, $value) {
45
+                $entries = array_filter($entries, function($entry) use ($field, $value) {
46 46
                     return isset($entry[$field]) && $entry[$field] == $value;
47 47
                 });
48 48
             }
Please login to merge, or discard this patch.
src/Brendt/Stitcher/App.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Brendt\Stitcher;
4 4
 
5 5
 use Brendt\Stitcher\Plugin\Plugin;
6
-use Brendt\Stitcher\Plugin\PluginConfiguration;
7 6
 use Symfony\Component\Config\FileLocator;
8 7
 use Symfony\Component\Console\Application;
9 8
 use Symfony\Component\DependencyInjection\ContainerBuilder;
Please login to merge, or discard this patch.
src/Brendt/Stitcher/Factory/AdapterFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,23 +29,23 @@
 block discarded – undo
29 29
     public function __construct(ContainerInterface $container) {
30 30
         $this->container = $container;
31 31
 
32
-        $this->addAdapter(self::COLLECTION_ADAPTER, function () {
32
+        $this->addAdapter(self::COLLECTION_ADAPTER, function() {
33 33
             return $this->container->get('adapter.collection');
34 34
         });
35 35
 
36
-        $this->addAdapter(self::PAGINATION_ADAPTER, function () {
36
+        $this->addAdapter(self::PAGINATION_ADAPTER, function() {
37 37
             return $this->container->get('adapter.pagination');
38 38
         });
39 39
 
40
-        $this->addAdapter(self::ORDER_ADAPTER, function () {
40
+        $this->addAdapter(self::ORDER_ADAPTER, function() {
41 41
             return $this->container->get('adapter.order');
42 42
         });
43 43
 
44
-        $this->addAdapter(self::FILTER_ADAPTER, function () {
44
+        $this->addAdapter(self::FILTER_ADAPTER, function() {
45 45
             return $this->container->get('adapter.filter');
46 46
         });
47 47
 
48
-        $this->addAdapter(self::LIMIT_ADAPTER, function () {
48
+        $this->addAdapter(self::LIMIT_ADAPTER, function() {
49 49
             return $this->container->get('adapter.limit');
50 50
         });
51 51
     }
Please login to merge, or discard this patch.