@@ -42,7 +42,7 @@ |
||
| 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 | } |
@@ -3,7 +3,6 @@ |
||
| 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; |
@@ -29,23 +29,23 @@ |
||
| 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 | } |