@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | $this->fields = array_keys($this->getClassMetadata()->fieldMappings); |
41 | 41 | |
42 | - $entityName = explode('\\', strtolower($this->getEntityName()) ); |
|
43 | - $entityName = $entityName[count($entityName)-1]; |
|
42 | + $entityName = explode('\\', strtolower($this->getEntityName())); |
|
43 | + $entityName = $entityName[count($entityName) - 1]; |
|
44 | 44 | $entityAlias = $entityName[0]; |
45 | 45 | $this->entityAlias = $entityAlias; |
46 | 46 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | foreach ($orFilters as $key => $filter) { |
123 | 123 | if (is_array($filter)) { |
124 | 124 | foreach ($filter as $keyInternal => $internal) { |
125 | - $filterOrCorrected[$keyInternal .'|' . $count] = $internal; |
|
125 | + $filterOrCorrected[$keyInternal . '|' . $count] = $internal; |
|
126 | 126 | $count = $count + 1; |
127 | 127 | } |
128 | 128 | } else { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | foreach ($orFilters as $key => $filter) { |
175 | 175 | if (is_array($filter)) { |
176 | 176 | foreach ($filter as $keyInternal => $internal) { |
177 | - $filterOrCorrected[$keyInternal .'|' . $count] = $internal; |
|
177 | + $filterOrCorrected[$keyInternal . '|' . $count] = $internal; |
|
178 | 178 | $count = $count + 1; |
179 | 179 | } |
180 | 180 | } else { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | foreach ($orFilters as $key => $filter) { |
222 | 222 | if (is_array($filter)) { |
223 | 223 | foreach ($filter as $keyInternal => $internal) { |
224 | - $filterOrCorrected[$keyInternal .'|' . $count] = $internal; |
|
224 | + $filterOrCorrected[$keyInternal . '|' . $count] = $internal; |
|
225 | 225 | $count = $count + 1; |
226 | 226 | } |
227 | 227 | } else { |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $pagerAdapter = new DoctrineORMAdapter($queryBuilder); |
279 | 279 | |
280 | 280 | $query = $pagerAdapter->getQuery(); |
281 | - if(isset($this->use_result_cache) and $this->use_result_cache){ |
|
281 | + if (isset($this->use_result_cache) and $this->use_result_cache) { |
|
282 | 282 | $query->useResultCache(true, 600); |
283 | 283 | } |
284 | 284 | |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | $params[$itemValue] = $this->queryOptions->get($itemValue); |
318 | 318 | } |
319 | 319 | |
320 | - if(!isset($this->route_name)){ |
|
320 | + if (!isset($this->route_name)) { |
|
321 | 321 | $this->route_name = $this->queryOptions->get('_route'); |
322 | 322 | } |
323 | 323 | |
@@ -347,8 +347,8 @@ discard block |
||
347 | 347 | /** @deprecated since version 2.2.0 */ |
348 | 348 | public function getEntityAlias(string $entityName) : string |
349 | 349 | { |
350 | - $arrayEntityName = explode('\\', strtolower($entityName) ); |
|
351 | - return $arrayEntityName[count($arrayEntityName)-1]; |
|
350 | + $arrayEntityName = explode('\\', strtolower($entityName)); |
|
351 | + return $arrayEntityName[count($arrayEntityName) - 1]; |
|
352 | 352 | } |
353 | 353 | |
354 | 354 | protected function relationship($queryBuilder) |