Completed
Branch master (f8c8a7)
by Andrey
01:55
created
src/controllers/BaseController.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * Returns model.
170 170
      *
171
-     * @return ModelInterface
171
+     * @return \Itstructure\RbacModule\interfaces\ModelInterface
172 172
      */
173 173
     public function getModel(): ModelInterface
174 174
     {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     /**
189 189
      * Get validate component for main model.
190 190
      *
191
-     * @return ValidateComponentInterface
191
+     * @return \Itstructure\RbacModule\interfaces\ValidateComponentInterface
192 192
      */
193 193
     public function getValidateComponent(): ValidateComponentInterface
194 194
     {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @param int|string $id
224 224
      *
225
-     * @return mixed
225
+     * @return string
226 226
      */
227 227
     public function actionView($id)
228 228
     {
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     /**
352 352
      * Returns new object of search main model.
353 353
      *
354
-     * @return mixed
354
+     * @return ActiveRecordInterface
355 355
      */
356 356
     protected function getNewSearchModel()
357 357
     {
Please login to merge, or discard this patch.
src/models/Permission.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @param string $name
81 81
      *
82
-     * @return Item
82
+     * @return \yii\rbac\Item
83 83
      */
84 84
     protected function createItem(string $name): Item
85 85
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param string $name
93 93
      *
94
-     * @return Item
94
+     * @return \yii\rbac\Item
95 95
      */
96 96
     protected function createChild(string $name): Item
97 97
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * Set permission field for child instance of Rbac - Permission.
125 125
      *
126 126
      * @param Rbac $instance
127
-     * @param Item      $item
127
+     * @param \yii\rbac\Item      $item
128 128
      *
129 129
      * @return Rbac
130 130
      */
Please login to merge, or discard this patch.
src/models/Rbac.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @param string $name
47 47
      *
48
-     * @return Item
48
+     * @return \yii\rbac\Item
49 49
      */
50 50
     abstract protected function createItem(string $name): Item;
51 51
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @param string $name
57 57
      *
58
-     * @return Item
58
+     * @return \yii\rbac\Item
59 59
      */
60 60
     abstract protected function createChild(string $name): Item;
61 61
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * Returns old name in current object, which is set before new value.
78 78
      *
79
-     * @return mixed
79
+     * @return string
80 80
      */
81 81
     abstract protected function getOldName();
82 82
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * Set item (role or permission) for instance of Rbac.
94 94
      *
95 95
      * @param Rbac $instance
96
-     * @param Item      $item
96
+     * @param \yii\rbac\Item      $item
97 97
      *
98 98
      * @return Rbac
99 99
      */
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Set auth manager.
180 180
      *
181
-     * @param ManagerInterface $authManager
181
+     * @param \yii\rbac\ManagerInterface $authManager
182 182
      */
183 183
     public function setAuthManager(ManagerInterface $authManager): void
184 184
     {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     /**
189 189
      * Get auth manager.
190 190
      *
191
-     * @return ManagerInterface
191
+     * @return \yii\rbac\ManagerInterface
192 192
      */
193 193
     public function getAuthManager(): ManagerInterface
194 194
     {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     /**
322 322
      * Function for creating record.
323 323
      *
324
-     * @param Item $item
324
+     * @param \yii\rbac\Item $item
325 325
      *
326 326
      * @return bool
327 327
      */
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     /**
344 344
      * Function for updating record.
345 345
      *
346
-     * @param Item $item
346
+     * @param \yii\rbac\Item $item
347 347
      *
348 348
      * @return bool
349 349
      */
Please login to merge, or discard this patch.
src/models/Role.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @param string $name
81 81
      *
82
-     * @return Item
82
+     * @return \yii\rbac\Item
83 83
      */
84 84
     protected function createItem(string $name): Item
85 85
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param string $name
93 93
      *
94
-     * @return Item
94
+     * @return \yii\rbac\Item
95 95
      */
96 96
     protected function createChild(string $name): Item
97 97
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * Set role field for child instance of Rbac - Role.
125 125
      *
126 126
      * @param Rbac $instance
127
-     * @param Item      $item
127
+     * @param \yii\rbac\Item      $item
128 128
      *
129 129
      * @return Rbac
130 130
      */
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,8 @@
 block discarded – undo
119 119
     /**
120 120
      * Module translator.
121 121
      *
122
-     * @param       $category
123
-     * @param       $message
122
+     * @param       string $category
123
+     * @param       string $message
124 124
      * @param array $params
125 125
      * @param null  $language
126 126
      *
Please login to merge, or discard this patch.