@@ -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; |
@@ -84,7 +84,7 @@ |
||
84 | 84 | { |
85 | 85 | /* @var $serviceLocator \Zend\Form\FormElementManager */ |
86 | 86 | $service = $serviceLocator->getServiceLocator(); |
87 | - $options=null; |
|
87 | + $options = null; |
|
88 | 88 | if ($this->options) { |
89 | 89 | $options = $service->get($this->options); |
90 | 90 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $properties = $refl->getProperties(); |
50 | 50 | |
51 | 51 | foreach ($properties as $property) { |
52 | - $name = $property->getName(); |
|
52 | + $name = $property->getName(); |
|
53 | 53 | if ('_' == $name{0}) { |
54 | 54 | continue; |
55 | 55 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'id', |
99 | 99 | preg_replace( |
100 | 100 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
101 | - array('-' , '-' , '' ), |
|
101 | + array('-', '-', ''), |
|
102 | 102 | $formId |
103 | 103 | ) |
104 | 104 | ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if (!$element->hasAttribute('id')) { |
119 | 119 | $elementId = preg_replace( |
120 | 120 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
121 | - array('-' , '-', ''), |
|
121 | + array('-', '-', ''), |
|
122 | 122 | $form->getName() . '-' . $element->getName() |
123 | 123 | ); |
124 | 124 | $element->setAttribute('id', $elementId); |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | } else { |
149 | 149 | $formContent .= $renderer->formCollection($element, true, $layout); |
150 | 150 | } elseif (false !== $element->getOption('use_formrow_helper')) { |
151 | - $formContent.= $renderer->formRow($element, null, null, $layout); |
|
151 | + $formContent .= $renderer->formRow($element, null, null, $layout); |
|
152 | 152 | } else { |
153 | - $formContent.= $renderer->formElement($element); |
|
153 | + $formContent .= $renderer->formElement($element); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | if (!$elementId) { |
70 | 70 | $elementId = preg_replace( |
71 | 71 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
72 | - array('-' , '-' , '' ), |
|
72 | + array('-', '-', ''), |
|
73 | 73 | $element->getName() |
74 | 74 | ); |
75 | 75 | $element->setAttribute('id', $elementId); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if (!$elementOrFieldsetId) { |
100 | 100 | $elementOrFieldsetId = preg_replace( |
101 | 101 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
102 | - array('-' , '-' , '' ), |
|
102 | + array('-', '-', ''), |
|
103 | 103 | $elementOrFieldset->getName() |
104 | 104 | ); |
105 | 105 | $elementOrFieldset->setAttribute('id', $elementOrFieldsetId); |
@@ -83,9 +83,9 @@ |
||
83 | 83 | } elseif ($element instanceof SummaryForm) { |
84 | 84 | $content .= $this->getView()->summaryForm($element); |
85 | 85 | } elseif ($element instanceof Container) { |
86 | - $content.= $this->render($element, $layout, $parameter); |
|
86 | + $content .= $this->render($element, $layout, $parameter); |
|
87 | 87 | } else { |
88 | - $content.= $this->getView()->form($element, $layout, $parameter); |
|
88 | + $content .= $this->getView()->form($element, $layout, $parameter); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 |