@@ -31,7 +31,7 @@ |
||
31 | 31 | * The function gets the value of the module. |
32 | 32 | * |
33 | 33 | * @param string $module |
34 | - * @param array $varname |
|
34 | + * @param string $varname |
|
35 | 35 | * |
36 | 36 | * @return array |
37 | 37 | */ |
@@ -136,12 +136,12 @@ |
||
136 | 136 | * Populate the entity fields with the lead info. |
137 | 137 | * If mandatory field is not provided populate with '????'. |
138 | 138 | * |
139 | - * @param array $entityvalue |
|
139 | + * @param string $entityvalue |
|
140 | 140 | * @param string $entity |
141 | 141 | * @param Vtiger_Record_Model $recordModel |
142 | 142 | * @param string $leadinfo |
143 | 143 | * |
144 | - * @return entity array |
|
144 | + * @return string array |
|
145 | 145 | */ |
146 | 146 | public static function vtwsPopulateConvertLeadEntities($entityvalue, $entity, Vtiger_Record_Model $recordModel, $leadinfo) |
147 | 147 | { |
@@ -206,9 +206,9 @@ |
||
206 | 206 | /** |
207 | 207 | * Function used to transfer all the lead related records to given Entity(Contact/Account) record. |
208 | 208 | * |
209 | - * @param $leadid - leadid |
|
209 | + * @param integer $leadid - leadid |
|
210 | 210 | * @param $relatedid - related entity id (contactid/accountid) |
211 | - * @param $setype - related module(Accounts/Contacts) |
|
211 | + * @param string $setype - related module(Accounts/Contacts) |
|
212 | 212 | */ |
213 | 213 | public static function vtwsTransferLeadRelatedRecords($leadId, $relatedId, $seType) |
214 | 214 | { |
@@ -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 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * |
17 | 17 | * @param array $linkParams |
18 | 18 | * |
19 | - * @return array - Associative array of Link type to List of Vtiger_Link_Model instances for Mass Actions |
|
19 | + * @return Vtiger_Link_Model[] - Associative array of Link type to List of Vtiger_Link_Model instances for Mass Actions |
|
20 | 20 | */ |
21 | 21 | public function getListViewMassActions($linkParams) |
22 | 22 | { |
@@ -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 | { |
@@ -147,7 +147,7 @@ |
||
147 | 147 | * |
148 | 148 | * @param Vtiger_Paging_Model $pagingModel |
149 | 149 | * |
150 | - * @return array - Associative array of record id mapped to Vtiger_Record_Model instance |
|
150 | + * @return Vtiger_Record_Model[] - Associative array of record id mapped to Vtiger_Record_Model instance |
|
151 | 151 | */ |
152 | 152 | public function getListViewEntries(Vtiger_Paging_Model $pagingModel) |
153 | 153 | { |
@@ -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) { |