@@ -41,6 +41,7 @@ |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * {@inheritdoc} |
44 | + * @param string $columnName |
|
44 | 45 | */ |
45 | 46 | public function validate($value, $columnName, $isUserFormat = false) |
46 | 47 | { |
@@ -41,6 +41,7 @@ |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * {@inheritdoc} |
44 | + * @param string $columnName |
|
44 | 45 | */ |
45 | 46 | public function validate($value, $columnName, $isUserFormat = false) |
46 | 47 | { |
@@ -50,6 +50,8 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * {@inheritdoc} |
53 | + * @param integer $value |
|
54 | + * @param string $columnName |
|
53 | 55 | */ |
54 | 56 | public function validate($value, $columnName, $isUserFormat = false) |
55 | 57 | { |
@@ -50,6 +50,8 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * {@inheritdoc} |
53 | + * @param integer $value |
|
54 | + * @param string $columnName |
|
53 | 55 | */ |
54 | 56 | public function validate($value, $columnName, $isUserFormat = false) |
55 | 57 | { |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | \App\Cache::clearOpcache(); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $location |
|
50 | + */ |
|
48 | 51 | public function initializeDatabase($location, $filesName = []) |
49 | 52 | { |
50 | 53 | try { |
@@ -113,6 +116,9 @@ discard block |
||
113 | 116 | \App\UserPrivilegesFile::createUserPrivilegesfile(1); |
114 | 117 | } |
115 | 118 | |
119 | + /** |
|
120 | + * @param string $query |
|
121 | + */ |
|
116 | 122 | public function splitQueries($query) |
117 | 123 | { |
118 | 124 | $buffer = []; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | private function findOutStartDates(&$node) |
280 | 280 | { |
281 | 281 | $maxTimeStampValue = 2147483647; |
282 | - $firstDate = $this->iterateNodes($node, $maxTimeStampValue, function (&$child, $firstDate) { |
|
282 | + $firstDate = $this->iterateNodes($node, $maxTimeStampValue, function(&$child, $firstDate) { |
|
283 | 283 | if (!empty($child['start_date']) && $child['start_date'] !== '1970-01-01') { |
284 | 284 | $taskStartDate = strtotime($child['start_date']); |
285 | 285 | if ($taskStartDate < $firstDate && $taskStartDate > 0) { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | $node['start'] = $firstDate * 1000; |
298 | 298 | } |
299 | 299 | // iterate one more time setting up empty dates |
300 | - $this->iterateNodes($node, $firstDate, function (&$child, $firstDate) { |
|
300 | + $this->iterateNodes($node, $firstDate, function(&$child, $firstDate) { |
|
301 | 301 | if (empty($child['start_date']) || $child['start_date'] === '1970-01-01') { |
302 | 302 | $child['start_date'] = date('Y-m-d', $firstDate); |
303 | 303 | $child['start'] = $firstDate * 1000; |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | */ |
317 | 317 | private function findOutEndDates(&$node) |
318 | 318 | { |
319 | - $lastDate = $this->iterateNodes($node, 0, function (&$child, $lastDate) { |
|
319 | + $lastDate = $this->iterateNodes($node, 0, function(&$child, $lastDate) { |
|
320 | 320 | if (!empty($child['start_date']) && $child['start_date'] !== '1970-01-01') { |
321 | 321 | $taskDate = strtotime($child['end_date']); |
322 | 322 | if ($taskDate > $lastDate) { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | $node['end'] = $lastDate * 1000; |
334 | 334 | } |
335 | 335 | // iterate one more time setting up empty dates |
336 | - $this->iterateNodes($node, $lastDate, function (&$child, $lastDate) { |
|
336 | + $this->iterateNodes($node, $lastDate, function(&$child, $lastDate) { |
|
337 | 337 | if (empty($child['end_date'])) { |
338 | 338 | $child['end_date'] = date('Y-m-d', $lastDate); |
339 | 339 | $child['end'] = $lastDate * 1000; |
@@ -548,7 +548,7 @@ |
||
548 | 548 | /** |
549 | 549 | * Get project data to display in view as gantt. |
550 | 550 | * |
551 | - * @param int|string $id |
|
551 | + * @param integer $id |
|
552 | 552 | * |
553 | 553 | * @return array - projects,milestones,tasks |
554 | 554 | */ |
@@ -106,7 +106,7 @@ |
||
106 | 106 | * |
107 | 107 | * @param \App\Request $request |
108 | 108 | * |
109 | - * @return bool |
|
109 | + * @return boolean|null |
|
110 | 110 | */ |
111 | 111 | public function login(\App\Request $request) |
112 | 112 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * |
61 | 61 | * @param \App\Request $request |
62 | 62 | * |
63 | - * @return array - List of Vtiger_JsScript_Model instances |
|
63 | + * @return App\Controller\Vtiger_JsScript_Model[] - List of Vtiger_JsScript_Model instances |
|
64 | 64 | */ |
65 | 65 | public function getModalScripts(\App\Request $request) |
66 | 66 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * @param string $v2 |
61 | 61 | * @param string $operator |
62 | 62 | * |
63 | - * @return mixed |
|
63 | + * @return boolean |
|
64 | 64 | */ |
65 | 65 | public static function compare($v1, $v2, $operator = '==') |
66 | 66 | { |