@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid\View; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid\Filter; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid\Filter; |
15 | 15 | |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | case self::TYPE_NOT_EMPTY: |
100 | 100 | return $expressionBuilder->isNotNull($field); |
101 | 101 | case self::TYPE_CONTAINS: |
102 | - return $expressionBuilder->like($field, '%'.$value.'%'); |
|
102 | + return $expressionBuilder->like($field, '%' . $value . '%'); |
|
103 | 103 | case self::TYPE_NOT_CONTAINS: |
104 | - return $expressionBuilder->notLike($field, '%'.$value.'%'); |
|
104 | + return $expressionBuilder->notLike($field, '%' . $value . '%'); |
|
105 | 105 | case self::TYPE_STARTS_WITH: |
106 | - return $expressionBuilder->like($field, $value.'%'); |
|
106 | + return $expressionBuilder->like($field, $value . '%'); |
|
107 | 107 | case self::TYPE_ENDS_WITH: |
108 | - return $expressionBuilder->like($field, '%'.$value); |
|
108 | + return $expressionBuilder->like($field, '%' . $value); |
|
109 | 109 | case self::TYPE_IN: |
110 | 110 | return $expressionBuilder->in($field, array_map('trim', explode(',', $value))); |
111 | 111 | case self::TYPE_NOT_IN: |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid\Filter; |
15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $from = isset($data['from']) ? $this->getDateTime($data['from']) : null; |
38 | 38 | if (null !== $from) { |
39 | - $inclusive = (bool)$this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM); |
|
39 | + $inclusive = (bool) $this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM); |
|
40 | 40 | if (true === $inclusive) { |
41 | 41 | $expressionBuilder->greaterThanOrEqual($field, $from); |
42 | 42 | } else { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $to = isset($data['to']) ? $this->getDateTime($data['to']) : null; |
48 | 48 | if (null !== $to) { |
49 | - $inclusive = (bool)$this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO); |
|
49 | + $inclusive = (bool) $this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO); |
|
50 | 50 | if (true === $inclusive) { |
51 | 51 | $expressionBuilder->lessThanOrEqual($field, $to); |
52 | 52 | } else { |
@@ -83,6 +83,6 @@ discard block |
||
83 | 83 | return $data['date']; |
84 | 84 | } |
85 | 85 | |
86 | - return $data['date'].' '.$data['time']; |
|
86 | + return $data['date'] . ' ' . $data['time']; |
|
87 | 87 | } |
88 | 88 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid\Data; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Grid; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace spec\Sylius\Component\Resource\Factory; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace spec\Sylius\Component\Resource\Metadata; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace spec\Sylius\Component\Resource\Exception; |
15 | 15 |