@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * Get last cron time param. |
125 | 125 | * |
126 | - * @return array |
|
126 | + * @return string |
|
127 | 127 | */ |
128 | 128 | public function getLastCronTime() |
129 | 129 | { |
@@ -102,6 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * Sets library name. |
105 | + * @param string $name |
|
105 | 106 | */ |
106 | 107 | public function setLibraryName($name) |
107 | 108 | { |
@@ -118,6 +119,7 @@ discard block |
||
118 | 119 | |
119 | 120 | /** |
120 | 121 | * Sets the template id. |
122 | + * @param integer $id |
|
121 | 123 | */ |
122 | 124 | public function setTemplateId($id) |
123 | 125 | { |
@@ -134,6 +136,7 @@ discard block |
||
134 | 136 | |
135 | 137 | /** |
136 | 138 | * Sets the record id. |
139 | + * @param integer $id |
|
137 | 140 | */ |
138 | 141 | public function setRecordId($id) |
139 | 142 | { |
@@ -150,6 +153,7 @@ discard block |
||
150 | 153 | |
151 | 154 | /** |
152 | 155 | * Sets module name. |
156 | + * @param string $name |
|
153 | 157 | */ |
154 | 158 | public function setModuleName($name) |
155 | 159 | { |
@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | return new self($map); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param integer $mapId |
|
44 | + */ |
|
42 | 45 | public static function markAsDeleted($mapId) |
43 | 46 | { |
44 | 47 | \App\Db::getInstance() |
@@ -57,6 +60,9 @@ discard block |
||
57 | 60 | return $this->map; |
58 | 61 | } |
59 | 62 | |
63 | + /** |
|
64 | + * @param string $key |
|
65 | + */ |
|
60 | 66 | public function getValue($key) |
61 | 67 | { |
62 | 68 | return $this->map[$key]; |
@@ -91,6 +97,9 @@ discard block |
||
91 | 97 | } |
92 | 98 | } |
93 | 99 | |
100 | + /** |
|
101 | + * @param string $moduleName |
|
102 | + */ |
|
94 | 103 | public static function getAllByModule($moduleName) |
95 | 104 | { |
96 | 105 | $dataReader = (new App\Db\Query())->from(self::$tableName) |
@@ -110,9 +110,6 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** Function used to add the tax type which will do database alterations |
113 | - * @param string $taxlabel - tax label name to be added |
|
114 | - * @param string $taxvalue - tax value to be added |
|
115 | - * @param string $sh - sh or empty , if sh passed then the tax will be added in shipping and handling related table |
|
116 | 113 | */ |
117 | 114 | public function add() |
118 | 115 | { |
@@ -168,6 +165,9 @@ discard block |
||
168 | 165 | throw new Error('Error occurred while deleting value'); |
169 | 166 | } |
170 | 167 | |
168 | + /** |
|
169 | + * @param string $type |
|
170 | + */ |
|
171 | 171 | public static function getDataAll($type) |
172 | 172 | { |
173 | 173 | $recordList = []; |
@@ -38,7 +38,8 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * set the value to the data. |
40 | 40 | * |
41 | - * @param type $value ,$key |
|
41 | + * @param integer $value ,$key |
|
42 | + * @param string $key |
|
42 | 43 | */ |
43 | 44 | public function set($key, $value) |
44 | 45 | { |
@@ -195,6 +196,7 @@ discard block |
||
195 | 196 | |
196 | 197 | /** |
197 | 198 | * Helper function to check the status value. |
199 | + * @param integer $value |
|
198 | 200 | */ |
199 | 201 | public function statusEqual($value) |
200 | 202 | { |
@@ -271,7 +273,7 @@ discard block |
||
271 | 273 | /** |
272 | 274 | * Mark this instance as finished. |
273 | 275 | * |
274 | - * @return int |
|
276 | + * @return Cron |
|
275 | 277 | */ |
276 | 278 | public function markFinished() |
277 | 279 | { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function addIndirectPoint(float $lat, float $lon) |
75 | 75 | { |
76 | - $this->indirectPoints[]= ['lat' => $lat, 'lon' => $lon]; |
|
76 | + $this->indirectPoints[] = ['lat' => $lat, 'lon' => $lon]; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -254,6 +254,8 @@ |
||
254 | 254 | |
255 | 255 | /** |
256 | 256 | * {@inheritdoc} |
257 | + * @param integer $left |
|
258 | + * @param integer $top |
|
257 | 259 | */ |
258 | 260 | public function setMargins($left, $top, $right = -1, $keepmargins = false) |
259 | 261 | { |
@@ -297,14 +297,14 @@ |
||
297 | 297 | if (!empty($this->watermark['image']['path'])) { |
298 | 298 | $this->Image( |
299 | 299 | $this->watermark['image']['path'], // filename |
300 | - 0, // x |
|
301 | - $this->tMargin, // y |
|
300 | + 0, // x |
|
301 | + $this->tMargin, // y |
|
302 | 302 | $this->watermark['image']['width'], // width |
303 | 303 | $this->watermark['image']['height'], // height |
304 | 304 | '', // type jpg png |
305 | 305 | '', // url link |
306 | 306 | 'M', // align |
307 | - true,// resize |
|
307 | + true, // resize |
|
308 | 308 | 300, // dpi |
309 | 309 | 'C', // palign |
310 | 310 | false, // is mask |
@@ -49,7 +49,6 @@ |
||
49 | 49 | /** |
50 | 50 | * Checking whether social media are available for the record. |
51 | 51 | * |
52 | - * @param \Vtiger_Record_Model $recordModel |
|
53 | 52 | * |
54 | 53 | * @return bool |
55 | 54 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Get query for list records. |
67 | 67 | * |
68 | - * @param string|string[] $twitterLogin |
|
68 | + * @param string[] $twitterLogin |
|
69 | 69 | * |
70 | 70 | * @return \App\Db\Query |
71 | 71 | */ |