@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function getParentClasses(string $className) : array |
| 20 | 20 | { |
| 21 | - if (! class_exists($className)) { |
|
| 21 | + if ( ! class_exists($className)) { |
|
| 22 | 22 | throw MappingException::nonExistingClass($className); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function getRepository(EntityManagerInterface $entityManager, $entityName) |
| 28 | 28 | { |
| 29 | - $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_id($entityManager); |
|
| 29 | + $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_id($entityManager); |
|
| 30 | 30 | |
| 31 | 31 | return $this->repositoryList[$repositoryHash] |
| 32 | 32 | ?? $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName); |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | string $method |
| 15 | 15 | ) : self { |
| 16 | 16 | return new self( |
| 17 | - "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . |
|
| 18 | - "You can therefore not call '" . $method . "' on the entities' repository." |
|
| 17 | + "Entity '".$entityName."' has no field '".$fieldName."'. ". |
|
| 18 | + "You can therefore not call '".$method."' on the entities' repository." |
|
| 19 | 19 | ); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public static function onMissingParameter(string $methodName) : self |
| 23 | 23 | { |
| 24 | - return new self("You need to pass a parameter to '" . $methodName . "'"); |
|
| 24 | + return new self("You need to pass a parameter to '".$methodName."'"); |
|
| 25 | 25 | } |
| 26 | 26 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | string $associationFieldName |
| 14 | 14 | ) : self { |
| 15 | 15 | return new self( |
| 16 | - "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " . |
|
| 16 | + "You cannot search for the association field '".$entityName.'#'.$associationFieldName."', ". |
|
| 17 | 17 | 'because it is the inverse side of an association. Find methods only work on owning side associations.' |
| 18 | 18 | ); |
| 19 | 19 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function add($sort, $order = null) |
| 46 | 46 | { |
| 47 | 47 | $order = ! $order ? 'ASC' : $order; |
| 48 | - $this->parts[] = $sort . ' ' . $order; |
|
| 48 | + $this->parts[] = $sort.' '.$order; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -69,6 +69,6 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function __toString() |
| 71 | 71 | { |
| 72 | - return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator; |
|
| 72 | + return $this->preSeparator.implode($this->separator, $this->parts).$this->postSeparator; |
|
| 73 | 73 | } |
| 74 | 74 | } |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function noDispatchForNode($node) |
| 21 | 21 | { |
| 22 | - return new self('Double-dispatch for node ' . get_class($node) . ' is not supported.'); |
|
| 22 | + return new self('Double-dispatch for node '.get_class($node).' is not supported.'); |
|
| 23 | 23 | } |
| 24 | 24 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $tableAlias = $sqlWalker->getSQLTableAlias($tableName, $dqlAlias); |
| 69 | 69 | $quotedColumnName = $platform->quoteIdentifier($joinColumn->getColumnName()); |
| 70 | 70 | |
| 71 | - return $tableAlias . '.' . $quotedColumnName; |
|
| 71 | + return $tableAlias.'.'.$quotedColumnName; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $targetTableAlias = $sqlWalker->getSQLTableAlias($targetClass->getTableName()); |
| 45 | 45 | $sourceTableAlias = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias); |
| 46 | 46 | |
| 47 | - $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE '; |
|
| 47 | + $sql .= $targetTableName.' '.$targetTableAlias.' WHERE '; |
|
| 48 | 48 | |
| 49 | 49 | $owningAssociation = $targetClass->getProperty($association->getMappedBy()); |
| 50 | 50 | $first = true; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | // join to target table |
| 81 | - $sql .= $joinTableName . ' ' . $joinTableAlias . ' WHERE '; |
|
| 81 | + $sql .= $joinTableName.' '.$joinTableAlias.' WHERE '; |
|
| 82 | 82 | |
| 83 | 83 | $joinColumns = $association->isOwningSide() |
| 84 | 84 | ? $joinTable->getJoinColumns() |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - return '(' . $sql . ')'; |
|
| 107 | + return '('.$sql.')'; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -23,9 +23,9 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function getSql(SqlWalker $sqlWalker) |
| 25 | 25 | { |
| 26 | - return 'ABS(' . $sqlWalker->walkSimpleArithmeticExpression( |
|
| 26 | + return 'ABS('.$sqlWalker->walkSimpleArithmeticExpression( |
|
| 27 | 27 | $this->simpleArithmeticExpression |
| 28 | - ) . ')'; |
|
| 28 | + ).')'; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |