@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @return string the assemled component rendered to HTML |
50 | 50 | */ |
51 | 51 | public function buildComponent() { |
52 | - if ( empty($this->getTagname()) ) { |
|
52 | + if (empty($this->getTagname())) { |
|
53 | 53 | $this->setTagname('div'); |
54 | 54 | // return ''; |
55 | 55 | } |
@@ -70,11 +70,11 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $content = (array($header, $body, $footer)); |
73 | - if ( is_array($body) && !isset($body["tagname"])) { |
|
73 | + if (is_array($body) && !isset($body["tagname"])) { |
|
74 | 74 | $content = array_merge(array($header), ($body), array($footer)); |
75 | 75 | } |
76 | 76 | |
77 | - $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array)$this->getAttributes(), $content); |
|
77 | + $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array) $this->getAttributes(), $content); |
|
78 | 78 | |
79 | 79 | return $component; |
80 | 80 |
@@ -39,38 +39,38 @@ |
||
39 | 39 | public function __invoke($formoptions = array(), $field = null) { |
40 | 40 | parent::__invoke(array()); |
41 | 41 | $form = null; |
42 | - if ( !is_array($formoptions) && ($formoptions instanceof \Zend\Form\Form) && (func_num_args() == 2) ) { |
|
42 | + if (!is_array($formoptions) && ($formoptions instanceof \Zend\Form\Form) && (func_num_args() == 2)) { |
|
43 | 43 | $form = $formoptions; |
44 | 44 | $field = func_get_arg(1); |
45 | - } else if ( isset($formoptions["form"]) && isset($formoptions["field"]) && ($formoptions["form"] instanceof \Zend\Form\Form) ) { |
|
45 | + } else if (isset($formoptions["form"]) && isset($formoptions["field"]) && ($formoptions["form"] instanceof \Zend\Form\Form)) { |
|
46 | 46 | $form = $formoptions["form"]; |
47 | 47 | $field = $formoptions["field"]; |
48 | 48 | } else |
49 | - if ( !($form instanceof \Zend\Form\Form) || empty($field) ) { |
|
49 | + if (!($form instanceof \Zend\Form\Form) || empty($field)) { |
|
50 | 50 | return ""; |
51 | 51 | } |
52 | 52 | $this->setForm($form); |
53 | 53 | |
54 | - if ( is_string($field) ) { |
|
54 | + if (is_string($field)) { |
|
55 | 55 | $field = $form->get($field); |
56 | 56 | if (!$field) { |
57 | 57 | return ""; |
58 | 58 | } |
59 | - } else if ( !($field instanceof \Zend\Form\Element) ) { |
|
59 | + } else if (!($field instanceof \Zend\Form\Element)) { |
|
60 | 60 | return ""; |
61 | 61 | } |
62 | - if ( !empty($this->getView()->formElementErrors($field)) ) { |
|
62 | + if (!empty($this->getView()->formElementErrors($field))) { |
|
63 | 63 | $this->addClass('has-error'); |
64 | 64 | } |
65 | - $this->setHeader( $this->getView()->formLabel($field) ); |
|
65 | + $this->setHeader($this->getView()->formLabel($field)); |
|
66 | 66 | /** @var \Zend\Form\View\HelperConfig $formPlugins */ |
67 | 67 | $formPlugins = $this->getView(); |
68 | - if ( $field->getAttribute('type') == 'select' ) { |
|
69 | - $this->setContent( $formPlugins->formSelect($field->setAttributes(array('class' => 'form-control'))) ); |
|
68 | + if ($field->getAttribute('type') == 'select') { |
|
69 | + $this->setContent($formPlugins->formSelect($field->setAttributes(array('class' => 'form-control')))); |
|
70 | 70 | } else { |
71 | - $this->setContent( $formPlugins->formInput($field->setAttributes(array('class' => 'form-control'))) ); |
|
71 | + $this->setContent($formPlugins->formInput($field->setAttributes(array('class' => 'form-control')))); |
|
72 | 72 | } |
73 | - $this->setFooter( $formPlugins->formElementErrors($field) ); |
|
73 | + $this->setFooter($formPlugins->formElementErrors($field)); |
|
74 | 74 | |
75 | 75 | $component = clone $this; |
76 | 76 | return $component; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @return string the assemled component rendered to HTML |
55 | 55 | */ |
56 | 56 | public function buildComponent() { |
57 | - if ( empty($this->getTagname()) ) { |
|
57 | + if (empty($this->getTagname())) { |
|
58 | 58 | $this->setTagname('div'); |
59 | 59 | // return ''; |
60 | 60 | } |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | $content = (array($header, $body, $footer)); |
78 | - if ( is_array($body) && !isset($body["tagname"])) { |
|
78 | + if (is_array($body) && !isset($body["tagname"])) { |
|
79 | 79 | $content = array_merge(array($header), ($body), array($footer)); |
80 | 80 | } |
81 | 81 | |
82 | - $contentElement = $this->_createElement($this->getTagname(), $this->getClassnamesContent(), (array)$this->getAttributes(), $content); |
|
82 | + $contentElement = $this->_createElement($this->getTagname(), $this->getClassnamesContent(), (array) $this->getAttributes(), $content); |
|
83 | 83 | $dialogElement = $this->_createElement($this->getTagname(), $this->getClassnamesDialog(), [], $contentElement); |
84 | 84 | $component = $this->_createElement($this->getTagname(), $this->getClassnames(), [], $dialogElement); |
85 | 85 | return $component; |
@@ -32,14 +32,14 @@ discard block |
||
32 | 32 | |
33 | 33 | protected $active = false; |
34 | 34 | |
35 | - protected $_tags = array('a','input','button'); |
|
35 | + protected $_tags = array('a', 'input', 'button'); |
|
36 | 36 | |
37 | - protected $_sizes = array('xs','sm','lg'); |
|
37 | + protected $_sizes = array('xs', 'sm', 'lg'); |
|
38 | 38 | protected $_foundations_sizes = array( |
39 | 39 | 'xs' => 'tiny', 'xs' => 'small', 'lg' => 'large', |
40 | 40 | ); |
41 | 41 | |
42 | - protected $_types = array('default','primary','success','info','warning','alert','danger','link'); |
|
42 | + protected $_types = array('default', 'primary', 'success', 'info', 'warning', 'alert', 'danger', 'link'); |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * View helper entry point: |
@@ -57,31 +57,31 @@ discard block |
||
57 | 57 | $component->setHeader('')->setFooter(''); |
58 | 58 | |
59 | 59 | // tag options |
60 | - if ( isset($options["tagname"]) && in_array(strtolower($options["tagname"]), $component->getTags()) ) { |
|
60 | + if (isset($options["tagname"]) && in_array(strtolower($options["tagname"]), $component->getTags())) { |
|
61 | 61 | $component->setTagname(strtolower($options["tagname"])); |
62 | 62 | } else { |
63 | 63 | $component->setTagname('a'); |
64 | 64 | } |
65 | - if ( isset($options["attributes"]) && is_array($options["attributes"]) ) { |
|
65 | + if (isset($options["attributes"]) && is_array($options["attributes"])) { |
|
66 | 66 | $component->setAttributes($options["attributes"]); |
67 | 67 | } |
68 | 68 | |
69 | 69 | // bootstrap options |
70 | - if ( isset($options["size"]) && in_array(strtolower($options["size"]), $component->getSizes()) ) { |
|
70 | + if (isset($options["size"]) && in_array(strtolower($options["size"]), $component->getSizes())) { |
|
71 | 71 | $component->addClass('btn-'.strtolower($options["size"]).' '.strtolower($this->_foundations_sizes["size"])); |
72 | 72 | } |
73 | - if ( isset($options["type"]) && in_array(strtolower($options["type"]), $component->getTypes()) ) { |
|
73 | + if (isset($options["type"]) && in_array(strtolower($options["type"]), $component->getTypes())) { |
|
74 | 74 | $component->addClass('btn-'.strtolower($options["type"]).' '.strtolower($options["type"])); |
75 | 75 | } else { |
76 | 76 | $component->addClass('btn-default'); |
77 | 77 | } |
78 | - if ( isset($options["drop"]) ) { |
|
78 | + if (isset($options["drop"])) { |
|
79 | 79 | $component->setDrop($options["drop"]); |
80 | 80 | } |
81 | - if ( isset($options["block"]) ) { |
|
81 | + if (isset($options["block"])) { |
|
82 | 82 | $component->setBlock($options["block"]); |
83 | 83 | } |
84 | - if ( isset($options["active"]) ) { |
|
84 | + if (isset($options["active"])) { |
|
85 | 85 | $component->setActive($options["active"]); |
86 | 86 | } |
87 | 87 | |
@@ -92,14 +92,14 @@ discard block |
||
92 | 92 | $component->setAttributes(array_merge_recursive($component->getAttributes(), array( |
93 | 93 | 'role' => 'button' |
94 | 94 | ))); |
95 | - if ( isset($options["disabled"]) ) { |
|
95 | + if (isset($options["disabled"])) { |
|
96 | 96 | $component->addClass('disabled'); |
97 | 97 | } |
98 | 98 | } else { |
99 | 99 | $component->setAttributes(array_merge_recursive($component->getAttributes(), array( |
100 | 100 | 'type' => 'button' |
101 | 101 | ))); |
102 | - if ( isset($options["disabled"]) ) { |
|
102 | + if (isset($options["disabled"])) { |
|
103 | 103 | $component->setAttributes(array_merge_recursive($component->getAttributes(), array( |
104 | 104 | 'disabled' => 'disabled' |
105 | 105 | ))); |
@@ -107,9 +107,9 @@ discard block |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | // tag content |
110 | - if ( isset($options["label"]) && !empty($options["label"]) ) { |
|
110 | + if (isset($options["label"]) && !empty($options["label"])) { |
|
111 | 111 | $component->setContent($options["label"]); |
112 | - } else if ( isset($options["content"]) && !empty($options["content"]) ) { |
|
112 | + } else if (isset($options["content"]) && !empty($options["content"])) { |
|
113 | 113 | $component->setContent($options["content"]); |
114 | 114 | } |
115 | 115 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * @param string $drop |
185 | 185 | */ |
186 | 186 | public function setDrop($drop) { |
187 | - if ( in_array(strtolower($drop), array('up','down'))) { |
|
187 | + if (in_array(strtolower($drop), array('up', 'down'))) { |
|
188 | 188 | $this->drop = $drop; |
189 | 189 | } |
190 | 190 | return $this; |
@@ -85,8 +85,12 @@ |
||
85 | 85 | $component->setActive($options["active"]); |
86 | 86 | } |
87 | 87 | |
88 | - if ($component->getBlock()) $component->addClass('btn-block expanded'); |
|
89 | - if ($component->getActive()) $component->addClass('active'); |
|
88 | + if ($component->getBlock()) { |
|
89 | + $component->addClass('btn-block expanded'); |
|
90 | + } |
|
91 | + if ($component->getActive()) { |
|
92 | + $component->addClass('active'); |
|
93 | + } |
|
90 | 94 | |
91 | 95 | if ($component->getTagname() == 'a') { |
92 | 96 | $component->setAttributes(array_merge_recursive($component->getAttributes(), array( |
@@ -479,12 +479,12 @@ |
||
479 | 479 | ''.Locale::getDisplayLanguage(null). // ' - '.Locale::getDefault().' - '.Locale::getPrimaryLanguage(null).''. |
480 | 480 | '<span class="caret"></span>'. |
481 | 481 | '</a>'. |
482 | - sprintf( |
|
482 | + sprintf( |
|
483 | 483 | '<ul%s>%s</ul>', |
484 | 484 | ($subulclass) ? sprintf(' class="%s"', $subulclass) : '', |
485 | 485 | $list |
486 | - ). |
|
487 | - '</li>'. |
|
486 | + ). |
|
487 | + '</li>'. |
|
488 | 488 | '</ul>' |
489 | 489 | ; |
490 | 490 |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | |
424 | 424 | } catch (\Exception $e) { |
425 | 425 | |
426 | - $msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString(); |
|
426 | + $msg = get_class($e).': '.$e->getMessage()."\n".$e->getTraceAsString(); |
|
427 | 427 | trigger_error($msg, E_USER_ERROR); |
428 | 428 | return ''; |
429 | 429 | |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | |
449 | 449 | $list = ''; |
450 | 450 | $current = Locale::getDefault(); |
451 | - foreach($detector->getSupported() as $locale) { |
|
451 | + foreach ($detector->getSupported() as $locale) { |
|
452 | 452 | if ($this->omitCurrent() && $current === $locale) { |
453 | 453 | continue; |
454 | 454 | } |
@@ -463,18 +463,18 @@ discard block |
||
463 | 463 | $displayName = $this->getLocaleProperty('displayName', $locale, $labelLocale); |
464 | 464 | |
465 | 465 | $item = sprintf( |
466 | - '<li><a href="%s" title="%s"%s %s>%s</a></li>' . "\n", |
|
466 | + '<li><a href="%s" title="%s"%s %s>%s</a></li>'."\n", |
|
467 | 467 | $url, |
468 | 468 | $displayName, |
469 | 469 | ($current === $locale) ? ' class="active"' : '', |
470 | 470 | 'data-test="cta-lang-'.$this->slugify($label).'"', |
471 | - (($iconprefixclass) ? '<span class="' . $iconprefixclass . $primary . '"></span> ' : '') . $label |
|
471 | + (($iconprefixclass) ? '<span class="'.$iconprefixclass.$primary.'"></span> ' : '').$label |
|
472 | 472 | ); |
473 | 473 | |
474 | 474 | $list .= $item; |
475 | 475 | } |
476 | 476 | $attributes = $this->getAttributes(); |
477 | - $html = |
|
477 | + $html = |
|
478 | 478 | '<ul'.(($class) ? sprintf(' class="%s"', $class) : '').' '.($this->htmlAttribs($attributes)).'>'. |
479 | 479 | '<li'.(($liclass) ? sprintf(' class="%s"', $liclass) : '').'>'. |
480 | 480 | '<a href="" '. |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | 'data-test="cta-lang-selector cta-lang-selected-'.$this->slugify(Locale::getDisplayLanguage(null)).'"'. |
487 | 487 | '>'. |
488 | 488 | '<span class="'.(($iconprefixclass) ? $iconprefixclass : '').Locale::getPrimaryLanguage(null).'"></span> '. |
489 | - ''.Locale::getDisplayLanguage(null). // ' - '.Locale::getDefault().' - '.Locale::getPrimaryLanguage(null).''. |
|
489 | + ''.Locale::getDisplayLanguage(null).// ' - '.Locale::getDefault().' - '.Locale::getPrimaryLanguage(null).''. |
|
490 | 490 | '<span class="caret"></span>'. |
491 | 491 | '</a>'. |
492 | 492 | sprintf( |
@@ -205,12 +205,12 @@ |
||
205 | 205 | return false; |
206 | 206 | } |
207 | 207 | |
208 | - $helper = $plugins->get($proxy); |
|
208 | + $helper = $plugins->get($proxy); |
|
209 | 209 | |
210 | 210 | if ($helper && ($helper instanceof \Zend\View\Helper\Navigation\Menu)) { |
211 | 211 | |
212 | 212 | $container = $this->getContainer(); |
213 | - $hash = spl_object_hash($container) . spl_object_hash($helper); |
|
213 | + $hash = spl_object_hash($container).spl_object_hash($helper); |
|
214 | 214 | if (!isset($this->injected[$hash])) { |
215 | 215 | $helper->setContainer(); |
216 | 216 | $this->inject($helper); |
@@ -235,29 +235,29 @@ |
||
235 | 235 | */ |
236 | 236 | protected function inject(\Zend\View\Helper\AbstractHelper $helper) |
237 | 237 | { |
238 | - if ( |
|
239 | - ($helper instanceof \UIComponents\View\Helper\AbstractHelper) || |
|
240 | - ($helper instanceof \UIComponents\View\Helper\Navigation\Menu) |
|
241 | - ) { |
|
242 | - if ($this->getInjectContainer() && !$helper->hasContainer()) { |
|
243 | - $helper->setContainer($this->getContainer()); |
|
244 | - } |
|
245 | - |
|
246 | - if ($this->getInjectAcl()) { |
|
247 | - if (!$helper->hasAcl()) { |
|
248 | - $helper->setAcl($this->getAcl()); |
|
249 | - } |
|
250 | - if (!$helper->hasRole()) { |
|
251 | - $helper->setRole($this->getRole()); |
|
252 | - } |
|
253 | - } |
|
254 | - if ($this->getInjectTranslator() && !$helper->hasTranslator()) { |
|
255 | - $helper->setTranslator( |
|
256 | - $this->getTranslator(), |
|
257 | - $this->getTranslatorTextDomain() |
|
258 | - ); |
|
259 | - } |
|
260 | - } |
|
238 | + if ( |
|
239 | + ($helper instanceof \UIComponents\View\Helper\AbstractHelper) || |
|
240 | + ($helper instanceof \UIComponents\View\Helper\Navigation\Menu) |
|
241 | + ) { |
|
242 | + if ($this->getInjectContainer() && !$helper->hasContainer()) { |
|
243 | + $helper->setContainer($this->getContainer()); |
|
244 | + } |
|
245 | + |
|
246 | + if ($this->getInjectAcl()) { |
|
247 | + if (!$helper->hasAcl()) { |
|
248 | + $helper->setAcl($this->getAcl()); |
|
249 | + } |
|
250 | + if (!$helper->hasRole()) { |
|
251 | + $helper->setRole($this->getRole()); |
|
252 | + } |
|
253 | + } |
|
254 | + if ($this->getInjectTranslator() && !$helper->hasTranslator()) { |
|
255 | + $helper->setTranslator( |
|
256 | + $this->getTranslator(), |
|
257 | + $this->getTranslatorTextDomain() |
|
258 | + ); |
|
259 | + } |
|
260 | + } |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | /** |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | |
104 | 104 | |
105 | - /** |
|
105 | + /** |
|
106 | 106 | * Magic overload: Proxy calls to the navigation container |
107 | 107 | * |
108 | 108 | * @param string $method method name in container |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | } catch (\Exception $e) { |
153 | 153 | |
154 | - $msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString(); |
|
154 | + $msg = get_class($e).': '.$e->getMessage()."\n".$e->getTraceAsString(); |
|
155 | 155 | trigger_error($msg, E_USER_ERROR); |
156 | 156 | return ''; |
157 | 157 | |
@@ -194,9 +194,9 @@ discard block |
||
194 | 194 | |
195 | 195 | /** @var \Zend\View\Helper\EscapeHtml $escaper */ |
196 | 196 | $escaper = $this->view->plugin('escapeHtml'); |
197 | - $label = $escaper($label); |
|
197 | + $label = $escaper($label); |
|
198 | 198 | |
199 | - return '<a' . $this->htmlAttribs($attribs) . '>' . $label . '</a>'; |
|
199 | + return '<a'.$this->htmlAttribs($attribs).'>'.$label.'</a>'; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $prefix = get_class($this); |
213 | 213 | $prefix = strtolower(trim(substr($prefix, strrpos($prefix, '\\')), '\\')); |
214 | 214 | |
215 | - return $prefix . '-' . $value; |
|
215 | + return $prefix.'-'.$value; |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | // |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | */ |
225 | 225 | public function buildComponent() { |
226 | 226 | $html = ' '.__CLASS__.' '; |
227 | - if ( empty($this->getTagname()) ) { |
|
227 | + if (empty($this->getTagname())) { |
|
228 | 228 | return ''; |
229 | 229 | } |
230 | 230 | |
@@ -235,11 +235,11 @@ discard block |
||
235 | 235 | $body = $this->getContent(); |
236 | 236 | |
237 | 237 | $content = (array($header, $body, $footer)); |
238 | - if ( is_array($body) && !isset($body["tagname"])) { |
|
238 | + if (is_array($body) && !isset($body["tagname"])) { |
|
239 | 239 | $content = array_merge(array($header), ($body), array($footer)); |
240 | 240 | } |
241 | 241 | |
242 | - $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array)$this->getAttributes(), $content); |
|
242 | + $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array) $this->getAttributes(), $content); |
|
243 | 243 | |
244 | 244 | return $component; |
245 | 245 | |
@@ -259,29 +259,29 @@ discard block |
||
259 | 259 | $html = ''; |
260 | 260 | $html .= '<'.$tagname.''.((isset($classnames) && !empty($classnames)) ? ' class="'.$classnames.'"' : '').' '.$this->htmlAttribs($attributes).'>'; |
261 | 261 | if (!empty($content)) { |
262 | - if ( $content instanceof AbstractHelper ) { |
|
262 | + if ($content instanceof AbstractHelper) { |
|
263 | 263 | $html .= $content->render(); |
264 | - } else if ( is_array($content) && isset($content['tagname']) ) { |
|
264 | + } else if (is_array($content) && isset($content['tagname'])) { |
|
265 | 265 | $html .= $this->_createElement( |
266 | 266 | $content['tagname'], |
267 | 267 | (isset($content['classnames']) && !empty($content['classnames']) ? $content['classnames'] : (isset($content['class']) && !empty($content['class']) ? $content['class'] : '')), |
268 | 268 | (isset($content['attributes']) && !empty($content['attributes']) ? $content['attributes'] : (isset($content['attr']) && !empty($content['attr']) ? $content['attr'] : '')), |
269 | 269 | (isset($content['content']) && !empty($content['content']) ? $content['content'] : '') |
270 | 270 | ); |
271 | - } else if ( is_array($content) ) { |
|
271 | + } else if (is_array($content)) { |
|
272 | 272 | foreach ($content as $key => $item) { |
273 | - if ( $item instanceof AbstractHelper ) { |
|
273 | + if ($item instanceof AbstractHelper) { |
|
274 | 274 | $html .= $item->render(); |
275 | - } else if ( is_array($item) && isset($item['tagname']) ) { |
|
275 | + } else if (is_array($item) && isset($item['tagname'])) { |
|
276 | 276 | $html .= $this->_createElement( |
277 | 277 | $item['tagname'], |
278 | 278 | (isset($item['classnames']) && !empty($item['classnames']) ? $item['classnames'] : (isset($item['class']) && !empty($item['class']) ? $item['class'] : '')), |
279 | - (array)(isset($item['attributes']) && !empty($item['attributes']) ? $item['attributes'] : (isset($item['attr']) && !empty($item['attr']) ? $item['attr'] : '')), |
|
279 | + (array) (isset($item['attributes']) && !empty($item['attributes']) ? $item['attributes'] : (isset($item['attr']) && !empty($item['attr']) ? $item['attr'] : '')), |
|
280 | 280 | (isset($item['content']) && !empty($item['content']) ? $item['content'] : '') |
281 | 281 | ); |
282 | - } else if ( is_array($item) ) { |
|
282 | + } else if (is_array($item)) { |
|
283 | 283 | foreach ($content as $key => $value) { |
284 | - $html .= (string)$value; |
|
284 | + $html .= (string) $value; |
|
285 | 285 | } |
286 | 286 | } else { |
287 | 287 | $html .= $item; |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * @param string $tagname |
317 | 317 | */ |
318 | 318 | public function setTagname($tagname) { |
319 | - if ( null !== $tagname ) { |
|
319 | + if (null !== $tagname) { |
|
320 | 320 | $this->tagname = $tagname; |
321 | 321 | } |
322 | 322 | return $this; |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * @param mixed $header |
338 | 338 | */ |
339 | 339 | public function setHeader($header) { |
340 | - if ( null !== $header ) { |
|
340 | + if (null !== $header) { |
|
341 | 341 | $this->header = $header; |
342 | 342 | } |
343 | 343 | return $this; |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | * @param mixed $footer |
359 | 359 | */ |
360 | 360 | public function setFooter($footer = null) { |
361 | - if ( null !== $footer ) { |
|
361 | + if (null !== $footer) { |
|
362 | 362 | $this->footer = $footer; |
363 | 363 | } |
364 | 364 | return $this; |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | * @return the $_DOMDoc |
389 | 389 | */ |
390 | 390 | public function getDOMDoc() { |
391 | - if ( ! $this->_DOMDoc instanceof \DOMDocument ) { |
|
391 | + if (!$this->_DOMDoc instanceof \DOMDocument) { |
|
392 | 392 | $this->_DOMDoc = new \DOMDocument(); |
393 | 393 | } |
394 | 394 | return $this->_DOMDoc; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function render($container = null) |
43 | 43 | { |
44 | - $config = new \Zend\Config\Config( $this->getServiceLocator()->getServiceLocator()->get('Config') ); |
|
44 | + $config = new \Zend\Config\Config($this->getServiceLocator()->getServiceLocator()->get('Config')); |
|
45 | 45 | return $config->get('app')->get('logo'); |
46 | 46 | } |
47 | 47 |
@@ -40,8 +40,8 @@ |
||
40 | 40 | 'appfavicon' => 'UIComponents\View\Helper\Utilities\AppFavicon', |
41 | 41 | 'applogo' => 'UIComponents\View\Helper\Utilities\AppLogo', |
42 | 42 | |
43 | - 'framework' => 'UIComponents\View\Helper\Utilities\Framework', |
|
44 | - 'template' => 'UIComponents\View\Helper\Utilities\Framework', |
|
43 | + 'framework' => 'UIComponents\View\Helper\Utilities\Framework', |
|
44 | + 'template' => 'UIComponents\View\Helper\Utilities\Framework', |
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | } |