@@ -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 = []; |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | */ |
26 | 26 | protected $searchParams = []; |
27 | 27 | |
28 | + /** |
|
29 | + * @param Vtiger_Widget_Model $widgetModel |
|
30 | + */ |
|
28 | 31 | public function setWidgetModel($widgetModel) |
29 | 32 | { |
30 | 33 | $this->widgetModel = $widgetModel; |
@@ -54,6 +57,9 @@ discard block |
||
54 | 57 | return $this->extraData['module']; |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @return string[] |
|
62 | + */ |
|
57 | 63 | public function getTargetFields() |
58 | 64 | { |
59 | 65 | $fields = $this->extraData['fields']; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | //Override the default expire time of token |
19 | 19 | \CsrfMagic\Csrf::$expires = 259200; |
20 | - \CsrfMagic\Csrf::$callback = function ($tokens) { |
|
20 | + \CsrfMagic\Csrf::$callback = function($tokens) { |
|
21 | 21 | throw new \App\Exceptions\AppException('Invalid request - Response For Illegal Access'); |
22 | 22 | }; |
23 | 23 | $js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |
@@ -123,7 +123,7 @@ |
||
123 | 123 | if (!is_array($value)) { |
124 | 124 | return ''; |
125 | 125 | } |
126 | - $value = array_map(function ($v) { |
|
126 | + $value = array_map(function($v) { |
|
127 | 127 | return $v['name']; |
128 | 128 | }, $value); |
129 | 129 | $result = implode(', ', $value); |
@@ -189,7 +189,7 @@ |
||
189 | 189 | */ |
190 | 190 | public static function getMethods() |
191 | 191 | { |
192 | - return array_filter(openssl_get_cipher_methods(), function ($methodName) { |
|
192 | + return array_filter(openssl_get_cipher_methods(), function($methodName) { |
|
193 | 193 | return stripos($methodName, 'gcm') === false && stripos($methodName, 'ccm') === false; |
194 | 194 | }); |
195 | 195 | } |
@@ -1030,7 +1030,7 @@ |
||
1030 | 1030 | */ |
1031 | 1031 | public static function parse(array $value) |
1032 | 1032 | { |
1033 | - return array_reduce($value, function ($result, $item) { |
|
1033 | + return array_reduce($value, function($result, $item) { |
|
1034 | 1034 | $result[$item['key']] = $item; |
1035 | 1035 | return $result; |
1036 | 1036 | }, []); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @param array $fileInfo |
112 | 112 | * |
113 | - * @return \self |
|
113 | + * @return File |
|
114 | 114 | */ |
115 | 115 | public static function loadFromInfo($fileInfo) |
116 | 116 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param array $file |
128 | 128 | * |
129 | - * @return \self |
|
129 | + * @return File |
|
130 | 130 | */ |
131 | 131 | public static function loadFromRequest($file) |
132 | 132 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @param array $path |
145 | 145 | * |
146 | - * @return \self |
|
146 | + * @return File |
|
147 | 147 | */ |
148 | 148 | public static function loadFromPath($path) |
149 | 149 | { |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | /** |
700 | 700 | * Create document from content. |
701 | 701 | * |
702 | - * @param \self $file |
|
702 | + * @param File $file |
|
703 | 703 | * @param array $params |
704 | 704 | * |
705 | 705 | * @throws \Exception |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Sets next trigger time. |
206 | 206 | * |
207 | - * @param timestamp $time |
|
207 | + * @param string|null $time |
|
208 | 208 | */ |
209 | 209 | public function setNextTriggerTime($time) |
210 | 210 | { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * |
280 | 280 | * @global string $default_timezone |
281 | 281 | * |
282 | - * @return timestamp |
|
282 | + * @return string|null |
|
283 | 283 | */ |
284 | 284 | public function getNextTriggerTime() |
285 | 285 | { |
@@ -326,9 +326,9 @@ discard block |
||
326 | 326 | /** |
327 | 327 | * get next trigger time for daily. |
328 | 328 | * |
329 | - * @param type $schTime |
|
329 | + * @param type $scheduledTime |
|
330 | 330 | * |
331 | - * @return time |
|
331 | + * @return string |
|
332 | 332 | */ |
333 | 333 | public function getNextTriggerTimeForDaily($scheduledTime) |
334 | 334 | { |
@@ -346,10 +346,10 @@ discard block |
||
346 | 346 | /** |
347 | 347 | * get next trigger Time For weekly. |
348 | 348 | * |
349 | - * @param json $scheduledDaysOfWeek |
|
349 | + * @param integer $scheduledDaysOfWeek |
|
350 | 350 | * @param time $scheduledTime |
351 | 351 | * |
352 | - * @return time |
|
352 | + * @return string |
|
353 | 353 | */ |
354 | 354 | public function getNextTriggerTimeForWeekly($scheduledDaysOfWeek, $scheduledTime) |
355 | 355 | { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | * @param int $scheduledDayOfMonth |
411 | 411 | * @param int $scheduledTime |
412 | 412 | * |
413 | - * @return time |
|
413 | + * @return string |
|
414 | 414 | */ |
415 | 415 | public function getNextTriggerTimeForMonthlyByDate($scheduledDayOfMonth, $scheduledTime) |
416 | 416 | { |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * @param int $scheduledWeekDayOfMonth |
461 | 461 | * @param timestamp $scheduledTime |
462 | 462 | * |
463 | - * @return time |
|
463 | + * @return string |
|
464 | 464 | */ |
465 | 465 | public function getNextTriggerTimeForMonthlyByWeekDay($scheduledWeekDayOfMonth, $scheduledTime) |
466 | 466 | { |
@@ -485,10 +485,10 @@ discard block |
||
485 | 485 | /** |
486 | 486 | * to get next trigger time. |
487 | 487 | * |
488 | - * @param json $annualDates |
|
488 | + * @param boolean $annualDates |
|
489 | 489 | * @param timestamp $scheduledTime |
490 | 490 | * |
491 | - * @return time |
|
491 | + * @return string |
|
492 | 492 | */ |
493 | 493 | public function getNextTriggerTimeForAnnualDates($annualDates, $scheduledTime) |
494 | 494 | { |
@@ -165,6 +165,9 @@ |
||
165 | 165 | return $wfCondition; |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string|boolean $moduleName |
|
170 | + */ |
|
168 | 171 | public static function getDateFilter($moduleName) |
169 | 172 | { |
170 | 173 | foreach (\App\CustomView::getDateFilterTypes() as $comparatorKey => $comparatorInfo) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param \App\Request $request |
60 | 60 | * |
61 | - * @return \Vtiger_JsScript_Model[] |
|
61 | + * @return Vtiger_JsScript_Model[] |
|
62 | 62 | */ |
63 | 63 | public function getModalScripts(\App\Request $request) |
64 | 64 | { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @param \App\Request $request |
76 | 76 | * |
77 | - * @return \Vtiger_CssScript_Model[] |
|
77 | + * @return Vtiger_CssScript_Model[] |
|
78 | 78 | */ |
79 | 79 | public function getModalCss(\App\Request $request) |
80 | 80 | { |