Completed
Push — master ( b7ef6a...58a002 )
by Kirill
03:12
created
src/Processor/DatabaseProcessor.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,6 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * @param Query $query
130 130
      * @param string ...$fields
131
+     * @param string[] $fields
131 132
      * @return iterable
132 133
      */
133 134
     public function getResult(Query $query, string ...$fields): iterable
@@ -151,7 +152,7 @@  discard block
 block discarded – undo
151 152
 
152 153
     /**
153 154
      * @param QueryBuilder $builder
154
-     * @param array $fields
155
+     * @param string[] $fields
155 156
      * @return array
156 157
      */
157 158
     private function executeFetchFields(QueryBuilder $builder, array $fields): array
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
                         if ($result === null) {
115 115
                             $stmt = \is_object($value) ? \get_class($value) : \gettype($value);
116
-                            $error = 'Unrecognized coroutine\'s return statement: ' . $stmt;
116
+                            $error = 'Unrecognized coroutine\'s return statement: '.$stmt;
117 117
                             $context->throw(new \InvalidArgumentException($error));
118 118
                         }
119 119
 
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $query->from($this->repository);
136 136
 
137
-        if (! $query->has(Criteria\Selection::class)) {
138
-            $query->select(':' . $query->getAlias());
137
+        if (!$query->has(Criteria\Selection::class)) {
138
+            $query->select(':'.$query->getAlias());
139 139
         }
140 140
 
141 141
         /**
Please login to merge, or discard this patch.
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.