@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | $this->fields = array_keys($this->getClassMetadata()->fieldMappings); |
| 42 | 42 | |
| 43 | - $entityName = explode('\\', strtolower($this->getEntityName()) ); |
|
| 44 | - $entityName = $entityName[count($entityName)-1]; |
|
| 43 | + $entityName = explode('\\', strtolower($this->getEntityName())); |
|
| 44 | + $entityName = $entityName[count($entityName) - 1]; |
|
| 45 | 45 | $entityAlias = $entityName[0]; |
| 46 | 46 | $this->entityAlias = $entityAlias; |
| 47 | 47 | |
@@ -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 += 1; |
| 127 | 127 | } |
| 128 | 128 | } else { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | foreach ($orFilters as $key => $filterValue) { |
| 174 | 174 | if (is_array($filterValue)) { |
| 175 | 175 | foreach ($filterValue as $keyInternal => $internal) { |
| 176 | - $filterOrCorrected[$keyInternal .'|' . $count] = $internal; |
|
| 176 | + $filterOrCorrected[$keyInternal . '|' . $count] = $internal; |
|
| 177 | 177 | $count += 1; |
| 178 | 178 | } |
| 179 | 179 | } else { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | foreach ($orFilters as $key => $filter) { |
| 220 | 220 | if (\is_array($filter)) { |
| 221 | 221 | foreach ($filter as $keyInternal => $internal) { |
| 222 | - $filterOrCorrected[$keyInternal .'|' . $count] = $internal; |
|
| 222 | + $filterOrCorrected[$keyInternal . '|' . $count] = $internal; |
|
| 223 | 223 | $count += 1; |
| 224 | 224 | } |
| 225 | 225 | } else { |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | $pagerAdapter = new DoctrineORMAdapter($queryBuilder); |
| 274 | 274 | |
| 275 | 275 | $query = $pagerAdapter->getQuery(); |
| 276 | - if(null != $this->use_result_cache && $this->use_result_cache){ |
|
| 276 | + if (null != $this->use_result_cache && $this->use_result_cache) { |
|
| 277 | 277 | $query->useResultCache(true, 600); |
| 278 | 278 | } |
| 279 | 279 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | $params[$itemValue] = $this->queryOptions->get($itemValue); |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | - if(!isset($this->route_name)){ |
|
| 312 | + if (!isset($this->route_name)) { |
|
| 313 | 313 | $this->route_name = $this->queryOptions->get('_route'); |
| 314 | 314 | } |
| 315 | 315 | |
@@ -338,8 +338,8 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | public function getEntityAlias(string $entityName) : string |
| 340 | 340 | { |
| 341 | - $arrayEntityName = explode('\\', strtolower($entityName) ); |
|
| 342 | - return $arrayEntityName[count($arrayEntityName)-1]; |
|
| 341 | + $arrayEntityName = explode('\\', strtolower($entityName)); |
|
| 342 | + return $arrayEntityName[count($arrayEntityName) - 1]; |
|
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | protected function relationship($queryBuilder) |