@@ -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.')) { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $this->fields = array_keys($this->getClassMetadata()->fieldMappings); |
| 42 | 42 | |
| 43 | 43 | $entityName = explode('\\', strtolower($this->getEntityName())); |
| 44 | - $entityName = $entityName[count($entityName)-1]; |
|
| 44 | + $entityName = $entityName[count($entityName) - 1]; |
|
| 45 | 45 | $entityAlias = $entityName[0]; |
| 46 | 46 | $this->entityAlias = $entityAlias; |
| 47 | 47 | |
@@ -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 | |