@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | $response->getHeaders()->addHeaderline('Content-Type', $file->type) |
35 | - ->addHeaderline('Content-Length', $file->size); |
|
35 | + ->addHeaderline('Content-Length', $file->size); |
|
36 | 36 | $response->sendHeaders(); |
37 | 37 | |
38 | 38 | $resource = $file->getResource(); |
@@ -24,19 +24,19 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->add( |
27 | - array( |
|
28 | - 'type' => 'Core/Spinner-Submit', |
|
29 | - 'name' => 'calculate', |
|
30 | - 'options' => array( |
|
31 | - 'label' => /*@translate*/ 'Calculate price', |
|
32 | - ), |
|
33 | - 'attributes' => array( |
|
34 | - 'id' => 'calculate', |
|
35 | - 'type' => 'button', |
|
36 | - 'value' => 'calculate', |
|
37 | - 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | - ), |
|
39 | - ) |
|
27 | + array( |
|
28 | + 'type' => 'Core/Spinner-Submit', |
|
29 | + 'name' => 'calculate', |
|
30 | + 'options' => array( |
|
31 | + 'label' => /*@translate*/ 'Calculate price', |
|
32 | + ), |
|
33 | + 'attributes' => array( |
|
34 | + 'id' => 'calculate', |
|
35 | + 'type' => 'button', |
|
36 | + 'value' => 'calculate', |
|
37 | + 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | + ), |
|
39 | + ) |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | parent::init(); |
@@ -238,7 +238,7 @@ |
||
238 | 238 | /** |
239 | 239 | * Gets all comments for the application. |
240 | 240 | * |
241 | - * @return ArrayCollection; |
|
241 | + * @return Collection |
|
242 | 242 | |
243 | 243 | */ |
244 | 244 | public function getComments(); |
@@ -241,7 +241,6 @@ |
||
241 | 241 | * Gets all comments for the application. |
242 | 242 | * |
243 | 243 | * @return ArrayCollection; |
244 | - |
|
245 | 244 | */ |
246 | 245 | public function getComments(); |
247 | 246 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function init() |
35 | 35 | { |
36 | 36 | $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator()) |
37 | - ->setName('base'); |
|
37 | + ->setName('base'); |
|
38 | 38 | |
39 | 39 | $this->add( |
40 | 40 | array( |
@@ -39,7 +39,7 @@ |
||
39 | 39 | || array_key_exists('user', $config['acl']['roles']) |
40 | 40 | ? array(User::ROLE_USER) |
41 | 41 | : array('none') |
42 | - ); |
|
42 | + ); |
|
43 | 43 | |
44 | 44 | $valueOptions = array(); |
45 | 45 | foreach ($publicRoles as $role) { |
@@ -22,6 +22,9 @@ |
||
22 | 22 | */ |
23 | 23 | trait EntityTrait |
24 | 24 | { |
25 | + /** |
|
26 | + * @param string $property |
|
27 | + */ |
|
25 | 28 | public function notEmpty($property, array $args=[]) |
26 | 29 | { |
27 | 30 | $method = "get$property"; |
@@ -20,16 +20,16 @@ |
||
20 | 20 | */ |
21 | 21 | trait EntityTrait |
22 | 22 | { |
23 | - public function notEmpty($property, array $args=[]) |
|
23 | + public function notEmpty($property, array $args = []) |
|
24 | 24 | { |
25 | 25 | $method = "get$property"; |
26 | 26 | |
27 | 27 | if (!method_exists($this, $method)) { |
28 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'"); |
|
28 | + throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'"); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | $value = count($args) |
32 | - ? call_user_func_array([ $this, $method ], $args) |
|
32 | + ? call_user_func_array([$this, $method], $args) |
|
33 | 33 | : $this->$method(); |
34 | 34 | |
35 | 35 | if (null === $value) { // is_scalar does not consider 'null' to be scalar value. |
@@ -73,6 +73,9 @@ |
||
73 | 73 | |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $layout |
|
78 | + */ |
|
76 | 79 | public function renderElement($element, $layout, $parameter) |
77 | 80 | { |
78 | 81 | $parameterPartial = $parameter; |
@@ -83,8 +83,8 @@ |
||
83 | 83 | if ($element instanceof ViewPartialProviderInterface) { |
84 | 84 | $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial); |
85 | 85 | $content .= $this->getView()->partial( |
86 | - $element->getViewPartial(), |
|
87 | - $parameterPartial |
|
86 | + $element->getViewPartial(), |
|
87 | + $parameterPartial |
|
88 | 88 | ); |
89 | 89 | |
90 | 90 | } elseif ($element instanceof ViewHelperProviderInterface) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | if (isset($parameter['render_label']) && $parameter['render_label'] && ($label = $container->getLabel())) { |
67 | - $content .= '<div class="container-headline"><h3>' . $this->getView()->translate($label) . '</h3></div>'; |
|
67 | + $content .= '<div class="container-headline"><h3>'.$this->getView()->translate($label).'</h3></div>'; |
|
68 | 68 | } |
69 | 69 | foreach ($container as $element) { |
70 | 70 | $content .= $this->renderElement($element, $layout, $parameter); |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | } elseif ($element instanceof CoreSummaryForm) { |
100 | 100 | $content .= $this->getView()->summaryForm($element); |
101 | 101 | } elseif ($element instanceof Container) { |
102 | - $content.= $this->render($element, $layout, $parameter); |
|
102 | + $content .= $this->render($element, $layout, $parameter); |
|
103 | 103 | } else { |
104 | - $content.= $this->getView()->form($element, $layout, $parameter); |
|
104 | + $content .= $this->getView()->form($element, $layout, $parameter); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | return $content; |
@@ -79,7 +79,6 @@ |
||
79 | 79 | /** |
80 | 80 | * Sets the invoice address. |
81 | 81 | * |
82 | - * @param InvoiceAddressInterface $invoice |
|
83 | 82 | * |
84 | 83 | * @return self |
85 | 84 | */ |