Passed
Push — developer ( c9d396...8e0a17 )
by Błażej
90:59 queued 76:12
created
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.
app/Controller/Modal.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 *
59 59
 	 * @param \App\Request $request
60 60
 	 *
61
-	 * @return \Vtiger_JsScript_Model[]
61
+	 * @return Vtiger_JsScript_Model[]
62 62
 	 */
63 63
 	public function getModalScripts(\App\Request $request)
64 64
 	{
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 *
75 75
 	 * @param \App\Request $request
76 76
 	 *
77
-	 * @return \Vtiger_CssScript_Model[]
77
+	 * @return Vtiger_CssScript_Model[]
78 78
 	 */
79 79
 	public function getModalCss(\App\Request $request)
80 80
 	{
Please login to merge, or discard this patch.
modules/Products/models/Record.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,6 +221,9 @@  discard block
 block discarded – undo
221 221
 		return $status;
222 222
 	}
223 223
 
224
+	/**
225
+	 * @param integer $productId
226
+	 */
224 227
 	public function getPriceDetailsForProduct($productId, $unitPrice, $available = 'available', $itemType = 'Products')
225 228
 	{
226 229
 		\App\Log::trace('Entering into function getPriceDetailsForProduct(' . $productId . ')');
@@ -351,7 +354,7 @@  discard block
 block discarded – undo
351 354
 	/**
352 355
 	 * The function decide about mandatory save record.
353 356
 	 *
354
-	 * @return type
357
+	 * @return boolean
355 358
 	 */
356 359
 	public function isMandatorySave()
357 360
 	{
Please login to merge, or discard this patch.
modules/Vtiger/dashboards/ChartFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 		$widget = Vtiger_Widget_Model::getInstanceWithWidgetId($widgetId, \App\User::getCurrentUserId());
23 23
 		$chartFilterWidgetModel = Vtiger_ChartFilter_Model::getInstance();
24 24
 		$chartFilterWidgetModel->setWidgetModel($widget);
25
-		$additionalFilterFields= $chartFilterWidgetModel->getAdditionalFiltersFields();
25
+		$additionalFilterFields = $chartFilterWidgetModel->getAdditionalFiltersFields();
26 26
 		$viewer->assign('WIDGET', $widget);
27 27
 		$viewer->assign('MODULE_NAME', $moduleName);
28 28
 		$viewer->assign('CHART_MODEL', $chartFilterWidgetModel);
Please login to merge, or discard this patch.