Passed
Push — master ( a26db6...b381e6 )
by Björn
04:01 queued 11s
created
module/Admin/src/Admin/Controller/IndexController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * redirect to acl section
25
-     * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel
25
+     * @return \Zend\Http\Response
26 26
      */
27 27
 	public function indexAction()
28 28
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * redirect to acl section
25 25
      * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel
26 26
      */
27
-	public function indexAction()
27
+    public function indexAction()
28 28
     {
29 29
         return $this->redirect()->toRoute('admin/acledit', array());
30 30
     }
Please login to merge, or discard this patch.
module/Admin/src/Admin/Controller/UsersController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
     /**
255 255
      * confirm user registration
256
-     * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel
256
+     * @return \Zend\Http\Response
257 257
      */
258 258
     public function confirmAction()
259 259
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 
313 313
     /**
314 314
      * active user registration
315
-     * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel
315
+     * @return \Zend\Http\Response
316 316
      */
317 317
     public function activateAction()
318 318
     {
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@
 block discarded – undo
26 26
 class UsersController extends BaseActionController
27 27
 {
28 28
 
29
-	/**
30
-	 * @var array|\Admin\Model\UserTable
31
-	 */
32
-	protected $userTable;
33
-
34
-	/**
35
-	 * @var array|\Admin\Model\AclroleTable
36
-	 */
37
-	protected $AclroleTable;
29
+    /**
30
+     * @var array|\Admin\Model\UserTable
31
+     */
32
+    protected $userTable;
33
+
34
+    /**
35
+     * @var array|\Admin\Model\AclroleTable
36
+     */
37
+    protected $AclroleTable;
38 38
 
39 39
     /**
40 40
      * initialize titles and toolbar items
Please login to merge, or discard this patch.
module/Admin/src/Admin/Controller/ZfcuserController.php 2 patches
Doc Comments   +1 added lines, -24 removed lines patch added patch discarded remove patch
@@ -63,29 +63,6 @@  discard block
 block discarded – undo
63 63
     protected $userTable;
64 64
     
65 65
     /**
66
-     * @param callable $redirectCallback
67
-     * @param callable $redirectCallback
68
-     * /
69
-    //public function __construct(ServiceLocatorInterface $serviceLocator, $redirectCallback)
70
-    public function __construct($userService, $options, $registerForm, $loginForm)
71
-    {
72
-        $this->userService = $userService;
73
-        $this->options = $options;
74
-        $this->registerForm = $registerForm;
75
-        $this->loginForm = $loginForm;
76
-        
77
-        /*if ( $serviceLocator ) {
78
-    		$this->setServiceLocator($serviceLocator);
79
-    	}
80
-    	if (!is_callable($redirectCallback)) {
81
-            throw new \InvalidArgumentException('You must supply a callable redirectCallback');
82
-        }
83
-        $this->redirectCallback = $redirectCallback; * /
84
-        
85
-    }
86
-
87
-    /**
88
-     * set current action titles
89 66
      * @return self
90 67
      */
91 68
     public function defineActionTitles() 
@@ -577,7 +554,7 @@  discard block
 block discarded – undo
577 554
 
578 555
     /**
579 556
      * view user's basic data
580
-     * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel
557
+     * @return \Zend\Http\Response
581 558
      */
582 559
     public function userdataAction()
583 560
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
  */
47 47
 class ZfcuserController extends UserController
48 48
 {
49
-	use ControllerTranslatorTrait;
50
-	use ControllerActiontitlesTrait;
51
-	use ControllerToolbarTrait;
49
+    use ControllerTranslatorTrait;
50
+    use ControllerActiontitlesTrait;
51
+    use ControllerToolbarTrait;
52 52
 	
53 53
     /**
54 54
      * 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             // ...redirect to the login redirect route
211 211
             return $this->redirect()->toRoute('zfcuser/login'); //$this->getOptions()->getLoginRedirectRoute());
212 212
         }
213
-    	$oIdentity = $this->zfcUserAuthentication()->getIdentity();
213
+        $oIdentity = $this->zfcUserAuthentication()->getIdentity();
214 214
         $oProfile = new \Admin\Model\UserProfile();
215 215
         $oProfile->load($oIdentity->getId());
216 216
         
@@ -766,7 +766,7 @@  discard block
 block discarded – undo
766 766
             $sm = $this->getServiceLocator();
767 767
             $this->userTable = $sm->get('Admin\Model\UserTable');
768 768
             if (!$this->userTable instanceof \Admin\Model\UserTable) {
769
-            	throw new \Exception("invalid user table object: ".gettype($this->userTable));
769
+                throw new \Exception("invalid user table object: ".gettype($this->userTable));
770 770
             }
771 771
         }
772 772
         return $this->userTable;
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
             $sm = $this->getServiceLocator();
785 785
             $this->aclroleTable = $sm->get('Admin\Model\AclroleTable');
786 786
             if (!$this->aclroleTable instanceof \Admin\Model\AclroleTable) {
787
-            	throw new \Exception("invalid ACL role table object: ".gettype($this->aclroleTable));
787
+                throw new \Exception("invalid ACL role table object: ".gettype($this->aclroleTable));
788 788
             }
789 789
         }
790 790
         return $this->aclroleTable;
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
      */
799 799
     public function getOptions()
800 800
     {
801
-    	return \Application\Module::getService('zfcuser_module_options');
801
+        return \Application\Module::getService('zfcuser_module_options');
802 802
     } 
803 803
     
804 804
 }
Please login to merge, or discard this patch.
module/Admin/src/Admin/Entity/User.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Set token string.
82 82
      *
83
-     * @param  STRING $aclrole
84 83
      * @return \Admin\Entity\User
85 84
      */
86 85
     public function setToken($token)
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
     /**
93 92
      * Get user-id string.
94 93
      *
95
-     * @return STRING
94
+     * @return integer
96 95
      */
97 96
     public function getUserId()
98 97
     {
@@ -105,7 +104,7 @@  discard block
 block discarded – undo
105 104
     /**
106 105
      * Set user-id string.
107 106
      *
108
-     * @param  STRING $aclrole
107
+     * @param integer $user_id
109 108
      * @return \Admin\Entity\User
110 109
      */
111 110
     public function setUserId($user_id)
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
     
24 24
     /**
25 25
      * user's confirmation/activation token
26
-  *
26
+     *
27 27
      * @var string
28 28
      */
29 29
     protected $token;
30 30
 
31 31
     /**
32 32
      * user's ACL role
33
-  *
33
+     *
34 34
      * @var string
35 35
      */
36 36
     protected $aclrole;
37 37
 
38 38
     /**
39 39
      * user's ID
40
-  *
40
+     *
41 41
      * @var int
42 42
      */
43 43
     protected $user_id;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     
119 119
     /**
120 120
      * set user's object property data
121
-  *
121
+     *
122 122
      * @param  array   $data
123 123
      * @param  boolean $forceEncryptPassword
124 124
      * @return \Admin\Entity\User
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     
157 157
     /**
158 158
      * get copy of user's object properties in an assosiative array
159
-  *
159
+     *
160 160
      * @return array
161 161
      */
162 162
     public function __getArrayCopy()
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     
178 178
     /**
179 179
      * get copy of user's object properties in an assosiative array
180
-  *
180
+     *
181 181
      * @return array
182 182
      * /
183 183
     public function getArrayCopy() 
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclControllerFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *
27 27
      * @param ServiceLocatorInterface $serviceLocator
28 28
      *
29
-     * @return mixed
29
+     * @return AclController
30 30
      */
31 31
     public function createService(ServiceLocatorInterface $serviceLocator)
32 32
     {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclresourceTableFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @param ServiceLocatorInterface $serviceLocator
37 37
      *
38
-     * @return Admin\Model\AclresourceTable
38
+     * @return AclresourceTable
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclroleTableFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @param ServiceLocatorInterface $serviceLocator
37 37
      *
38
-     * @return Admin\Model\AclroleTable
38
+     * @return AclroleTable
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/AclTableFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @param ServiceLocatorInterface $serviceLocator
37 37
      *
38
-     * @return Admin\Model\AclTable
38
+     * @return AclTable
39 39
      */
40 40
     public function createService(ServiceLocatorInterface $serviceLocator)
41 41
     {
Please login to merge, or discard this patch.
module/Admin/src/Admin/Factory/ApplicationsControllerFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *
27 27
      * @param ServiceLocatorInterface $serviceLocator
28 28
      *
29
-     * @return mixed
29
+     * @return ApplicationsController
30 30
      */
31 31
     public function createService(ServiceLocatorInterface $serviceLocator)
32 32
     {
Please login to merge, or discard this patch.