Test Failed
Push — master ( 584abf...5520e1 )
by Björn
27:03
created
module/Application/src/Application/Controller/BaseActionController.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
  */
35 35
 class BaseActionController extends AbstractActionController implements Dispatchable
36 36
 {
37
-	//use ServiceLocatorAwareTrait;
38
-	use ControllerTranslatorTrait;
39
-	use ControllerActiontitlesTrait;
40
-	use ControllerToolbarTrait;
37
+    //use ServiceLocatorAwareTrait;
38
+    use ControllerTranslatorTrait;
39
+    use ControllerActiontitlesTrait;
40
+    use ControllerToolbarTrait;
41 41
     
42 42
     //protected $serviceLocator;
43 43
     
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function __construct( ServiceLocatorInterface $serviceLocator )
50 50
     {
51
-    	if ( $serviceLocator ) {
52
-    		$this->setServiceLocator($serviceLocator);
53
-    	}
51
+        if ( $serviceLocator ) {
52
+            $this->setServiceLocator($serviceLocator);
53
+        }
54 54
     }
55 55
     
56 56
     /**
@@ -147,17 +147,17 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function isXHR()
149 149
     {
150
-    	/**
151
-    	 * @var \Zend\Http\PhpEnvironment\Request|\Zend\Http\Request $request
152
-    	 */
153
-    	$request = $this->getRequest();
154
-    	if ( 
155
-    		($request instanceof \Zend\Http\PhpEnvironment\Request) ||
156
-    		($request instanceof \Zend\Http\Request) 
157
-    	) {
158
-    		return ( $request->isXmlHttpRequest() );
159
-    	}
160
-    	return (false);
150
+        /**
151
+         * @var \Zend\Http\PhpEnvironment\Request|\Zend\Http\Request $request
152
+         */
153
+        $request = $this->getRequest();
154
+        if ( 
155
+            ($request instanceof \Zend\Http\PhpEnvironment\Request) ||
156
+            ($request instanceof \Zend\Http\Request) 
157
+        ) {
158
+            return ( $request->isXmlHttpRequest() );
159
+        }
160
+        return (false);
161 161
     }
162 162
     
163 163
     /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * basic constructor injecting global service manager/locator
47 47
      * @return self
48 48
      */
49
-    public function __construct( ServiceLocatorInterface $serviceLocator )
49
+    public function __construct(ServiceLocatorInterface $serviceLocator)
50 50
     {
51
-    	if ( $serviceLocator ) {
51
+    	if ($serviceLocator) {
52 52
     		$this->setServiceLocator($serviceLocator);
53 53
     	}
54 54
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
 
136 136
         $oAuth = $this->getServiceLocator()->get('zfcuser_auth_service');
137
-        if ($oAuth->hasIdentity() ) {
137
+        if ($oAuth->hasIdentity()) {
138 138
             return $oAuth->getIdentity();
139 139
         }
140 140
         return null;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     		($request instanceof \Zend\Http\PhpEnvironment\Request) ||
156 156
     		($request instanceof \Zend\Http\Request) 
157 157
     	) {
158
-    		return ( $request->isXmlHttpRequest() );
158
+    		return ($request->isXmlHttpRequest());
159 159
     	}
160 160
     	return (false);
161 161
     }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @param array $vars [optional] additional variables
180 180
      * @return array
181 181
      */
182
-    public function getTemplateVars( $vars = array() ) 
182
+    public function getTemplateVars($vars = array()) 
183 183
     {
184 184
         $result = (array_merge( 
185 185
             $this->params()->fromRoute(), 
Please login to merge, or discard this patch.