Completed
Push — master ( 425c1b...dc66d0 )
by Kirill
08:02
created
src/Processor/DatabaseProcessor/GroupBuilder.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @param QueryBuilder $builder
36 36
      * @param CriterionInterface|WhereGroup $group
37
-     * @return iterable|null
37
+     * @return \Generator
38 38
      */
39 39
     public function apply($builder, CriterionInterface $group): ?iterable
40 40
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * @param WhereGroup $group
83
-     * @return iterable|callable[]
83
+     * @return \Generator
84 84
      */
85 85
     protected function getInnerSelections(WhereGroup $group): iterable
86 86
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\ORM\Query\Expr\Andx;
13 13
 use Doctrine\ORM\QueryBuilder;
14
-use phpDocumentor\Reflection\Types\Static_;
15 14
 use RDS\Hydrogen\Criteria\Criterion;
16 15
 use RDS\Hydrogen\Criteria\CriterionInterface;
17 16
 use RDS\Hydrogen\Criteria\WhereGroup;
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/HavingBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param QueryBuilder $builder
24 24
      * @param CriterionInterface|Having $having
25
-     * @return iterable|null
25
+     * @return \Generator
26 26
      */
27 27
     public function apply($builder, CriterionInterface $having): ?iterable
28 28
     {
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/HavingGroupBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * @param QueryBuilder $builder
37 37
      * @param CriterionInterface|WhereGroup $group
38
-     * @return iterable|null
38
+     * @return \Generator
39 39
      */
40 40
     public function apply($builder, CriterionInterface $group): ?iterable
41 41
     {
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/JoinBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * @param QueryBuilder $builder
29 29
      * @param CriterionInterface|Join $join
30
-     * @return iterable|null
30
+     * @return \Generator
31 31
      */
32 32
     public function apply($builder, CriterionInterface $join): ?iterable
33 33
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     private function getKey(array $relation): string
105 105
     {
106
-        return $relation['sourceEntity'] . '_' . $relation['targetEntity'];
106
+        return $relation['sourceEntity'].'_'.$relation['targetEntity'];
107 107
     }
108 108
 
109 109
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $key = $this->getKey($relation);
116 116
 
117
-        if (! isset($this->relations[$key])) {
117
+        if (!isset($this->relations[$key])) {
118 118
             return $this->relations[$key] =
119 119
                 $this->query->createAlias(
120 120
                     $relation['sourceEntity'],
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/OrderByBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * @param QueryBuilder $builder
23 23
      * @param CriterionInterface|OrderBy $orderBy
24
-     * @return iterable|null
24
+     * @return \Generator
25 25
      */
26 26
     public function apply($builder, CriterionInterface $orderBy): ?iterable
27 27
     {
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/SelectBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * @param QueryBuilder $builder
23 23
      * @param CriterionInterface|Selection $select
24
-     * @return iterable|null
24
+     * @return \Generator
25 25
      */
26 26
     public function apply($builder, CriterionInterface $select): ?iterable
27 27
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $selection = yield $select->getField();
30 30
 
31 31
         if ($select->hasAlias()) {
32
-            $selection .= ' AS ' . $select->getAlias();
32
+            $selection .= ' AS '.$select->getAlias();
33 33
         }
34 34
 
35 35
         $builder->addSelect($selection);
Please login to merge, or discard this patch.
src/Processor/DatabaseProcessor/WhereBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @param QueryBuilder $builder
26 26
      * @param CriterionInterface|Where $where
27
-     * @return iterable|null
27
+     * @return \Generator
28 28
      */
29 29
     public function apply($builder, CriterionInterface $where): ?iterable
30 30
     {
Please login to merge, or discard this patch.
src/Processor/Processor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param mixed $context
83
+     * @param \Doctrine\ORM\QueryBuilder $context
84 84
      * @param Query $query
85 85
      * @return \Generator
86 86
      */
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     /**
120 120
      * @param Query $query
121
-     * @return \Generator|BuilderInterface[]
121
+     * @return \Generator
122 122
      */
123 123
     private function builders(Query $query): \Generator
124 124
     {
Please login to merge, or discard this patch.
src/Query/AliasProvider.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -44,6 +44,7 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param string ...$patterns
47
+     * @param string[] $patterns
47 48
      * @return string
48 49
      */
49 50
     public function createAlias(string ...$patterns): string
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             }
61 61
         }
62 62
 
63
-        return 'q' . Str::random(7) . '_' . ++static::$lastQueryId;
63
+        return 'q'.Str::random(7).'_'.++static::$lastQueryId;
64 64
     }
65 65
 
66 66
     /**
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function createPlaceholder(string $pattern = null): string
71 71
     {
72
-        return ':' . $this->createAlias($pattern);
72
+        return ':'.$this->createAlias($pattern);
73 73
     }
74 74
 
75 75
     /**
Please login to merge, or discard this patch.