@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | $items = $this->getItems(); |
| 52 | 52 | if (!$this->hasItem($name)) { |
| 53 | 53 | throw new Exception( |
| 54 | - 'Bad Item ['.$name.'] for smart property |
|
| 55 | - ['.$this->getManager()->getController().']['.$this->getName().']'); |
|
| 54 | + 'Bad Item [' . $name . '] for smart property |
|
| 55 | + ['.$this->getManager()->getController() . '][' . $this->getName() . ']'); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | return $items[$name]; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function getItemsNamesFromManager() |
| 99 | 99 | { |
| 100 | - $methodName = 'get'.$this->getName().'Names'; |
|
| 100 | + $methodName = 'get' . $this->getName() . 'Names'; |
|
| 101 | 101 | if (method_exists($this->getManager(), $methodName)) { |
| 102 | 102 | return $this->getManager()->$methodName(); |
| 103 | 103 | } |
@@ -198,12 +198,12 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | public function generateItemsDirectory() |
| 200 | 200 | { |
| 201 | - $methodName = 'get'.$this->getName().'ItemsDirectory'; |
|
| 201 | + $methodName = 'get' . $this->getName() . 'ItemsDirectory'; |
|
| 202 | 202 | if (method_exists($this->getManager(), $methodName)) { |
| 203 | 203 | return $this->getManager()->$methodName(); |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - return $this->generateManagerDirectory().DIRECTORY_SEPARATOR.$this->generatePropertyDirectory(); |
|
| 206 | + return $this->generateManagerDirectory() . DIRECTORY_SEPARATOR . $this->generatePropertyDirectory(); |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | { |
| 290 | 290 | $type = $type ? $type : $this->getDefaultValue(); |
| 291 | 291 | |
| 292 | - return $this->getPropertyItemsRootNamespace().inflector()->classify($type); |
|
| 292 | + return $this->getPropertyItemsRootNamespace() . inflector()->classify($type); |
|
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | protected function getDefaultValueFromManager() |
| 331 | 331 | { |
| 332 | - $method = 'getDefault'.$this->getName(); |
|
| 332 | + $method = 'getDefault' . $this->getName(); |
|
| 333 | 333 | if (method_exists($this->getManager(), $method)) { |
| 334 | 334 | return $this->getManager()->{$method}(); |
| 335 | 335 | } |
@@ -353,11 +353,11 @@ discard block |
||
| 353 | 353 | */ |
| 354 | 354 | protected function getPropertyItemsRootNamespace() |
| 355 | 355 | { |
| 356 | - $method = 'get'.$this->getName().'ItemsRootNamespace'; |
|
| 356 | + $method = 'get' . $this->getName() . 'ItemsRootNamespace'; |
|
| 357 | 357 | if (method_exists($this->getManager(), $method)) { |
| 358 | 358 | return $this->getManager()->{$method}(); |
| 359 | 359 | } |
| 360 | - return $this->getManager()->getModelNamespace().$this->getLabel().'\\'; |
|
| 360 | + return $this->getManager()->getModelNamespace() . $this->getLabel() . '\\'; |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | $items = $this->getItems(); |
| 371 | 371 | |
| 372 | 372 | foreach ($items as $type) { |
| 373 | - $method = 'get'.ucfirst($name); |
|
| 373 | + $method = 'get' . ucfirst($name); |
|
| 374 | 374 | if (method_exists($type, $method)) { |
| 375 | 375 | $return[] = $type->$method(); |
| 376 | 376 | } else { |