@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * }, ...); |
| 24 | 24 | * </code> |
| 25 | 25 | */ |
| 26 | - if (! \defined('_')) { |
|
| 26 | + if (!\defined('_')) { |
|
| 27 | 27 | \define('_', \RDS\Hydrogen\Collection\HigherOrderCollectionProxy::PATTERN); |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -64,6 +64,6 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function isDesc(): bool |
| 66 | 66 | { |
| 67 | - return ! $this->asc; |
|
| 67 | + return !$this->asc; |
|
| 68 | 68 | } |
| 69 | 69 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | foreach ($inner->getCriteria() as $where) { |
| 33 | 33 | $expression = parent::getDoctrineExpression($where, $builder->expr(), $where->getField()); |
| 34 | 34 | |
| 35 | - yield from $this->extractResult($expression, function ($current) use ($expr, $where, $builder) { |
|
| 35 | + yield from $this->extractResult($expression, function($current) use ($expr, $where, $builder) { |
|
| 36 | 36 | if ($where->isAnd()) { |
| 37 | 37 | $expr->add($current); |
| 38 | 38 | } else { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $expression = $this->getDoctrineExpression($where, $builder->expr(), $where->getField()); |
| 32 | 32 | |
| 33 | - yield from $this->extractResult($expression, function ($expr) use ($where, $builder) { |
|
| 33 | + yield from $this->extractResult($expression, function($expr) use ($where, $builder) { |
|
| 34 | 34 | if ($where->isAnd()) { |
| 35 | 35 | $builder->andWhere($expr); |
| 36 | 36 | } else { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param Query $query |
| 86 | 86 | * @return \Generator |
| 87 | 87 | */ |
| 88 | - protected function forEach($context, Query $query): \Generator |
|
| 88 | + protected function forEach ($context, Query $query): \Generator |
|
| 89 | 89 | { |
| 90 | 90 | foreach ($query->getCriteria() as $criterion) { |
| 91 | 91 | $builder = $this->getBuilder($criterion); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | return \iterator_to_array($value); |
| 63 | 63 | |
| 64 | 64 | case \is_object($value) && \method_exists($value, '__toString'): |
| 65 | - return (string)$value; |
|
| 65 | + return (string) $value; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | return $value; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | ($this->then)($query); |
| 70 | 70 | |
| 71 | 71 | foreach ($query->getCriteria() as $criterion) { |
| 72 | - if (! $criterion instanceof Where) { |
|
| 72 | + if (!$criterion instanceof Where) { |
|
| 73 | 73 | $error = 'Groups allow to specify only Where selections, but %s given'; |
| 74 | 74 | throw new \LogicException(\sprintf($error, $criterion)); |
| 75 | 75 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $error = 'Relation should be string ("relation_name") '. |
| 43 | - 'or array (["relation" => function]), ' . |
|
| 43 | + 'or array (["relation" => function]), '. |
|
| 44 | 44 | 'but %s given'; |
| 45 | 45 | |
| 46 | 46 | throw new \InvalidArgumentException(\sprintf($error, \gettype($relation))); |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | */ |
| 111 | 111 | protected function mode(): bool |
| 112 | 112 | { |
| 113 | - return \tap($this->conjunction, function () { |
|
| 113 | + return \tap($this->conjunction, function() { |
|
| 114 | 114 | $this->conjunction = true; |
| 115 | 115 | }); |
| 116 | 116 | } |