@@ -133,6 +133,8 @@ discard block |
||
133 | 133 | * @param string Optional suffix to add during table creation |
134 | 134 | * <br /> |
135 | 135 | * will be appended to CREATE TABLE $tablename SQL |
136 | + * @param string $tablename |
|
137 | + * @param string $criteria |
|
136 | 138 | */ |
137 | 139 | public static function createTable($tablename, $criteria, $suffixTableMeta = false) |
138 | 140 | { |
@@ -212,6 +214,7 @@ discard block |
||
212 | 214 | * Check if the given SQL is a CREATE statement. |
213 | 215 | * |
214 | 216 | * @param string SQL String |
217 | + * @param string $sql |
|
215 | 218 | */ |
216 | 219 | public static function isCreateSql($sql) |
217 | 220 | { |
@@ -112,6 +112,7 @@ |
||
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Clean up the input to be used as a regex. |
115 | + * @param string $value |
|
115 | 116 | */ |
116 | 117 | public function __formatAsRegex($value) |
117 | 118 | { |
@@ -13,6 +13,9 @@ |
||
13 | 13 | { |
14 | 14 | protected static $realm = 'YetiForceApi'; |
15 | 15 | |
16 | + /** |
|
17 | + * @param \Api\Controller $self |
|
18 | + */ |
|
16 | 19 | public static function init($self) |
17 | 20 | { |
18 | 21 | $method = \AppConfig::api('AUTH_METHOD'); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @throws \Api\Core\Exception |
63 | 63 | * |
64 | - * @return bool |
|
64 | + * @return boolean|null |
|
65 | 65 | */ |
66 | 66 | public function checkPermission() |
67 | 67 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | */ |
12 | 12 | class Exception extends \Exception |
13 | 13 | { |
14 | + /** |
|
15 | + * @param string $message |
|
16 | + */ |
|
14 | 17 | public function __construct($message, $code = 200, self $previous = null) |
15 | 18 | { |
16 | 19 | if (!empty($previous)) { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @throws \Api\Core\Exception |
34 | 34 | * |
35 | - * @return bool |
|
35 | + * @return boolean|null |
|
36 | 36 | */ |
37 | 37 | public function checkPermission() |
38 | 38 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param int $parentId |
85 | 85 | * @param string $type |
86 | 86 | * |
87 | - * @return bool |
|
87 | + * @return boolean|null |
|
88 | 88 | */ |
89 | 89 | public function getRecords(\App\QueryGenerator $mainQueryGenerator, $parentId, $type = 'child') |
90 | 90 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Put method. |
28 | 28 | * |
29 | - * @return array |
|
29 | + * @return boolean |
|
30 | 30 | */ |
31 | 31 | public function put() |
32 | 32 | { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * @param \App\User $user |
204 | 204 | * @param bool $skipConversion |
205 | 205 | * |
206 | - * @return Formatted Currency |
|
206 | + * @return string Currency |
|
207 | 207 | */ |
208 | 208 | public function getDisplayValueWithSymbol($user = null, $skipConversion = false) |
209 | 209 | { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @param string $currencySymbol |
220 | 220 | * @param string $currencySymbolPlacement |
221 | 221 | * |
222 | - * @return Currency value appended with the currency symbol |
|
222 | + * @return string value appended with the currency symbol |
|
223 | 223 | */ |
224 | 224 | public static function appendCurrencySymbol($currencyValue, $currencySymbol, $currencySymbolPlacement = '') |
225 | 225 | { |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | * |
242 | 242 | * @param Number $value |
243 | 243 | * |
244 | - * @return Formatted Currency |
|
244 | + * @return string Currency |
|
245 | 245 | */ |
246 | 246 | private function formatCurrencyValue($value) |
247 | 247 | { |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | * @param \App\User $user |
439 | 439 | * @param bool $skipConversion |
440 | 440 | * |
441 | - * @return Number |
|
441 | + * @return string |
|
442 | 442 | */ |
443 | 443 | public static function convertToDBFormat($value, $user = null, $skipConversion = false) |
444 | 444 | { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | /** |
454 | 454 | * Function to get the default CRM currency. |
455 | 455 | * |
456 | - * @return int Default system currency id |
|
456 | + * @return string|null Default system currency id |
|
457 | 457 | */ |
458 | 458 | public static function getDBCurrencyId() |
459 | 459 | { |
@@ -465,6 +465,9 @@ discard block |
||
465 | 465 | return null; |
466 | 466 | } |
467 | 467 | |
468 | + /** |
|
469 | + * @param double $amount |
|
470 | + */ |
|
468 | 471 | public static function convertToDollar($amount, $conversionRate) |
469 | 472 | { |
470 | 473 | if ($conversionRate == 0) { |
@@ -61,7 +61,6 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param Users $user |
|
65 | 64 | * |
66 | 65 | * @return string |
67 | 66 | */ |
@@ -156,7 +155,6 @@ discard block |
||
156 | 155 | |
157 | 156 | /** |
158 | 157 | * @param string $date |
159 | - * @param Users $user |
|
160 | 158 | * |
161 | 159 | * @return string |
162 | 160 | */ |
@@ -346,6 +344,9 @@ discard block |
||
346 | 344 | return $time; |
347 | 345 | } |
348 | 346 | |
347 | + /** |
|
348 | + * @param string $value |
|
349 | + */ |
|
349 | 350 | private static function sanitizeDate($value, $user) |
350 | 351 | { |
351 | 352 | if (empty($user)) { |