@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function __construct($operator, $field, $value, $dqlAlias = null) |
44 | 44 | { |
45 | - if (! in_array($operator, self::$operators, true)) { |
|
45 | + if (!in_array($operator, self::$operators, true)) { |
|
46 | 46 | throw new InvalidArgumentException( |
47 | 47 | sprintf( |
48 | 48 | '"%s" is not a valid operator. Valid operators: %s', |
@@ -50,7 +50,7 @@ |
||
50 | 50 | return $value; |
51 | 51 | } |
52 | 52 | |
53 | - if (! empty($this->dqlAlias)) { |
|
53 | + if (!empty($this->dqlAlias)) { |
|
54 | 54 | $dqlAlias = $this->dqlAlias; |
55 | 55 | } |
56 | 56 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function add($value) |
41 | 41 | { |
42 | - if (! $value instanceof SpecificationInterface) { |
|
42 | + if (!$value instanceof SpecificationInterface) { |
|
43 | 43 | throw new InvalidArgumentException(sprintf( |
44 | 44 | '"%s" does not implement "%s"!', |
45 | 45 | (is_object($value)) ? get_class($value) : $value, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function modify(QueryBuilder $queryBuilder, $dqlAlias) |
57 | 57 | { |
58 | - $match = function (SpecificationInterface $specification) use ($queryBuilder, $dqlAlias) { |
|
58 | + $match = function(SpecificationInterface $specification) use ($queryBuilder, $dqlAlias) { |
|
59 | 59 | return $specification->modify($queryBuilder, $dqlAlias); |
60 | 60 | }; |
61 | 61 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | protected function setType($type) |
113 | 113 | { |
114 | - if (! in_array($type, self::$types, true)) { |
|
114 | + if (!in_array($type, self::$types, true)) { |
|
115 | 115 | $message = sprintf('"%s" is not a valid type! Valid types: %s', $type, implode(', ', self::$types)); |
116 | 116 | throw new InvalidArgumentException($message); |
117 | 117 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function add($value) |
32 | 32 | { |
33 | - if (! $value instanceof ModifierInterface) { |
|
33 | + if (!$value instanceof ModifierInterface) { |
|
34 | 34 | throw new InvalidArgumentException(sprintf( |
35 | 35 | '"%s" does not implement "%s"!', |
36 | 36 | (is_object($value)) ? get_class($value) : $value, |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function setType($type) |
53 | 53 | { |
54 | - if (! in_array($type, self::$types, true)) { |
|
54 | + if (!in_array($type, self::$types, true)) { |
|
55 | 55 | throw new InvalidArgumentException(sprintf( |
56 | 56 | '"%s" is not a valid type! Valid types: %s', |
57 | 57 | $type, |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function setType($type) |
66 | 66 | { |
67 | - if (! in_array($type, self::$types, true)) { |
|
67 | + if (!in_array($type, self::$types, true)) { |
|
68 | 68 | throw new InvalidArgumentException(sprintf( |
69 | 69 | '"%s" is not a valid type! Valid types: %s', |
70 | 70 | $type, |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function modify(QueryBuilder $queryBuilder, $dqlAlias) |
82 | 82 | { |
83 | - if (! is_null($this->dqlAlias)) { |
|
83 | + if (!is_null($this->dqlAlias)) { |
|
84 | 84 | $dqlAlias = $this->dqlAlias; |
85 | 85 | } |
86 | 86 |
@@ -30,9 +30,9 @@ |
||
30 | 30 | */ |
31 | 31 | public function __construct($field, $order = null, $dqlAlias = null) |
32 | 32 | { |
33 | - $order = ! $order ? self::ASC : strtoupper($order); |
|
33 | + $order = !$order ? self::ASC : strtoupper($order); |
|
34 | 34 | |
35 | - if (! in_array($order, self::$validOrder, true)) { |
|
35 | + if (!in_array($order, self::$validOrder, true)) { |
|
36 | 36 | throw new InvalidArgumentException(); |
37 | 37 | } |
38 | 38 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | public function setType($type) |
48 | 48 | { |
49 | - if (! in_array($type, self::$types, true)) { |
|
49 | + if (!in_array($type, self::$types, true)) { |
|
50 | 50 | throw new InvalidArgumentException(sprintf( |
51 | 51 | '"%s" is not a valid type! Valid types: %s', |
52 | 52 | $type, |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function setType($type) |
53 | 53 | { |
54 | - if (! in_array($type, self::$types, true)) { |
|
54 | + if (!in_array($type, self::$types, true)) { |
|
55 | 55 | throw new InvalidArgumentException(sprintf( |
56 | 56 | '"%s" is not a valid type! Valid types: %s', |
57 | 57 | $type, |