Completed
Push — master ( 100486...45110c )
by Basil
11:58 queued 05:54
created
core/helpers/Url.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     /**
21 21
      * This helper method will not concern any context informations
22
-     * @param array $routeParams Example array to route `['/module/controller/action']`.
22
+     * @param string[] $routeParams Example array to route `['/module/controller/action']`.
23 23
      * @param boolean $scheme Whether to return the absolute url or not
24 24
      */
25 25
     public static function toInternal(array $routeParams, $scheme = false)
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @param string $route
39 39
      * @param array  $params
40
-     * @param boolean $sheme Whether to return static url or not
40
+     * @param boolean $scheme Whether to return static url or not
41 41
      * @todo we have to remove this method as it provides no additinal functions to the yii\helpers\url to method
42 42
      */
43 43
     public static function toManager($route, array $params = [], $scheme = false)
Please login to merge, or discard this patch.
modules/admin/src/base/Filter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * Get an array with all the effect param options, based on the effect params defintion.
144 144
      *
145
-     * @param array $effectParamsDefintion
145
+     * @param array $effectParams
146 146
      *
147 147
      * @throws Exception When the vars key does not exists in the effect definition.
148 148
      *
Please login to merge, or discard this patch.
modules/admin/src/base/RestVerbController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         $this->throwException(__METHOD__);
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $method
53
+     */
51 54
     private function throwException($method)
52 55
     {
53 56
         throw new \Exception('The action '.$method.' is not yet supported.');
Please login to merge, or discard this patch.
modules/admin/src/components/Auth.php 1 patch
Doc Comments   +15 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
         return ($create + $update + $delete);
26 26
     }
27 27
 
28
+    /**
29
+     * @param integer $permissionWeight
30
+     */
28 31
     public function permissionVerify($type, $permissionWeight)
29 32
     {
30 33
         $numbers = [];
@@ -76,10 +79,9 @@  discard block
 block discarded – undo
76 79
     /**
77 80
      * see if the user id matches against the moduleName, controllerName, actionName inside of the rights database.
78 81
      *
79
-     * @param string $moduleName     Module Name
80
-     * @param string $controllerName The name of the controller without suffix "Controller"
81
-     * @param string $actionName     The name of the action without prefix "action";
82 82
      *
83
+     * @param integer $userId
84
+     * @param string $route
83 85
      * @return bool
84 86
      */
85 87
     public function matchRoute($userId, $route)
@@ -97,6 +99,11 @@  discard block
 block discarded – undo
97 99
         return false;
98 100
     }
99 101
 
102
+    /**
103
+     * @param string $moduleName
104
+     * @param string $route
105
+     * @param string $name
106
+     */
100 107
     public function addRoute($moduleName, $route, $name)
101 108
     {
102 109
         $handler = (new Query())->select('COUNT(*) AS count')->from('admin_auth')->where(['route' => $route])->one();
@@ -118,6 +125,11 @@  discard block
 block discarded – undo
118 125
         }
119 126
     }
120 127
 
128
+    /**
129
+     * @param string $moduleName
130
+     * @param string $apiEndpoint
131
+     * @param string $name
132
+     */
121 133
     public function addApi($moduleName, $apiEndpoint, $name)
122 134
     {
123 135
         $handler = (new Query())->select('COUNT(*) AS count')->from('admin_auth')->where(['api' => $apiEndpoint])->one();
Please login to merge, or discard this patch.
modules/admin/src/components/StorageContainer.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     /**
418 418
      * 
419 419
      * @param unknown $folderName
420
-     * @param number $parentFolderId
420
+     * @param integer $parentFolderId
421 421
      * @return boolean
422 422
      */
423 423
     public function addFolder($folderName, $parentFolderId = 0)
@@ -453,6 +453,9 @@  discard block
 block discarded – undo
453 453
         return (isset($this->filtersArray[$filterIdentifier])) ? $this->filtersArray[$filterIdentifier] : false;
454 454
     }
455 455
     
456
+    /**
457
+     * @param string $key
458
+     */
456 459
     protected function getQueryCacheHelper(\yii\db\Query $query, $key)
457 460
     {
458 461
         $data = $this->getHasCache($key);
Please login to merge, or discard this patch.
modules/admin/src/helpers/Storage.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
      * So you need to use the "%u" formatter of sprintf() or printf() to get the string representation of the unsigned crc32() checksum in decimal format.
30 30
      *
31 31
      * @var string
32
+     * @param string $fileName
32 33
      */
33 34
     public static function createFileHash($fileName)
34 35
     {
@@ -133,7 +134,7 @@  discard block
 block discarded – undo
133 134
     /**
134 135
      * 
135 136
      * @param array $fileArray Its an entry of the files array like $_FILEs['logo_image'];
136
-     * @param number $toFolder
137
+     * @param integer $toFolder
137 138
      * @param string $isHidden
138 139
      */
139 140
     public static function uploadFromFileArray(array $fileArray, $toFolder = 0, $isHidden = false)
@@ -194,7 +195,7 @@  discard block
 block discarded – undo
194 195
     /**
195 196
      * 
196 197
      * @param array $filesArray Use $_FILES
197
-     * @param number $toFolder
198
+     * @param integer $toFolder
198 199
      * @param string $isHidden
199 200
      * 
200 201
      * @todo what happen if $files does have more then one entry, as the response is limit to 1
Please login to merge, or discard this patch.
modules/admin/src/image/Item.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     
39 39
     /**
40 40
      * 
41
-     * @return string|boolean
41
+     * @return string|false
42 42
      */
43 43
     public function getSource()
44 44
     {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     
54 54
     /**
55 55
      * 
56
-     * @return string|boolean
56
+     * @return string|false
57 57
      */
58 58
     public function getServerSource()
59 59
     {
Please login to merge, or discard this patch.
modules/admin/src/importers/FilterImporter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
 
8 8
 class FilterImporter extends \luya\base\Importer
9 9
 {
10
+    /**
11
+     * @param string $identifier
12
+     */
10 13
     private function refresh($identifier, $fields)
11 14
     {
12 15
         $model = StorageEffect::find()->where(['identifier' => $identifier])->one();
Please login to merge, or discard this patch.
modules/admin/src/models/Config.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -9,11 +9,17 @@  discard block
 block discarded – undo
9 9
         return 'admin_config';
10 10
     }
11 11
 
12
+    /**
13
+     * @param string $name
14
+     */
12 15
     public static function has($name)
13 16
     {
14 17
         return (self::find()->where(['name' => $name])->one()) ? true : false;
15 18
     }
16 19
 
20
+    /**
21
+     * @param string $name
22
+     */
17 23
     public static function get($name)
18 24
     {
19 25
         $model = self::find()->where(['name' => $name])->asArray()->one();
@@ -25,6 +31,9 @@  discard block
 block discarded – undo
25 31
         return;
26 32
     }
27 33
 
34
+    /**
35
+     * @param string $name
36
+     */
28 37
     public static function set($name, $value)
29 38
     {
30 39
         $model = self::find()->where(['name' => $name])->one();
@@ -42,6 +51,9 @@  discard block
 block discarded – undo
42 51
         return $model->insert(false);
43 52
     }
44 53
 
54
+    /**
55
+     * @param string $name
56
+     */
45 57
     public static function remove($name)
46 58
     {
47 59
         $model = self::find()->where(['name' => $name])->one();
Please login to merge, or discard this patch.