@@ -429,7 +429,7 @@ |
||
| 429 | 429 | if (in_array($fieldName, $this->fields)) { |
| 430 | 430 | $direction = ($val === self::DIRECTION_AZ) ? self::DIRECTION_AZ : self::DIRECTION_ZA; |
| 431 | 431 | $this->ensureQueryBuilderIsDefined(); |
| 432 | - $this->qBuilder->addOrderBy($this->entityAlias .'.'. $fieldName, $direction); |
|
| 432 | + $this->qBuilder->addOrderBy($this->entityAlias . '.' . $fieldName, $direction); |
|
| 433 | 433 | } |
| 434 | 434 | |
| 435 | 435 | if (strstr($sort, '_embedded.')) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->fields = array_keys($this->getClassMetadata()->fieldMappings); |
| 41 | 41 | |
| 42 | 42 | $entityName = explode('\\', strtolower($this->getEntityName())); |
| 43 | - $entityName = $entityName[count($entityName)-1]; |
|
| 43 | + $entityName = $entityName[count($entityName) - 1]; |
|
| 44 | 44 | $entityAlias = $entityName[0]; |
| 45 | 45 | $this->entityAlias = $entityAlias; |
| 46 | 46 | |
@@ -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 | |