@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | public function template($template) |
| 82 | 82 | { |
| 83 | - $controller = get_class($this->controller); |
|
| 83 | + $controller = get_class($this->controller); |
|
| 84 | 84 | $services = $this->getController()->getServiceLocator(); |
| 85 | 85 | |
| 86 | 86 | $event = new Event(); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | unset($__vars[$key]); |
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | - unset($__vars['content'],$__vars['controllerIdentifier'],$__vars['controller'],$__vars['resource'],$__vars['template'],$__vars['viewResolver']); |
|
| 131 | + unset($__vars['content'], $__vars['controllerIdentifier'], $__vars['controller'], $__vars['resource'], $__vars['template'], $__vars['viewResolver']); |
|
| 132 | 132 | $this->config = $__vars; |
| 133 | 133 | } |
| 134 | 134 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | const NAMESPACE_INFO = 'info'; |
| 22 | 22 | const NAMESPACE_WARNING = 'warning'; |
| 23 | 23 | const NAMESPACE_DANGER = 'danger'; |
| 24 | - const NAMESPACE_SUCCESS = 'success'; |
|
| 24 | + const NAMESPACE_SUCCESS = 'success'; |
|
| 25 | 25 | |
| 26 | 26 | protected $namespace2priority = array( |
| 27 | 27 | self::NAMESPACE_INFO => NotificationEntity::INFO, |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function setListener($listener) |
| 61 | 61 | { |
| 62 | - $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1); |
|
| 62 | + $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1); |
|
| 63 | 63 | $this->notificationListener = $listener; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | public function getList($namespace, $callback) |
| 136 | 136 | { |
| 137 | 137 | $session = new Container($namespace); |
| 138 | - $params = $session->params?:array(); |
|
| 138 | + $params = $session->params ?: array(); |
|
| 139 | 139 | if (!$session->list) { |
| 140 | 140 | $session->list = is_array($callback) |
| 141 | 141 | ? call_user_func($callback, $session->params) |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return $this->$method($value); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'"); |
|
| 44 | + throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'"); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $getters = array_filter( |
| 35 | 35 | get_class_methods($object), |
| 36 | - function ($methodName) use ($object) { |
|
| 36 | + function($methodName) use ($object) { |
|
| 37 | 37 | return "get" === substr($methodName, 0, 3) |
| 38 | 38 | && method_exists($object, 's' . substr($methodName, 1)); |
| 39 | 39 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | $setters = array_filter( |
| 64 | 64 | get_class_methods($object), |
| 65 | - function ($methodName) { |
|
| 65 | + function($methodName) { |
|
| 66 | 66 | return "set" === substr($methodName, 0, 3); |
| 67 | 67 | } |
| 68 | 68 | ); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param object $object |
| 47 | 47 | * @return object |
| 48 | 48 | */ |
| 49 | - public function hydrate (array $data, $object) |
|
| 49 | + public function hydrate(array $data, $object) |
|
| 50 | 50 | { |
| 51 | 51 | |
| 52 | 52 | return $object; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @return array|string |
| 58 | 58 | * @throws \InvalidArgumentException |
| 59 | 59 | */ |
| 60 | - public function extract ($object) |
|
| 60 | + public function extract($object) |
|
| 61 | 61 | { |
| 62 | 62 | if (!$object instanceof EntityInterface) { |
| 63 | 63 | throw new \InvalidArgumentException("Extract only from Entities"); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | // ensures garbage removal |
| 80 | 80 | register_shutdown_function( |
| 81 | - function ($filename) { |
|
| 81 | + function($filename) { |
|
| 82 | 82 | @unlink($filename); |
| 83 | 83 | }, |
| 84 | 84 | $tmp |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | if ($build) { |
| 292 | 292 | $this->build(); |
| 293 | 293 | } |
| 294 | - $this->hasChanged= true; |
|
| 294 | + $this->hasChanged = true; |
|
| 295 | 295 | return $this; |
| 296 | 296 | } |
| 297 | 297 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | $self = $this; |
| 100 | 100 | $forms = array_map( |
| 101 | - function ($key) use ($self) { |
|
| 101 | + function($key) use ($self) { |
|
| 102 | 102 | return $self->getForm($key); |
| 103 | 103 | }, |
| 104 | 104 | $this->activeForms |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | } |
| 443 | 443 | $this->activeForms = array_filter( |
| 444 | 444 | $this->activeForms, |
| 445 | - function ($item) use ($key) { |
|
| 445 | + function($item) use ($key) { |
|
| 446 | 446 | return !in_array($item, $key); |
| 447 | 447 | } |
| 448 | 448 | ); |
@@ -649,10 +649,10 @@ discard block |
||
| 649 | 649 | $actualKey = $this->getActiveFormActual(); |
| 650 | 650 | if (isset($actualKey)) { |
| 651 | 651 | $forms = array_keys($this->forms); |
| 652 | - $formsFlip = array_flip($forms); |
|
| 652 | + $formsFlip = array_flip($forms); |
|
| 653 | 653 | $index = $formsFlip[$actualKey]; |
| 654 | 654 | if (0 < $index) { |
| 655 | - $key = $forms[$index-1]; |
|
| 655 | + $key = $forms[$index - 1]; |
|
| 656 | 656 | } |
| 657 | 657 | } |
| 658 | 658 | return $key; |
@@ -669,10 +669,10 @@ discard block |
||
| 669 | 669 | $actualKey = $this->getActiveFormActual(); |
| 670 | 670 | if (isset($actualKey)) { |
| 671 | 671 | $forms = array_keys($this->forms); |
| 672 | - $formsFlip = array_flip($forms); |
|
| 672 | + $formsFlip = array_flip($forms); |
|
| 673 | 673 | $index = $formsFlip[$actualKey]; |
| 674 | 674 | if ($index < count($forms) - 1) { |
| 675 | - $key = $forms[$index+1]; |
|
| 675 | + $key = $forms[$index + 1]; |
|
| 676 | 676 | } |
| 677 | 677 | } |
| 678 | 678 | return $key; |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | } |
| 692 | 692 | |
| 693 | 693 | //$formInstance = $this->formElementManager->get($form['type'], $options); |
| 694 | - $formName = (($name = $this->getName()) ? $name . '.' : '') . $form['name']; |
|
| 694 | + $formName = (($name = $this->getName()) ? $name . '.' : '') . $form['name']; |
|
| 695 | 695 | $action = '?form=' . $formName; |
| 696 | 696 | |
| 697 | 697 | return $action; |