Test Failed
Push — master ( b381e6...5958d3 )
by Björn
02:48 queued 12s
created
module/UIComponents/src/UIComponents/View/Helper/AbstractHelper.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/AppLogo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
UIComponents/src/UIComponents/View/Helper/Utilities/PluginManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/Framework.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -72,23 +72,23 @@
 block discarded – undo
72 72
         return $collection;
73 73
     }
74 74
     
75
-	/**
76
-	 * retrieve UI framework id/name
77
-	 * @return string the $framework
78
-	 */
79
-	public function getFramework() {
80
-		return $this->framework;
81
-	}
75
+    /**
76
+     * retrieve UI framework id/name
77
+     * @return string the $framework
78
+     */
79
+    public function getFramework() {
80
+        return $this->framework;
81
+    }
82 82
 
83
-	/**
84
-	 * set UI framework id/name
85
-	 * @param string $framework
86
-	 * @return \UIComponents\View\Helper\Utilities\Framework
87
-	 */
88
-	public function setFramework($framework) {
89
-		$this->framework = $framework;
90
-		return $this;
91
-	}
83
+    /**
84
+     * set UI framework id/name
85
+     * @param string $framework
86
+     * @return \UIComponents\View\Helper\Utilities\Framework
87
+     */
88
+    public function setFramework($framework) {
89
+        $this->framework = $framework;
90
+        return $this;
91
+    }
92 92
 
93 93
     
94 94
     
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
      * @param  string $framework [optional] framework classnames collection to relate to
39 39
      * @return \Zend\Config\Config
40 40
      */
41
-    public function __invoke( $framework = null )
41
+    public function __invoke($framework = null)
42 42
     {
43 43
         if ($framework !== null) {
44
-            $classname = $this->NS . "\\" . $framework;
44
+            $classname = $this->NS."\\".$framework;
45 45
             if (!class_exists($classname)) {
46 46
                 throw new \Zend\View\Exception\InvalidArgumentException(sprintf( 
47 47
                     $this->translate("Invalid framework collection '%s' specified"),
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function getCollection()
63 63
     {
64
-        $classname = $this->NS . "\\" . $this->framework;
64
+        $classname = $this->NS."\\".$this->framework;
65 65
         if (!class_exists($classname)) {
66 66
             throw new \Zend\View\Exception\InvalidArgumentException(sprintf( 
67 67
                 $this->translate("Invalid framework collection '%s' specified"),
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/AppTitle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function render($short = null)
44 44
     {
45
-        $config = new \Zend\Config\Config( $this->getServiceLocator()->getServiceLocator()->get('Config') );
45
+        $config = new \Zend\Config\Config($this->getServiceLocator()->getServiceLocator()->get('Config'));
46 46
         if ($short === true) {
47 47
             return $config->get('app')->get('short_title');
48 48
         }
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/AppFavicon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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('favicon');
46 46
     }
47 47
     
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function render($container = null)
44 44
     {
45
-        $config = new \Zend\Config\Config( $this->getServiceLocator()->getServiceLocator()->get('Config') );
45
+        $config = new \Zend\Config\Config($this->getServiceLocator()->getServiceLocator()->get('Config'));
46 46
         return $config;
47 47
     }
48 48
     
Please login to merge, or discard this patch.
UIComponents/src/UIComponents/Framework/ClassnameCollectionAbstract.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
  */
22 22
 abstract class ClassnameCollectionAbstract {
23 23
 	
24
-	/** @var  string  $framework  framework names, these classnames are related to */
25
-	public $framework = "Bootstrap";
24
+    /** @var  string  $framework  framework names, these classnames are related to */
25
+    public $framework = "Bootstrap";
26 26
 	
27
-	/** @var  string  $version  framework version, these classnames are related to */
28
-	public $version = "3.3.0";
27
+    /** @var  string  $version  framework version, these classnames are related to */
28
+    public $version = "3.3.0";
29 29
 	
30
-	/** @var  array  $size  generic sizes */
31
-	public $size = array(
30
+    /** @var  array  $size  generic sizes */
31
+    public $size = array(
32 32
         "xs"    => "xs",
33 33
         "s"     => "s",
34 34
         "m"     => "m",
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
         "xl"    => "xl",
37 37
     );
38 38
     
39
-	/** @var  array  $column  generic column classname */
39
+    /** @var  array  $column  generic column classname */
40 40
     public $column = "columns";
41
-	/** @var  array  $columnsize  column sizes classnames*/
41
+    /** @var  array  $columnsize  column sizes classnames*/
42 42
     public $columnsize = array(
43 43
         "xs"    => "col-xs-",
44 44
         "s"     => "col-s-",
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         "xl"    => "col-xl-",
48 48
     );
49 49
     
50
-	/** @var  array  $status  status related classnames */
50
+    /** @var  array  $status  status related classnames */
51 51
     public $status = array(
52 52
         "default"    => "default",
53 53
         "info"       => "info",
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         "error"      => "error",
58 58
     );
59 59
     
60
-	/** @var  array  $panel  panel related classnames */
60
+    /** @var  array  $panel  panel related classnames */
61 61
     public $panel = array(
62 62
         "prefix"     => "panel-",
63 63
         "wrapper"    => "panel",
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         "footer"     => "panel-footer",
67 67
     );
68 68
     
69
-	/** @var  array  $control  control related classnames */
69
+    /** @var  array  $control  control related classnames */
70 70
     public $control = array(
71 71
         "button" => array(
72 72
             "prefix"    => "btn-",
@@ -77,18 +77,18 @@  discard block
 block discarded – undo
77 77
         ),
78 78
     );
79 79
     
80
-	/** @var  array  $form  form generation related classnames */
80
+    /** @var  array  $form  form generation related classnames */
81 81
     public $form = array(
82 82
         "formgroup" => array(
83 83
             "wrapper"    => "form-group",
84 84
         ),
85 85
     );
86 86
     
87
-	/** @var  array  $table  table related classnames */
87
+    /** @var  array  $table  table related classnames */
88 88
     public $table = array(
89 89
     );
90 90
     
91
-	/** @var  array  $widget  widgets' classnames */
91
+    /** @var  array  $widget  widgets' classnames */
92 92
     public $widget = array(
93 93
         "navigation" => array(
94 94
             "wrapper" => "navbar navbar-inverse",
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
         ),
114 114
     );
115 115
     
116
-   	/**
117
-	 * create classname collection object
118
-	 * @see \Zend\Config\Config
119
-	 */
120
-	public function __contruct() {
121
-	    return new \Zend\Config\Config( get_object_vars($this) );
122
-	}
116
+        /**
117
+         * create classname collection object
118
+         * @see \Zend\Config\Config
119
+         */
120
+    public function __contruct() {
121
+        return new \Zend\Config\Config( get_object_vars($this) );
122
+    }
123 123
 		
124 124
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 	 * @see \Zend\Config\Config
119 119
 	 */
120 120
 	public function __contruct() {
121
-	    return new \Zend\Config\Config( get_object_vars($this) );
121
+	    return new \Zend\Config\Config(get_object_vars($this));
122 122
 	}
123 123
 		
124 124
 }
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/Framework/Bootstrap3.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class Bootstrap3 extends ClassnameCollectionAbstract {
23 23
 	
24
-	/** @var  string  $framework  framework names, these classnames are related to */
25
-	public $framework = "Bootstrap";
24
+    /** @var  string  $framework  framework names, these classnames are related to */
25
+    public $framework = "Bootstrap";
26 26
 	
27
-	/** @var  string  $version  framework version, these classnames are related to */
28
-	public $version = "3.3.0";
27
+    /** @var  string  $version  framework version, these classnames are related to */
28
+    public $version = "3.3.0";
29 29
 	
30
-	/** @var  array  $size  generic sizes */
30
+    /** @var  array  $size  generic sizes */
31 31
     public $size = array(
32 32
         "xs"    => "xs",
33 33
         "s"     => "s",
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
         "xl"    => "xl",
37 37
     );
38 38
     
39
-	/** @var  array  $column  generic column classname */
39
+    /** @var  array  $column  generic column classname */
40 40
     public $column = "columns";
41
-	/** @var  array  $columnsize  column sizes classnames*/
41
+    /** @var  array  $columnsize  column sizes classnames*/
42 42
     public $columnsize = array(
43 43
         "xs"    => "col-xs-",
44 44
         "s"     => "col-s-",
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         "xl"    => "col-xl-",
48 48
     );
49 49
     
50
-	/** @var  array  $status  status related classnames */
50
+    /** @var  array  $status  status related classnames */
51 51
     public $status = array(
52 52
         "default"    => "default",
53 53
         "info"       => "info",
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         "error"      => "error",
58 58
     );
59 59
     
60
-	/** @var  array  $panel  panel related classnames */
60
+    /** @var  array  $panel  panel related classnames */
61 61
     public $panel = array(
62 62
         "prefix"     => "panel-",
63 63
         "wrapper"    => "panel",
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         "footer"     => "panel-footer",
67 67
     );
68 68
     
69
-	/** @var  array  $control  control related classnames */
69
+    /** @var  array  $control  control related classnames */
70 70
     public $control = array(
71 71
         "button" => array(
72 72
             "prefix"    => "btn-",
@@ -77,18 +77,18 @@  discard block
 block discarded – undo
77 77
         ),
78 78
     );
79 79
     
80
-	/** @var  array  $form  form generation related classnames */
80
+    /** @var  array  $form  form generation related classnames */
81 81
     public $form = array(
82 82
         "formgroup" => array(
83 83
             "wrapper"    => "form-group",
84 84
         ),
85 85
     );
86 86
     
87
-	/** @var  array  $table  table related classnames */
87
+    /** @var  array  $table  table related classnames */
88 88
     public $table = array(
89 89
     );
90 90
     
91
-	/** @var  array  $widget  widgets' classnames */
91
+    /** @var  array  $widget  widgets' classnames */
92 92
     public $widget = array(
93 93
         "navigation" => array(
94 94
             "wrapper" => "navbar navbar-inverse",
Please login to merge, or discard this patch.