Completed
Pull Request — master (#20)
by Daniel
03:37 queued 01:43
created
lib/Query/Join.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
bridge/doctrine-orm/lib/OrmAgent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\Orm;
6 6
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $idField = reset($idFields);
104 104
 
105 105
         $queryBuilder = $this->entityManager->getRepository($class)->createQueryBuilder('a');
106
-        $queryBuilder->where($queryBuilder->expr()->in('a.' . $idField, ':identifiers'));
106
+        $queryBuilder->where($queryBuilder->expr()->in('a.'.$idField, ':identifiers'));
107 107
         $queryBuilder->setParameter('identifiers', $identifiers);
108 108
 
109 109
         return $queryBuilder->getQuery()->execute();
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         // TODO: Make a clone method on the Query, which allows passing an
206 206
         //       array of parts to replace in the clone.
207 207
         $query = Query::create($query->getClassFqn(), [
208
-            'selects' => [ 'count(' . self::SOURCE_ALIAS . '.' . $idField . ')' ],
208
+            'selects' => ['count('.self::SOURCE_ALIAS.'.'.$idField.')'],
209 209
             'joins' => $query->getJoins(),
210 210
             'criteria' => $query->hasExpression() ? $query->getExpression() : null,
211 211
         ]);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         $selects = [];
247 247
         foreach ($query->getSelects() as $selectName => $selectAlias) {
248
-            $select = $selectName . ' ' . $selectAlias;
248
+            $select = $selectName.' '.$selectAlias;
249 249
             if (is_int($selectName)) {
250 250
                 $select = $selectAlias;
251 251
             }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         }
269 269
 
270 270
         foreach ($query->getOrderings() as $field => $order) {
271
-            $queryBuilder->addOrderBy(self::SOURCE_ALIAS . '.' . $field, $order);
271
+            $queryBuilder->addOrderBy(self::SOURCE_ALIAS.'.'.$field, $order);
272 272
         }
273 273
 
274 274
         if (null !== $query->getFirstResult()) {
Please login to merge, or discard this patch.
lib/EventDispatchingAgent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Events.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Query/Expression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Event/ObjectEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Exception/AgentNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Exception/ObjectNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.
lib/Exception/BadMethodCallException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Psi\Bridge\ObjectAgent\Doctrine\PhpcrOdm;
6 6
 
Please login to merge, or discard this patch.