Passed
Pull Request — developer (#16042)
by Arkadiusz
17:00
created
modules/KnowledgeBase/actions/KnowledgeBaseAjax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
 			return [];
229 229
 		}
230 230
 		$queryGenerator = new \App\QueryGenerator('ModComments');
231
-		$queryGenerator->setFields(['modifiedtime', 'id',	'assigned_user_id', 'commentcontent']);
231
+		$queryGenerator->setFields(['modifiedtime', 'id', 'assigned_user_id', 'commentcontent']);
232 232
 		$queryGenerator->setSourceRecord($recordId);
233 233
 		$queryGenerator->addNativeCondition(['related_to' => $recordId]);
234 234
 		$query = $queryGenerator->createQuery()->orderBy(['id' => SORT_DESC]);
Please login to merge, or discard this patch.
modules/KnowledgeBase/ConfigTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'DEFAULT_VIEW_RECORD' => [
10 10
 		'default' => 'LBL_RECORD_PREVIEW',
11 11
 		'description' => 'Default view for record detail view. Values: LBL_RECORD_DETAILS or LBL_RECORD_SUMMARY',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \in_array($arg, ['LBL_RECORD_PREVIEW', 'LBL_RECORD_SUMMARY', 'LBL_RECORD_DETAILS']);
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
 		}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	'knowledgeBaseArticleLimit' => [
59 59
 		'default' => 50,
60 60
 		'description' => 'Article limit in the knowledge base window',
61
-		'validation' => function () {
61
+		'validation' => function() {
62 62
 			$arg = func_get_arg(0);
63 63
 			return $arg && \App\Validator::naturalNumber($arg);
64 64
 		}
Please login to merge, or discard this patch.
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.