@@ -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 | { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * @param string[] $relatedData |
86 | 86 | * @param string $fieldValue |
87 | 87 | * |
88 | - * @return bool |
|
88 | + * @return false|null |
|
89 | 89 | */ |
90 | 90 | private function updateRecords($recordModel, $relatedData, $fieldValue) |
91 | 91 | { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Retrieve a task from the database. |
84 | 84 | * |
85 | - * @param $taskId The id of the task to retrieve |
|
85 | + * @param integer $taskId The id of the task to retrieve |
|
86 | 86 | * |
87 | 87 | * @return VTTask The retrieved task |
88 | 88 | */ |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * Return all tasks. |
145 | 145 | * |
146 | - * @return array |
|
146 | + * @return VTTask[] |
|
147 | 147 | */ |
148 | 148 | public function getTasks() |
149 | 149 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * Queue a task for execution. |
18 | 18 | * |
19 | 19 | * @param $taskId The id of the task to queue |
20 | - * @param $entityId The id of the crm entity the task is assiciated with |
|
20 | + * @param integer $entityId The id of the crm entity the task is assiciated with |
|
21 | 21 | * @param $when The time after which the task should be executed. This is |
22 | 22 | * an optional value with a default value of 0 |
23 | 23 | */ |