@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * @param string $moduleName |
| 91 | 91 | * @param int $userId |
| 92 | 92 | * |
| 93 | - * @return int|bool |
|
| 93 | + * @return integer|null |
|
| 94 | 94 | */ |
| 95 | 95 | public function undo($moduleName, $userId) |
| 96 | 96 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * Constructor. |
| 24 | 24 | * |
| 25 | - * @return bool |
|
| 25 | + * @return false|null |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct() |
| 28 | 28 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * |
| 18 | 18 | * @param \App\Request $request |
| 19 | 19 | * |
| 20 | - * @return string export query |
|
| 20 | + * @return App\Db\Query export query |
|
| 21 | 21 | */ |
| 22 | 22 | public function getExportQuery(\App\Request $request) |
| 23 | 23 | { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | /** |
| 148 | 148 | * Function to get export query. |
| 149 | 149 | * |
| 150 | - * @return string query; |
|
| 150 | + * @return App\Db\Query query; |
|
| 151 | 151 | */ |
| 152 | 152 | public function getExportQuery($focus = '', $where = '') |
| 153 | 153 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Get chat entries. |
| 14 | 14 | * |
| 15 | - * @param int|bool $time |
|
| 16 | 15 | * |
| 17 | 16 | * @return array |
| 18 | 17 | */ |
@@ -129,10 +129,8 @@ |
||
| 129 | 129 | * Calculate the time difference (input times) or (current time and input time) and |
| 130 | 130 | * convert it into number of days. |
| 131 | 131 | * |
| 132 | - * @param array $a $a[0] - Input time1, $a[1] - Input time2 |
|
| 133 | - * (if $a[1] is not available $a[0] = Current Time, $a[1] = Input time1) |
|
| 134 | 132 | * |
| 135 | - * @return int number of days |
|
| 133 | + * @return double number of days |
|
| 136 | 134 | */ |
| 137 | 135 | public static function __vt_time_diffdays($arr) |
| 138 | 136 | { |
@@ -10,6 +10,9 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class VTExpressionParser |
| 12 | 12 | { |
| 13 | + /** |
|
| 14 | + * @param VTExpressionSpaceFilter $tokens |
|
| 15 | + */ |
|
| 13 | 16 | public function __construct($tokens) |
| 14 | 17 | { |
| 15 | 18 | $this->tokens = $tokens; |
@@ -42,6 +45,9 @@ discard block |
||
| 42 | 45 | return $this->tokenQueue[$n - 1]; |
| 43 | 46 | } |
| 44 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $label |
|
| 50 | + */ |
|
| 45 | 51 | public function consume($label, $value) |
| 46 | 52 | { |
| 47 | 53 | $token = $this->nextToken(); |
@@ -51,6 +57,9 @@ discard block |
||
| 51 | 57 | } |
| 52 | 58 | } |
| 53 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $sym |
|
| 62 | + */ |
|
| 54 | 63 | public function consumeSymbol($sym) |
| 55 | 64 | { |
| 56 | 65 | $this->consume('SYMBOL', new VTExpressionSymbol($sym)); |
@@ -63,13 +72,17 @@ discard block |
||
| 63 | 72 | * @param string $label |
| 64 | 73 | * @param string $value |
| 65 | 74 | * |
| 66 | - * @return type |
|
| 75 | + * @return boolean |
|
| 67 | 76 | */ |
| 68 | 77 | public function check(\VTExpressionToken $token, $label, $value) |
| 69 | 78 | { |
| 70 | 79 | return $token->label == $label && $token->value == $value; |
| 71 | 80 | } |
| 72 | 81 | |
| 82 | + /** |
|
| 83 | + * @param VTExpressionTokenizer $token |
|
| 84 | + * @param string $sym |
|
| 85 | + */ |
|
| 73 | 86 | public function checkSymbol($token, $sym) |
| 74 | 87 | { |
| 75 | 88 | return $this->check($token, 'SYMBOL', new VTExpressionSymbol($sym)); |
@@ -158,6 +171,9 @@ discard block |
||
| 158 | 171 | return $this->binOpPrec(count($this->precedence) - 1); |
| 159 | 172 | } |
| 160 | 173 | |
| 174 | + /** |
|
| 175 | + * @param integer $prec |
|
| 176 | + */ |
|
| 161 | 177 | private function binOpPrec($prec) |
| 162 | 178 | { |
| 163 | 179 | if ($prec >= 0) { |
@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | vtlib\Deprecated::relateEntities($recordModel->getEntity(), $moduleName, $recordModel->getId(), 'Calendar', $newRecordModel->getId()); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param Vtiger_Record_Model $recordModel |
|
| 107 | + */ |
|
| 105 | 108 | private function calculateDate($recordModel, $days, $direction, $datefield) |
| 106 | 109 | { |
| 107 | 110 | $baseDate = $recordModel->get($datefield); |
@@ -124,7 +127,7 @@ discard block |
||
| 124 | 127 | * |
| 125 | 128 | * @param type $timeStr |
| 126 | 129 | * |
| 127 | - * @return time |
|
| 130 | + * @return string |
|
| 128 | 131 | */ |
| 129 | 132 | public static function convertToDBFormat($timeStr) |
| 130 | 133 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Get field names. |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function getFieldNames() |
| 30 | 30 | { |