Passed
Push — master ( 84581c...064a61 )
by Tomasz
01:49
created
src/Bridge/Doctrine/DbalPaginator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Bridge\Doctrine;
5 5
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
     protected function findAll(): array
21 21
     {
22 22
         $this->qb
23
-             ->setMaxResults($this->limit)
24
-             ->setFirstResult($this->offset);
23
+                ->setMaxResults($this->limit)
24
+                ->setFirstResult($this->offset);
25 25
 
26 26
         return $this->qb->execute()->fetchAll();
27 27
     }
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
         $qb = clone $this->qb;
32 32
 
33 33
         $qb->select('COUNT(*)')
34
-           ->setMaxResults(null)
35
-           ->setFirstResult(null)
36
-           ->resetQueryPart('orderBy');
34
+            ->setMaxResults(null)
35
+            ->setFirstResult(null)
36
+            ->resetQueryPart('orderBy');
37 37
 
38 38
         return (int) $qb->execute()->fetchColumn();
39 39
     }
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/ReadModelBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Bridge\Symfony\Bundle;
5 5
 
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/ReadModelExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Bridge\Symfony\Bundle\DependencyInjection;
5 5
 
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Query/BinaryUuidSupport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Bridge\Doctrine\Query;
5 5
 
Please login to merge, or discard this patch.
src/NotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel;
5 5
 
Please login to merge, or discard this patch.
src/Filters/FiltersBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Filters;
5 5
 
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
             return [$this->defaultOrder];
107 107
         }
108 108
 
109
-        $orders = array_map(function (string $order) {
109
+        $orders = array_map(function(string $order) {
110 110
             return new OrderBy(trim($order));
111 111
         }, explode(',', $order));
112 112
 
113
-        return array_filter($orders, function (OrderBy $orderBy) {
113
+        return array_filter($orders, function(OrderBy $orderBy) {
114 114
             return in_array($orderBy->field(), $this->ordersBy);
115 115
         });
116 116
     }
Please login to merge, or discard this patch.
src/Filters/Filters.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Filters;
5 5
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         // callables are used, because filters and orders by might be used after calling that method
84 84
 
85
-        $paginator->addMeta('query', function () {
85
+        $paginator->addMeta('query', function() {
86 86
             foreach ($this->filters as $filter) {
87 87
                 if (!isset($this->unusedFilters[$filter->name()])) {
88 88
                     // only for used filters
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             return isset($queries) ? array_filter($queries) : [];
94 94
         });
95 95
 
96
-        $paginator->addMeta('order', function () {
96
+        $paginator->addMeta('order', function() {
97 97
             foreach ($this->ordersBy as $orderBy) {
98 98
                 if (!isset($this->unusedOrdersBy[$orderBy->field()])) {
99 99
                     // only for used orders by
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     private function setFilters(array $filters): void
116 116
     {
117
-        $keys = array_map(function (Filter $filter) {
117
+        $keys = array_map(function(Filter $filter) {
118 118
             return $filter->name();
119 119
         }, $filters);
120 120
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     private function setOrdersBy(array $ordersBy): void
126 126
     {
127
-        $keys = array_map(function (OrderBy $orderBy) {
127
+        $keys = array_map(function(OrderBy $orderBy) {
128 128
             return $orderBy->field();
129 129
         }, $ordersBy);
130 130
 
Please login to merge, or discard this patch.
src/Bridge/Symfony/RequestFiltersBuilderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace ReadModel\Bridge\Symfony;
5 5
 
Please login to merge, or discard this patch.