@@ -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 | { |
@@ -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)) { |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * @param int $month |
| 274 | 274 | * @param DateTime $dateObject |
| 275 | 275 | * |
| 276 | - * @return date range of present quarter |
|
| 276 | + * @return string[] range of present quarter |
|
| 277 | 277 | */ |
| 278 | 278 | public static function getPresentQuarterRange($month = 0, &$dateObject = null) |
| 279 | 279 | { |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @param int $month |
| 309 | 309 | * @param DateTime $dateObject |
| 310 | 310 | * |
| 311 | - * @return date range of present quarter |
|
| 311 | + * @return string[] range of present quarter |
|
| 312 | 312 | */ |
| 313 | 313 | public static function getPreviousQuarterRange($month = 0, &$dateObject = null) |
| 314 | 314 | { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * @param int $month |
| 345 | 345 | * @param DateTime $dateObject |
| 346 | 346 | * |
| 347 | - * @return date range of present quarter |
|
| 347 | + * @return string[] range of present quarter |
|
| 348 | 348 | */ |
| 349 | 349 | public static function getNextQuarterRange($month = 0, $dateObject = null) |
| 350 | 350 | { |
@@ -58,6 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Set headers to send. |
| 61 | + * @param string $header |
|
| 61 | 62 | */ |
| 62 | 63 | public function setHeader($header) |
| 63 | 64 | { |
@@ -78,6 +79,7 @@ discard block |
||
| 78 | 79 | |
| 79 | 80 | /** |
| 80 | 81 | * Set emit type. |
| 82 | + * @param integer $type |
|
| 81 | 83 | */ |
| 82 | 84 | public function setEmitType($type) |
| 83 | 85 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Function to get the instance of the logged in User. |
| 68 | 68 | * |
| 69 | - * @return Users object |
|
| 69 | + * @return boolean object |
|
| 70 | 70 | */ |
| 71 | 71 | public function getLogin() |
| 72 | 72 | { |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | * @param \App\Controller\Base $handler |
| 248 | 248 | * @param \App\Request $request |
| 249 | 249 | * |
| 250 | - * @return bool |
|
| 250 | + * @return boolean|null |
|
| 251 | 251 | */ |
| 252 | 252 | protected function triggerPreProcess(\App\Controller\Base $handler, \App\Request $request) |
| 253 | 253 | { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * @param \App\Controller\Base $handler |
| 266 | 266 | * @param \App\Request $request |
| 267 | 267 | * |
| 268 | - * @return bool |
|
| 268 | + * @return boolean|null |
|
| 269 | 269 | */ |
| 270 | 270 | protected function triggerPostProcess(\App\Controller\Base $handler, \App\Request $request) |
| 271 | 271 | { |
@@ -10,11 +10,17 @@ |
||
| 10 | 10 | |
| 11 | 11 | class Vtiger_Cache_Connector_Memory |
| 12 | 12 | { |
| 13 | + /** |
|
| 14 | + * @param string $key |
|
| 15 | + */ |
|
| 13 | 16 | public function set($key, $value) |
| 14 | 17 | { |
| 15 | 18 | $this->$key = $value; |
| 16 | 19 | } |
| 17 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $key |
|
| 23 | + */ |
|
| 18 | 24 | public function get($key) |
| 19 | 25 | { |
| 20 | 26 | return $this->$key ?? false; |