@@ -169,7 +169,7 @@ |
||
169 | 169 | * @link https://secure.php.net/manual/en/class.dateinterval.php |
170 | 170 | * @link https://secure.php.net/manual/en/dateinterval.format.php |
171 | 171 | * |
172 | - * @return string|int difference in format |
|
172 | + * @return double difference in format |
|
173 | 173 | */ |
174 | 174 | public static function getDiff($start, $end, $format = '%a') |
175 | 175 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param string $value |
18 | 18 | * @param string $moduleName |
19 | 19 | * |
20 | - * @return bool|string |
|
20 | + * @return string|false |
|
21 | 21 | */ |
22 | 22 | public static function findRecordNumber($value, $moduleName) |
23 | 23 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Find crm id by email. |
38 | 38 | * |
39 | - * @param string|int $value |
|
39 | + * @param string $value |
|
40 | 40 | * @param array $allowedModules |
41 | 41 | * @param array $skipModules |
42 | 42 | * |
@@ -272,6 +272,7 @@ |
||
272 | 272 | /** |
273 | 273 | * Get colors for all fields or generate it if not exists. |
274 | 274 | * |
275 | + * @param string $fieldName |
|
275 | 276 | * @return array [$id=>'#FF00FF'] |
276 | 277 | */ |
277 | 278 | public static function getColors($fieldName) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param int $templateId |
41 | 41 | * @param string $tree |
42 | 42 | * |
43 | - * @return array[] |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public static function getValueByTreeId($templateId, $tree) |
46 | 46 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param string $moduleName |
88 | 88 | * @param string $treeId |
89 | 89 | * |
90 | - * @return string[] |
|
90 | + * @return string |
|
91 | 91 | */ |
92 | 92 | public static function getPicklistValueImage($templateId, $moduleName, $treeId) |
93 | 93 | { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Get default pbx instance. |
84 | 84 | * |
85 | - * @return \self |
|
85 | + * @return Pbx |
|
86 | 86 | */ |
87 | 87 | public static function getDefaultInstance() |
88 | 88 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * |
130 | 130 | * @param string $key |
131 | 131 | * |
132 | - * @return mixed Value for the given key |
|
132 | + * @return string Value for the given key |
|
133 | 133 | */ |
134 | 134 | public function getConfig($key) |
135 | 135 | { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * Creates a file with all the user, user-role,user-profile, user-groups informations. |
55 | 55 | * |
56 | - * @param $userId -- user id:: Type integer |
|
56 | + * @param integer $userId -- user id:: Type integer |
|
57 | 57 | */ |
58 | 58 | public static function createUserPrivilegesFile($userId) |
59 | 59 | { |
@@ -68,6 +68,9 @@ |
||
68 | 68 | return ''; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string|boolean $moduleName |
|
73 | + */ |
|
71 | 74 | public static function getConditions(\App\Db\Query $query, $moduleName, $user = false, $relatedRecord = false) |
72 | 75 | { |
73 | 76 | if ($user && $user instanceof User) { |
@@ -376,7 +376,6 @@ |
||
376 | 376 | * Function to convert the given string to html. |
377 | 377 | * |
378 | 378 | * @param string $string |
379 | - * @param bool $encode |
|
380 | 379 | * |
381 | 380 | * @return string |
382 | 381 | */ |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Get value. |
68 | 68 | * |
69 | - * @return mixed |
|
69 | + * @return string |
|
70 | 70 | */ |
71 | 71 | public function getValue() |
72 | 72 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Before operator. |
130 | 130 | * |
131 | - * @return array |
|
131 | + * @return string[] |
|
132 | 132 | */ |
133 | 133 | public function operatorB() |
134 | 134 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * After operator. |
140 | 140 | * |
141 | - * @return array |
|
141 | + * @return string[] |
|
142 | 142 | */ |
143 | 143 | public function operatorA() |
144 | 144 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Greater operator. |
162 | 162 | * |
163 | - * @return array |
|
163 | + * @return string[] |
|
164 | 164 | */ |
165 | 165 | public function operatorGreaterthannow() |
166 | 166 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Smaller operator. |
172 | 172 | * |
173 | - * @return array |
|
173 | + * @return string[] |
|
174 | 174 | */ |
175 | 175 | public function operatorSmallerthannow() |
176 | 176 | { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | public function getArrayValue() |
87 | 87 | { |
88 | - return array_map(function ($row) { |
|
88 | + return array_map(function($row) { |
|
89 | 89 | return \DateTimeField::convertToDBFormat(\current(explode(' ', $row))); |
90 | 90 | }, explode(',', $this->value)); |
91 | 91 | } |