@@ -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)); |
@@ -174,6 +174,10 @@ |
||
174 | 174 | return $entityDisplay; |
175 | 175 | } |
176 | 176 | |
177 | + /** |
|
178 | + * @param string $moduleName |
|
179 | + * @param integer $id |
|
180 | + */ |
|
177 | 181 | public static function updateLabel($moduleName, $id, $insertMode = false, $updater = false) |
178 | 182 | { |
179 | 183 | $labelInfo = static::computeLabels($moduleName, $id, true); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * 2 - word and int |
140 | 140 | * |
141 | 141 | * @param string $key Key name |
142 | - * @param int|string $type Data type that is only acceptable, default only words 'Standard' |
|
142 | + * @param integer $type Data type that is only acceptable, default only words 'Standard' |
|
143 | 143 | * |
144 | 144 | * @return bool|mixed |
145 | 145 | */ |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * Function to get html the value for a given key. |
288 | 288 | * |
289 | 289 | * @param string $key |
290 | - * @param mixed $value |
|
290 | + * @param string $value |
|
291 | 291 | * |
292 | 292 | * @return mixed |
293 | 293 | */ |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @param string $key |
88 | 88 | * |
89 | - * @return bool |
|
89 | + * @return boolean|null |
|
90 | 90 | */ |
91 | 91 | public static function delete($key) |
92 | 92 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * Get unique key. |
32 | 32 | * |
33 | - * @return type |
|
33 | + * @return string |
|
34 | 34 | */ |
35 | 35 | public function getKey() |
36 | 36 | { |