Test Failed
Push — master ( e630f8...594d62 )
by Kirill
06:52
created
src/Processor/DatabaseProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         foreach ($query->getCriteria() as $criterion) {
134 134
             $identifier = \get_class($criterion);
135 135
 
136
-            if (! \array_key_exists($identifier, $criteria)) {
136
+            if (!\array_key_exists($identifier, $criteria)) {
137 137
                 $criteria[$identifier] = $this->criterion($criterion, $alias);
138 138
             }
139 139
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function count(Query $query): int
214 214
     {
215
-        return $this->scalar($query, function (QueryBuilder $builder, string $field) {
215
+        return $this->scalar($query, function(QueryBuilder $builder, string $field) {
216 216
             return $builder->expr()->count($field);
217 217
         });
218 218
     }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $builder = $this->toBuilder($query);
229 229
 
230 230
         try {
231
-            return (int)$builder->select($expr($builder, $this->getPrimary()->withAlias($this->alias)))
231
+            return (int) $builder->select($expr($builder, $this->getPrimary()->withAlias($this->alias)))
232 232
                 ->getQuery()
233 233
                 ->getSingleScalarResult();
234 234
         } catch (NoResultException | \InvalidArgumentException $e) {
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/RelationProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $exists     = $this->hasAlias($parent);
43 43
             $childAlias = $this->fetchAlias($parent, $relation->getName());
44 44
 
45
-            if (! $exists) {
45
+            if (!$exists) {
46 46
                 $builder->leftJoin($parent, $childAlias);
47 47
                 $builder->addSelect($childAlias);
48 48
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     private function fetchAlias(string $parent, string $class): string
73 73
     {
74
-        if (! $this->hasAlias($parent)) {
74
+        if (!$this->hasAlias($parent)) {
75 75
             $this->relations[$parent] = $this->createAlias($class);
76 76
         }
77 77
 
@@ -84,6 +84,6 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function createAlias(string $class): string
86 86
     {
87
-        return 'ref_' . \snake_case(\class_basename($class)) . '_' . ++self::$relationId;
87
+        return 'ref_'.\snake_case(\class_basename($class)).'_'.++self::$relationId;
88 88
     }
89 89
 }
Please login to merge, or discard this patch.