Passed
Pull Request — developer (#16217)
by Arkadiusz
23:35 queued 07:06
created
modules/Faq/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'knowledgeBaseArticleLimit' => [
10 10
 		'default' => 50,
11 11
 		'description' => 'Article limit in the knowledge base window',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return $arg && \App\Validator::naturalNumber($arg);
15 15
 		}
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	'defaultViewName' => [
18 18
 		'default' => 'KnowledgeBase',
19 19
 		'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value',
20
-		'validation' => function () {
20
+		'validation' => function() {
21 21
 			$arg = func_get_arg(0);
22 22
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg;
23 23
 		}
Please login to merge, or discard this patch.
app/Fields/TimePeriod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 */
26 26
 	public static function convertToMinutes(string $value): int
27 27
 	{
28
-		[$number,$timePeriod] = explode(':', $value);
28
+		[$number, $timePeriod] = explode(':', $value);
29 29
 		$multiplier = 1;
30 30
 		switch ($timePeriod) {
31 31
 			case 'H':
Please login to merge, or discard this patch.
app/Utils/ServiceContracts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -543,9 +543,9 @@
 block discarded – undo
543 543
 			}
544 544
 			$date->modify('+1 day')->setTime(0, 0, 0);
545 545
 		}
546
-		[$sh,$sm,$ss] = explode(':', $startHour);
547
-		[$eh,$em,$es] = explode(':', $endHour);
548
-		return array_reduce($dates, function ($carry, $item) use ($sh, $sm, $ss, $eh, $em, $es) {
546
+		[$sh, $sm, $ss] = explode(':', $startHour);
547
+		[$eh, $em, $es] = explode(':', $endHour);
548
+		return array_reduce($dates, function($carry, $item) use ($sh, $sm, $ss, $eh, $em, $es) {
549 549
 			$businessStart = (clone $item['start'])->setTime($sh, $sm, $ss);
550 550
 			$businessEnd = (clone $item['end'])->setTime($eh, $em, $es);
551 551
 			$start = ($item['start'] < $businessStart) ? $businessStart : $item['start'];
Please login to merge, or discard this patch.
vtlib/Vtiger/LanguageImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 			$custom => $custom,
80 80
 			$languages => $languages,
81 81
 		]);
82
-		self::register($prefix, $label, null, true, (int)$this->_modulexml->progress);
82
+		self::register($prefix, $label, null, true, (int) $this->_modulexml->progress);
83 83
 		\App\Cache::clear();
84 84
 		\App\Log::trace("Importing $label [$prefix] ... DONE", __METHOD__);
85 85
 	}
Please login to merge, or discard this patch.
modules/OSSTimeControl/textparsers/DetailedList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 		$headerStyle = 'font-size:9px;padding:0px 4px;text-align:center;';
37 37
 		$bodyStyle = 'font-size:8px;border:1px solid #ddd;padding:0px4px;';
38 38
 		$columns = [];
39
-		foreach (['name',  'date_start', 'time_start', 'assigned_user_id', 'sum_time'] as $fieldName) {
39
+		foreach (['name', 'date_start', 'time_start', 'assigned_user_id', 'sum_time'] as $fieldName) {
40 40
 			$fieldModel = $fields[$fieldName];
41 41
 			if (!$fieldModel || !$fieldModel->isActiveField()) {
42 42
 				continue;
Please login to merge, or discard this patch.
modules/Products/relations/GetProducts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 			$moduleModel = $this->relationModel->getParentModuleModel();
42 42
 			$baseTableName = $moduleModel->get('basetable');
43 43
 			$columnFullName = "{$baseTableName}.{$moduleModel->get('basetableid')}";
44
-			$queryGenerator->addJoin(['INNER JOIN',	$tableName,	"{$tableName}.productid = " . $queryGenerator->getColumnName('id')])
44
+			$queryGenerator->addJoin(['INNER JOIN', $tableName, "{$tableName}.productid = " . $queryGenerator->getColumnName('id')])
45 45
 				->addJoin(['INNER JOIN', $baseTableName, "{$columnFullName} = {$tableName}.crmid"])
46 46
 				->addNativeCondition([$columnFullName => $this->relationModel->get('parentRecord')->getId()]);
47 47
 		}
Please login to merge, or discard this patch.
modules/Vtiger/relations/GetManyToMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 		$result = false;
70 70
 		$where = [$referenceInfo['rel'] => $destinationRecordId, $referenceInfo['base'] => $sourceRecordId];
71 71
 		if ($relatedModuleName === $parentModuleName) {
72
-			$where = ['or',	$where,		[$referenceInfo['rel'] => $sourceRecordId, $referenceInfo['base'] => $destinationRecordId]];
72
+			$where = ['or', $where, [$referenceInfo['rel'] => $sourceRecordId, $referenceInfo['base'] => $destinationRecordId]];
73 73
 		}
74 74
 		if (!(new App\Db\Query())->from($referenceInfo['table'])->where($where)->exists()) {
75 75
 			$result = \App\Db::getInstance()->createCommand()->insert($referenceInfo['table'], [
Please login to merge, or discard this patch.
app/TextParser/ProductsTableShortVersion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 				<thead>
48 48
 					<tr>';
49 49
 		$groupModels = [];
50
-		foreach (['ItemNumber', 'Name',  'Quantity', 'UnitPrice', 'TotalPrice', 'GrossPrice']  as $fieldType) {
50
+		foreach (['ItemNumber', 'Name', 'Quantity', 'UnitPrice', 'TotalPrice', 'GrossPrice']  as $fieldType) {
51 51
 			foreach ($inventory->getFieldsByType($fieldType) as $fieldModel) {
52 52
 				$columnName = $fieldModel->getColumnName();
53 53
 				if (!$fieldModel->isVisible()) {
Please login to merge, or discard this patch.
app/Conditions/QueryFields/DateField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 */
73 73
 	public function getArrayValue()
74 74
 	{
75
-		return array_map(function ($row) {
75
+		return array_map(function($row) {
76 76
 			return \current(explode(' ', $row));
77 77
 		}, explode(',', $this->value));
78 78
 	}
Please login to merge, or discard this patch.