@@ -170,7 +170,7 @@ |
||
170 | 170 | $column = sprintf('DISTINCT(%s)', $this->loader->getPK()); |
171 | 171 | } |
172 | 172 | |
173 | - return (int) $this->__call('count', [$column]); |
|
173 | + return (int)$this->__call('count', [$column]); |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | /** |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function configureQuery(SelectQuery $query, array $outerKeys = []): SelectQuery |
118 | 118 | { |
119 | - if ($this->isLoaded() && $this->isJoined() && (int) $query->getLimit() !== 0) { |
|
119 | + if ($this->isLoaded() && $this->isJoined() && (int)$query->getLimit() !== 0) { |
|
120 | 120 | throw new LoaderException('Unable to load data using join with limit on parent query'); |
121 | 121 | } |
122 | 122 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function configureQuery(SelectQuery $query, array $outerKeys = []): SelectQuery |
58 | 58 | { |
59 | - if ($this->isLoaded() && $this->isJoined() && (int) $query->getLimit() !== 0) { |
|
59 | + if ($this->isLoaded() && $this->isJoined() && (int)$query->getLimit() !== 0) { |
|
60 | 60 | throw new LoaderException('Unable to load data using join with limit on parent query'); |
61 | 61 | } |
62 | 62 |
@@ -47,13 +47,13 @@ |
||
47 | 47 | |
48 | 48 | switch ($rule) { |
49 | 49 | case 'int': |
50 | - $values[$key] = (int) $values[$key]; |
|
50 | + $values[$key] = (int)$values[$key]; |
|
51 | 51 | break; |
52 | 52 | case 'bool': |
53 | - $values[$key] = (bool) $values[$key]; |
|
53 | + $values[$key] = (bool)$values[$key]; |
|
54 | 54 | break; |
55 | 55 | case 'float': |
56 | - $values[$key] = (float) $values[$key]; |
|
56 | + $values[$key] = (float)$values[$key]; |
|
57 | 57 | break; |
58 | 58 | case 'datetime': |
59 | 59 | $values[$key] = new DateTimeImmutable( |
@@ -46,7 +46,7 @@ |
||
46 | 46 | return true; |
47 | 47 | } |
48 | 48 | |
49 | - $criteria = (string) $data[$this->duplicateCriteria]; |
|
49 | + $criteria = (string)$data[$this->duplicateCriteria]; |
|
50 | 50 | |
51 | 51 | if (isset($this->duplicates[$criteria])) { |
52 | 52 | // duplicate is presented, let's reduplicate |