Completed
Push — developer ( f778f3...8830e0 )
by Błażej
51:25 queued 38:36
created
modules/Vtiger/models/MiniList.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	protected $searchParams = [];
27 27
 
28
+	/**
29
+	 * @param Vtiger_Widget_Model $widgetModel
30
+	 */
28 31
 	public function setWidgetModel($widgetModel)
29 32
 	{
30 33
 		$this->widgetModel = $widgetModel;
@@ -54,6 +57,9 @@  discard block
 block discarded – undo
54 57
 		return $this->extraData['module'];
55 58
 	}
56 59
 
60
+	/**
61
+	 * @return string[]
62
+	 */
57 63
 	public function getTargetFields()
58 64
 	{
59 65
 		$fields = $this->extraData['fields'];
Please login to merge, or discard this patch.
modules/Vtiger/files/MultiImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		}
43 43
 		$recordModel = Vtiger_Record_Model::getInstanceById($request->getInteger('record'), $request->getModule());
44 44
 		$key = $request->getByType('key', 2);
45
-		$value =  \App\Json::decode($recordModel->get($request->getByType('field', 2)));
45
+		$value = \App\Json::decode($recordModel->get($request->getByType('field', 2)));
46 46
 		foreach ($value as $item) {
47 47
 			if ($item['key'] === $key) {
48 48
 				$file = \App\Fields\File::loadFromInfo([
Please login to merge, or discard this patch.
config/csrf_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	{
18 18
 		//Override the default expire time of token
19 19
 		\CsrfMagic\Csrf::$expires = 259200;
20
-		\CsrfMagic\Csrf::$callback = function ($tokens) {
20
+		\CsrfMagic\Csrf::$callback = function($tokens) {
21 21
 			throw new \App\Exceptions\AppException('Invalid request - Response For Illegal Access');
22 22
 		};
23 23
 		$js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js';
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/MultiImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 		if (!is_array($value)) {
124 124
 			return '';
125 125
 		}
126
-		$value = array_map(function ($v) {
126
+		$value = array_map(function($v) {
127 127
 			return $v['name'];
128 128
 		}, $value);
129 129
 		$result = implode(', ', $value);
Please login to merge, or discard this patch.
app/Encryption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 	 */
190 190
 	public static function getMethods()
191 191
 	{
192
-		return array_filter(openssl_get_cipher_methods(), function ($methodName) {
192
+		return array_filter(openssl_get_cipher_methods(), function($methodName) {
193 193
 			return stripos($methodName, 'gcm') === false && stripos($methodName, 'ccm') === false;
194 194
 		});
195 195
 	}
Please login to merge, or discard this patch.
modules/Settings/Vtiger/views/LibraryLicense.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 				$result = true;
54 54
 				$fileContent = file_get_contents($filePath);
55 55
 			} else {
56
-				$result =false;
56
+				$result = false;
57 57
 			}
58 58
 		}
59 59
 
Please login to merge, or discard this patch.
modules/Settings/Vtiger/views/LibraryMoreInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		} else {
40 40
 			if ($request->getByType('type', 1) === 'public') {
41 41
 				$dir = ROOT_DIRECTORY . DIRECTORY_SEPARATOR . 'public_html' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR;
42
-				$libraryName =$request->getByType('libraryName', 'Text');
42
+				$libraryName = $request->getByType('libraryName', 'Text');
43 43
 				foreach ($this->packageFiles as $file) {
44 44
 					$packageFile = $dir . $libraryName . DIRECTORY_SEPARATOR . $file;
45 45
 					if ($fileContent) {
Please login to merge, or discard this patch.
modules/com_vtiger_workflow/Workflow.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	/**
205 205
 	 * Sets next trigger time.
206 206
 	 *
207
-	 * @param timestamp $time
207
+	 * @param string|null $time
208 208
 	 */
209 209
 	public function setNextTriggerTime($time)
210 210
 	{
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 *
280 280
 	 * @global string $default_timezone
281 281
 	 *
282
-	 * @return timestamp
282
+	 * @return string|null
283 283
 	 */
284 284
 	public function getNextTriggerTime()
285 285
 	{
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
 	/**
327 327
 	 * get next trigger time for daily.
328 328
 	 *
329
-	 * @param type $schTime
329
+	 * @param type $scheduledTime
330 330
 	 *
331
-	 * @return time
331
+	 * @return string
332 332
 	 */
333 333
 	public function getNextTriggerTimeForDaily($scheduledTime)
334 334
 	{
@@ -346,10 +346,10 @@  discard block
 block discarded – undo
346 346
 	/**
347 347
 	 * get next trigger Time For weekly.
348 348
 	 *
349
-	 * @param json $scheduledDaysOfWeek
349
+	 * @param integer $scheduledDaysOfWeek
350 350
 	 * @param time $scheduledTime
351 351
 	 *
352
-	 * @return time
352
+	 * @return string
353 353
 	 */
354 354
 	public function getNextTriggerTimeForWeekly($scheduledDaysOfWeek, $scheduledTime)
355 355
 	{
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 	 * @param int $scheduledDayOfMonth
411 411
 	 * @param int $scheduledTime
412 412
 	 *
413
-	 * @return time
413
+	 * @return string
414 414
 	 */
415 415
 	public function getNextTriggerTimeForMonthlyByDate($scheduledDayOfMonth, $scheduledTime)
416 416
 	{
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
 	 * @param int       $scheduledWeekDayOfMonth
461 461
 	 * @param timestamp $scheduledTime
462 462
 	 *
463
-	 * @return time
463
+	 * @return string
464 464
 	 */
465 465
 	public function getNextTriggerTimeForMonthlyByWeekDay($scheduledWeekDayOfMonth, $scheduledTime)
466 466
 	{
@@ -485,10 +485,10 @@  discard block
 block discarded – undo
485 485
 	/**
486 486
 	 * to get next trigger time.
487 487
 	 *
488
-	 * @param json      $annualDates
488
+	 * @param boolean      $annualDates
489 489
 	 * @param timestamp $scheduledTime
490 490
 	 *
491
-	 * @return time
491
+	 * @return string
492 492
 	 */
493 493
 	public function getNextTriggerTimeForAnnualDates($annualDates, $scheduledTime)
494 494
 	{
Please login to merge, or discard this patch.
modules/Vtiger/helpers/AdvancedFilter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@
 block discarded – undo
165 165
 		return $wfCondition;
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string|boolean $moduleName
170
+	 */
168 171
 	public static function getDateFilter($moduleName)
169 172
 	{
170 173
 		foreach (\App\CustomView::getDateFilterTypes() as $comparatorKey => $comparatorInfo) {
Please login to merge, or discard this patch.