Completed
Push — master ( b7ef6a...58a002 )
by Kirill
03:12
created
src/Query/GroupByProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace RDS\Hydrogen\Query;
11 11
 
12 12
 use RDS\Hydrogen\Criteria\HavingGroup;
13
-use RDS\Hydrogen\Criteria\WhereGroup;
14 13
 use RDS\Hydrogen\Criteria\GroupBy;
15 14
 use RDS\Hydrogen\Criteria\Having;
16 15
 use RDS\Hydrogen\Query;
Please login to merge, or discard this patch.
src/Query/RepositoryProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     protected $repository;
26 26
 
27 27
     /**
28
-     * @param ObjectRepository|Hydrogen $repository
28
+     * @param ObjectRepository $repository
29 29
      * @return Query|$this
30 30
      */
31 31
     public function from(ObjectRepository $repository): self
Please login to merge, or discard this patch.
src/Query/WhereProvider/WhereBetweenProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace RDS\Hydrogen\Query\WhereProvider;
11 11
 
12 12
 use RDS\Hydrogen\Criteria\Where\Operator;
13
-use RDS\Hydrogen\Criteria\Where;
14 13
 use RDS\Hydrogen\Query;
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
src/Query/WhereProvider/WhereInProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace RDS\Hydrogen\Query\WhereProvider;
11 11
 
12 12
 use RDS\Hydrogen\Criteria\Where\Operator;
13
-use RDS\Hydrogen\Criteria\Where;
14 13
 use RDS\Hydrogen\Query;
15 14
 
16 15
 /**
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($this->criteria->top())
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());
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     protected function mode(): bool
95 95
     {
96
-        return \tap($this->conjunction, function () {
96
+        return \tap($this->conjunction, function() {
97 97
             $this->conjunction = true;
98 98
         });
99 99
     }
Please login to merge, or discard this patch.
src/Query/SelectProvider.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
     public function select(...$fields): self
26 26
     {
27 27
         foreach ($fields as $field) {
28
-            if (! \is_array($field) && ! \is_string($field)) {
28
+            if (!\is_array($field) && !\is_string($field)) {
29 29
                 $error = 'Selection should be array (["field" => "alias"]) or string ("field") but %s given';
30 30
                 throw new \InvalidArgumentException(\sprintf($error, \gettype($field)));
31 31
             }
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function withEntity(string $alias = null): Query
54 54
     {
55
-        return $this->select([':' . $this->getAlias() => $alias]);
55
+        return $this->select([':'.$this->getAlias() => $alias]);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
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.