@@ -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) { |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * Get list of users based on group id. |
286 | 286 | * |
287 | 287 | * @param int $groupId |
288 | - * @param bool|array $subGroups |
|
288 | + * @param boolean $subGroups |
|
289 | 289 | * @param int $i |
290 | 290 | * |
291 | 291 | * @return array |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * |
582 | 582 | * @param int $profileid |
583 | 583 | * |
584 | - * @return array |
|
584 | + * @return string|null |
|
585 | 585 | */ |
586 | 586 | public static function getStandardPermissions($profileid) |
587 | 587 | { |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | * Get data share. |
681 | 681 | * |
682 | 682 | * @param int $tabId |
683 | - * @param int $roleId |
|
683 | + * @param string $type |
|
684 | 684 | * |
685 | 685 | * @return array |
686 | 686 | */ |
@@ -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 | */ |
@@ -53,8 +53,6 @@ |
||
53 | 53 | * |
54 | 54 | * @param \App\QueryGenerator $queryGenerator |
55 | 55 | * @param \Vtiger_Field_Model $fieldModel |
56 | - * @param string|array $value |
|
57 | - * @param string $operator |
|
58 | 56 | */ |
59 | 57 | public function __construct(\App\QueryGenerator $queryGenerator, $fieldModel = false) |
60 | 58 | { |
@@ -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 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | */ |
81 | 81 | public function getArrayValue() |
82 | 82 | { |
83 | - return array_map(function ($row) { |
|
83 | + return array_map(function($row) { |
|
84 | 84 | return \DateTimeField::convertToDBFormat(reset(explode(' ', $row))); |
85 | 85 | }, explode(',', $this->value)); |
86 | 86 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Equals operator. |
40 | 40 | * |
41 | - * @return array |
|
41 | + * @return string[] |
|
42 | 42 | */ |
43 | 43 | public function operatorE() |
44 | 44 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Not equal operator. |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return string[] |
|
54 | 54 | */ |
55 | 55 | public function operatorN() |
56 | 56 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Between operator. |
64 | 64 | * |
65 | - * @return array |
|
65 | + * @return string[] |
|
66 | 66 | */ |
67 | 67 | public function operatorBw() |
68 | 68 | { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Before operator. |
76 | 76 | * |
77 | - * @return array |
|
77 | + * @return string[] |
|
78 | 78 | */ |
79 | 79 | public function operatorB() |
80 | 80 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * After operator. |
86 | 86 | * |
87 | - * @return array |
|
87 | + * @return string[] |
|
88 | 88 | */ |
89 | 89 | public function operatorA() |
90 | 90 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * Greater operator. |
96 | 96 | * |
97 | - * @return array |
|
97 | + * @return string[] |
|
98 | 98 | */ |
99 | 99 | public function operatorGreaterthannow() |
100 | 100 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Smaller operator. |
106 | 106 | * |
107 | - * @return array |
|
107 | + * @return string[] |
|
108 | 108 | */ |
109 | 109 | public function operatorSmallerthannow() |
110 | 110 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Get value. |
116 | 116 | * |
117 | - * @return mixed |
|
117 | + * @return string[] |
|
118 | 118 | */ |
119 | 119 | public function getStdValue() |
120 | 120 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function getArrayValue() |
30 | 30 | { |
31 | - return array_map(function ($row) { |
|
31 | + return array_map(function($row) { |
|
32 | 32 | $parts = explode(' ', $row); |
33 | 33 | |
34 | 34 | return \DateTimeField::convertToDBFormat(reset($parts)); |