@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @throws Exceptions\AppException |
45 | 45 | * |
46 | - * @return Zip|bool |
|
46 | + * @return Zip |
|
47 | 47 | */ |
48 | 48 | public static function openFile($fileName = false, $options = []) |
49 | 49 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | if (!empty($this->searchValue)) { |
80 | 80 | $this->searchValue = strtolower($this->searchValue); |
81 | - $accessibleGroups = array_filter($accessibleGroups, function ($name) { |
|
81 | + $accessibleGroups = array_filter($accessibleGroups, function($name) { |
|
82 | 82 | return strstr(strtolower($name), $this->searchValue); |
83 | 83 | }); |
84 | 84 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * Function to get all the accessible users. |
89 | 89 | * |
90 | 90 | * @param string $private |
91 | - * @param mixed $fieldType |
|
91 | + * @param boolean|string $fieldType |
|
92 | 92 | * |
93 | 93 | * @return array |
94 | 94 | */ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param string $status |
181 | 181 | * @param mixed $assignedUser |
182 | 182 | * @param string $private |
183 | - * @param mixed $roles |
|
183 | + * @param boolean $roles |
|
184 | 184 | * |
185 | 185 | * @return array |
186 | 186 | */ |
@@ -222,8 +222,8 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Function gets sql query. |
224 | 224 | * |
225 | - * @param mixed $private |
|
226 | - * @param mixed $status |
|
225 | + * @param string $private |
|
226 | + * @param string $status |
|
227 | 227 | * @param mixed $roles |
228 | 228 | * |
229 | 229 | * @return \App\Db\Query |
@@ -411,7 +411,6 @@ discard block |
||
411 | 411 | /** |
412 | 412 | * Function returns list of accessible users for a module. |
413 | 413 | * |
414 | - * @param string $module |
|
415 | 414 | * |
416 | 415 | * @return <Array of Users_Record_Model> |
417 | 416 | */ |
@@ -800,8 +799,8 @@ discard block |
||
800 | 799 | /** |
801 | 800 | * Transfer ownership workflow tasks. |
802 | 801 | * |
803 | - * @param type $oldId |
|
804 | - * @param type $newId |
|
802 | + * @param integer $oldId |
|
803 | + * @param integer $newId |
|
805 | 804 | */ |
806 | 805 | private static function transferOwnershipForWorkflow($oldId, $newId) |
807 | 806 | { |
@@ -179,7 +179,7 @@ |
||
179 | 179 | if (static::$clearOpcache) { |
180 | 180 | return false; |
181 | 181 | } |
182 | - register_shutdown_function(function () { |
|
182 | + register_shutdown_function(function() { |
|
183 | 183 | static::resetOpcache(); |
184 | 184 | }); |
185 | 185 | static::$clearOpcache = true; |
@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | * Returns a Cache Item representing the specified key. |
44 | 44 | * |
45 | 45 | * @param string $key Cache ID |
46 | + * @param string $nameSpace |
|
46 | 47 | * |
47 | 48 | * @return mixed |
48 | 49 | */ |
@@ -70,6 +71,7 @@ discard block |
||
70 | 71 | * @param string $key Cache ID |
71 | 72 | * @param mixed $value Data to store, supports string, array, objects |
72 | 73 | * @param int $duration Cache TTL (in seconds) |
74 | + * @param string $nameSpace |
|
73 | 75 | * |
74 | 76 | * @return bool |
75 | 77 | */ |
@@ -85,8 +87,9 @@ discard block |
||
85 | 87 | * Removes the item from the cache. |
86 | 88 | * |
87 | 89 | * @param string $key Cache ID |
90 | + * @param string $nameSpace |
|
88 | 91 | * |
89 | - * @return bool |
|
92 | + * @return boolean|null |
|
90 | 93 | */ |
91 | 94 | public static function delete($nameSpace, $key) |
92 | 95 | { |
@@ -96,7 +99,7 @@ discard block |
||
96 | 99 | /** |
97 | 100 | * Deletes all items in the cache. |
98 | 101 | * |
99 | - * @return bool |
|
102 | + * @return boolean|null |
|
100 | 103 | */ |
101 | 104 | public static function clear() |
102 | 105 | { |
@@ -109,7 +112,7 @@ discard block |
||
109 | 112 | * @param string $nameSpace |
110 | 113 | * @param string $key Cache ID |
111 | 114 | * |
112 | - * @return mixed |
|
115 | + * @return string[] |
|
113 | 116 | */ |
114 | 117 | public static function staticGet($nameSpace, $key) |
115 | 118 | { |
@@ -135,7 +138,6 @@ discard block |
||
135 | 138 | * @param string $nameSpace |
136 | 139 | * @param string $key Cache ID |
137 | 140 | * @param mixed $value Data to store |
138 | - * @param int $duration Cache TTL (in seconds) |
|
139 | 141 | * |
140 | 142 | * @return bool |
141 | 143 | */ |
@@ -150,7 +152,7 @@ discard block |
||
150 | 152 | * @param string $nameSpace |
151 | 153 | * @param string $key Cache ID |
152 | 154 | * |
153 | - * @return bool |
|
155 | + * @return boolean|null |
|
154 | 156 | */ |
155 | 157 | public static function staticDelete($nameSpace, $key) |
156 | 158 | { |
@@ -160,7 +162,7 @@ discard block |
||
160 | 162 | /** |
161 | 163 | * Deletes all items in the static cache. |
162 | 164 | * |
163 | - * @return bool |
|
165 | + * @return boolean|null |
|
164 | 166 | */ |
165 | 167 | public static function staticClear() |
166 | 168 | { |
@@ -170,7 +172,7 @@ discard block |
||
170 | 172 | /** |
171 | 173 | * Clear the opcache after the script finishes. |
172 | 174 | * |
173 | - * @return bool |
|
175 | + * @return false|null |
|
174 | 176 | */ |
175 | 177 | public static function clearOpcache() |
176 | 178 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Get all js configuratin in json. |
72 | 72 | * |
73 | - * @return type |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | public static function getJsEnv() |
76 | 76 | { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Initiating debugging console. |
30 | 30 | * |
31 | - * @return \App\DebugBar\Debuger |
|
31 | + * @return DebugBar\DebugBar |
|
32 | 32 | */ |
33 | 33 | public static function initConsole() |
34 | 34 | { |
@@ -75,6 +75,10 @@ discard block |
||
75 | 75 | return isset(static::$debugBar); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $level |
|
80 | + * @param string $traces |
|
81 | + */ |
|
78 | 82 | public static function addLogs($message, $level, $traces) |
79 | 83 | { |
80 | 84 | if (isset(static::$debugBar['logs'])) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * |
99 | 99 | * @param string $imageName |
100 | 100 | * |
101 | - * @return array |
|
101 | + * @return string|false |
|
102 | 102 | */ |
103 | 103 | public static function getImagePath($imageName) |
104 | 104 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $templateName |
112 | 112 | * @param string $moduleName |
113 | 113 | * |
114 | - * @return array |
|
114 | + * @return string |
|
115 | 115 | */ |
116 | 116 | public static function getTemplatePath($templateName, $moduleName = '') |
117 | 117 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $timings = []; |
37 | 37 | $stack = []; |
38 | 38 | foreach ($this->messages as $i => $log) { |
39 | - list($token, $level, , $timestamp) = $log; |
|
39 | + list($token, $level,, $timestamp) = $log; |
|
40 | 40 | $log[5] = $i; |
41 | 41 | if ($level == Logger::LEVEL_PROFILE_BEGIN) { |
42 | 42 | $stack[] = $log; |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * Function to get the detailViewUrl for the rule member in Sharing Access Custom Rules. |
265 | 265 | * |
266 | - * @return DetailViewUrl |
|
266 | + * @return string|null |
|
267 | 267 | */ |
268 | 268 | public function getSourceDetailViewUrl() |
269 | 269 | { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * Function to get the detailViewUrl for the rule member in Sharing Access Custom Rules. |
283 | 283 | * |
284 | - * @return DetailViewUrl |
|
284 | + * @return string|null |
|
285 | 285 | */ |
286 | 286 | public function getTargetDetailViewUrl() |
287 | 287 | { |
@@ -420,6 +420,7 @@ discard block |
||
420 | 420 | /** |
421 | 421 | * Function to get all the rules. |
422 | 422 | * |
423 | + * @param integer $ruleId |
|
423 | 424 | * @return array - Array of Settings_Groups_Record_Model instances |
424 | 425 | */ |
425 | 426 | public static function getInstance($moduleModel, $ruleId) |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | * |
216 | 216 | * @param string $dir |
217 | 217 | * |
218 | - * @return bool |
|
218 | + * @return false|null |
|
219 | 219 | */ |
220 | 220 | public static function deleteDir($dir) |
221 | 221 | { |
@@ -297,6 +297,9 @@ discard block |
||
297 | 297 | return $data; |
298 | 298 | } |
299 | 299 | |
300 | + /** |
|
301 | + * @param boolean $byModule |
|
302 | + */ |
|
300 | 303 | public function getStats($data, $langBase, $byModule) |
301 | 304 | { |
302 | 305 | $differences = []; |