@@ -81,7 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | public function getClassByName($className) |
| 83 | 83 | { |
| 84 | - return isset($this->metadata[$className]) && !empty($this->metadata[$className])? |
|
| 85 | - $this->metadata[$className]: null; |
|
| 84 | + return isset($this->metadata[$className]) && !empty($this->metadata[$className]) ? |
|
| 85 | + $this->metadata[$className] : null; |
|
| 86 | 86 | } |
| 87 | 87 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $this->stringGenerator = new StringGenerator($this->classStore); |
| 58 | 58 | |
| 59 | 59 | // $this->storeClasses($metadata); |
| 60 | - $str = array(); |
|
| 60 | + $str = array(); |
|
| 61 | 61 | |
| 62 | 62 | foreach ($metadata as $class) { |
| 63 | 63 | if ($parent = $this->classStore->getParent($class)) { |
@@ -44,8 +44,7 @@ |
||
| 44 | 44 | protected function isVisitedAssociation($className, $association = null) |
| 45 | 45 | { |
| 46 | 46 | return null === $association ? |
| 47 | - isset($this->visitedAssociations[$className]) : |
|
| 48 | - isset($this->visitedAssociations[$className][$association]); |
|
| 47 | + isset($this->visitedAssociations[$className]) : isset($this->visitedAssociations[$className][$association]); |
|
| 49 | 48 | } |
| 50 | 49 | |
| 51 | 50 | /** |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function getClassText($className, $fields) |
| 15 | 15 | { |
| 16 | 16 | $classText = '[' . str_replace('\\', '.', $className); |
| 17 | - $classText .= !empty($fields)? '|' . implode(';', $fields) : ''; |
|
| 17 | + $classText .= !empty($fields) ? '|' . implode(';', $fields) : ''; |
|
| 18 | 18 | $classText .= ']'; |
| 19 | 19 | |
| 20 | 20 | return $classText; |
@@ -95,6 +95,6 @@ discard block |
||
| 95 | 95 | } elseif ($classCount === 1) { |
| 96 | 96 | return '1'; |
| 97 | 97 | } |
| 98 | - throw new \Exception('Impossible class count value ' . $classCount); |
|
| 98 | + throw new \Exception('Impossible class count value ' . $classCount); |
|
| 99 | 99 | } |
| 100 | 100 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function getClassString(ClassMetadata $class) |
| 61 | 61 | { |
| 62 | - $className = $class->getName(); |
|
| 62 | + $className = $class->getName(); |
|
| 63 | 63 | |
| 64 | 64 | if (!isset($this->classStrings[$className])) { |
| 65 | 65 | $this->associationLogger->visitAssociation($className); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | continue; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - $fields[] = $class->isIdentifier($fieldName)? '+' . $fieldName : $fieldName; |
|
| 139 | + $fields[] = $class->isIdentifier($fieldName) ? '+' . $fieldName : $fieldName; |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | return $fields; |