@@ -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 | } |
@@ -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)); |