Completed
Push — master ( 8e9858...ee369b )
by Kirill
02:43
created
src/Processor/DatabaseProcessor/RelationBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
      */
26 26
     public function apply($builder, CriterionInterface $relation): ?iterable
27 27
     {
28
-        throw new \LogicException(__CLASS__ . ' not implemented yet');
28
+        throw new \LogicException(__CLASS__.' not implemented yet');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Fn/FieldFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
     {
59 59
         $alias = $sqlWalker->getSQLTableAlias($this->table->value, $this->alias->value);
60 60
 
61
-        return $alias . '.' . $this->field->value;
61
+        return $alias.'.'.$this->field->value;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     private function registerDQLFunctions(Configuration $config): void
45 45
     {
46 46
         foreach (self::DQL_FUNCTIONS as $name => $fn) {
47
-            if (! $config->getCustomStringFunction($name)) {
47
+            if (!$config->getCustomStringFunction($name)) {
48 48
                 $config->addCustomStringFunction($name, $fn);
49 49
             }
50 50
         }
Please login to merge, or discard this patch.
src/Query/ModeProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             ? \get_class(\array_last($this->criteria))
74 74
             : null;
75 75
 
76
-        switch($latest) {
76
+        switch ($latest) {
77 77
             case Where::class:
78 78
             case WhereGroup::class:
79 79
                 return new WhereGroup($this, $group, $this->mode());
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function mode(): bool
96 96
     {
97
-        return \tap($this->conjunction, function (): void {
97
+        return \tap($this->conjunction, function(): void {
98 98
             $this->conjunction = true;
99 99
         });
100 100
     }
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/JoinBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 ? $this->getAlias($relation)
63 63
                 : $this->getCachedAlias($relation);
64 64
 
65
-            if (! $exists) {
65
+            if (!$exists) {
66 66
                 // Create join
67 67
                 $relationField = Field::new($relation['fieldName'])->toString($alias);
68 68
                 $this->join($builder, $join, $relationField, $relationAlias);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function getKey(array $relation): string
110 110
     {
111
-        return $relation['sourceEntity'] . '_' . $relation['targetEntity'];
111
+        return $relation['sourceEntity'].'_'.$relation['targetEntity'];
112 112
     }
113 113
 
114 114
     /**
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $key = $this->getKey($relation);
132 132
 
133
-        if (! isset($this->relations[$key])) {
133
+        if (!isset($this->relations[$key])) {
134 134
             return $this->relations[$key] =
135 135
                 $this->query->createAlias(
136 136
                     $relation['sourceEntity'],
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     public function __get(string $key): HigherOrderCollectionProxy
122 122
     {
123
-        if (! \in_array($key, static::$proxies, true)) {
123
+        if (!\in_array($key, static::$proxies, true)) {
124 124
             $error = "Property [{$key}] does not exist on this collection instance.";
125 125
             throw new \InvalidArgumentException($error);
126 126
         }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *  }, ...);
26 26
      * </code>
27 27
      */
28
-    if (! \defined('_')) {
28
+    if (!\defined('_')) {
29 29
         \define('_', \RDS\Hydrogen\HighOrderMessaging\HigherOrderCollectionProxy::PATTERN);
30 30
     }
31 31
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @since 0.3.4
38 38
      */
39
-    if (! \class_exists(\RDS\Hydrogen\Collection\Collection::class)) {
39
+    if (!\class_exists(\RDS\Hydrogen\Collection\Collection::class)) {
40 40
         \class_alias(\RDS\Hydrogen\Collection::class, \RDS\Hydrogen\Collection\Collection::class);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Query.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function add(CriterionInterface $criterion): self
258 258
     {
259
-        if (! $criterion->isAttached()) {
259
+        if (!$criterion->isAttached()) {
260 260
             $criterion->attach($this);
261 261
         }
262 262
 
@@ -352,14 +352,14 @@  discard block
 block discarded – undo
352 352
      */
353 353
     public function except($filter): Query
354 354
     {
355
-        if (\is_string($filter) && ! \is_callable($filter)) {
356
-            return $this->only(function (CriterionInterface $criterion) use ($filter): bool {
357
-                return ! $criterion instanceof $filter;
355
+        if (\is_string($filter) && !\is_callable($filter)) {
356
+            return $this->only(function(CriterionInterface $criterion) use ($filter): bool {
357
+                return !$criterion instanceof $filter;
358 358
             });
359 359
         }
360 360
 
361
-        return $this->only(function (CriterionInterface $criterion) use ($filter): bool {
362
-            return ! $filter($criterion);
361
+        return $this->only(function(CriterionInterface $criterion) use ($filter): bool {
362
+            return !$filter($criterion);
363 363
         });
364 364
     }
365 365
 
@@ -392,10 +392,10 @@  discard block
 block discarded – undo
392 392
     {
393 393
         \assert(\is_string($filter) || \is_callable($filter));
394 394
 
395
-        if (\is_string($filter) && ! \is_callable($filter)) {
395
+        if (\is_string($filter) && !\is_callable($filter)) {
396 396
             $typeOf = $filter;
397 397
 
398
-            return function (CriterionInterface $criterion) use ($typeOf): bool {
398
+            return function(CriterionInterface $criterion) use ($typeOf): bool {
399 399
                 return $criterion instanceof $typeOf;
400 400
             };
401 401
         }
Please login to merge, or discard this patch.