Passed
Push — developer ( 418633...1ee7e4 )
by Mariusz
37:21 queued 18:10
created
modules/Vtiger/models/Widget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -637,10 +637,10 @@
 block discarded – undo
637 637
 			'or',
638 638
 			['like', 'position', "\"$fingerPrint\""],
639 639
 			['like', 'size', "\"$fingerPrint\""],
640
-		], )->createCommand()->query();
640
+		],)->createCommand()->query();
641 641
 
642 642
 		$createCommand = \App\Db::getInstance()->createCommand();
643
-		while (['id' => $id,'position' => $position,'size' => $size] = $dataReader->read()) {
643
+		while (['id' => $id, 'position' => $position, 'size' => $size] = $dataReader->read()) {
644 644
 			$position = $position ? Json::decode($position) : [];
645 645
 			if (isset($position[$fingerPrint])) {
646 646
 				unset($position[$fingerPrint]);
Please login to merge, or discard this patch.
app/RecordCollectors/NorthData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
 	 */
216 216
 	private function parseData(array $data): array
217 217
 	{
218
-		unset($data['northDataUrl'],$data['id']);
218
+		unset($data['northDataUrl'], $data['id']);
219 219
 		$data['address']['country'] = \App\Fields\Country::getCountryName($data['address']['country']);
220 220
 		if (isset($data['segmentCodes']['isic'])) {
221 221
 			$data['segmentCodes']['isic'] = implode(', ', $data['segmentCodes']['isic']);
Please login to merge, or discard this patch.
modules/OSSMail/ConfigTemplate.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'imap_host' => [
10 10
 		'default' => ['ssl://imap.gmail.com:993' => 'ssl://imap.gmail.com:993'],
11 11
 		'description' => 'Default host.',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			if (!$arg) {
15 15
 				return false;
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 			}
23 23
 			return true;
24 24
 		},
25
-		'sanitization' => function () {
25
+		'sanitization' => function() {
26 26
 			$values = func_get_arg(0);
27 27
 			if (!\is_array($values)) {
28 28
 				$values = [$values];
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	'smtp_host' => [
39 39
 		'default' => 'ssl://smtp.gmail.com:465',
40 40
 		'description' => 'Name of SMTP server',
41
-		'validation' => function () {
41
+		'validation' => function() {
42 42
 			$arg = func_get_arg(0);
43 43
 			return $arg && \App\Validator::url($arg);
44 44
 		},
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	'username_domain' => [
48 48
 		'default' => 'gmail.com',
49 49
 		'description' => 'User name domain',
50
-		'validation' => function () {
50
+		'validation' => function() {
51 51
 			$arg = func_get_arg(0);
52 52
 			return '' === $arg || \App\Validator::domain($arg);
53 53
 		}
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	'smtp_user' => [
72 72
 		'default' => '%u',
73 73
 		'description' => 'Login to SMTP server',
74
-		'validation' => function () {
74
+		'validation' => function() {
75 75
 			$arg = func_get_arg(0);
76 76
 			return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg);
77 77
 		},
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	'smtp_pass' => [
81 81
 		'default' => '%p',
82 82
 		'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login",
83
-		'validation' => function () {
83
+		'validation' => function() {
84 84
 			$arg = func_get_arg(0);
85 85
 			return !empty($arg) && 256 > \App\TextUtils::getTextLength($arg);
86 86
 		}
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	'language' => [
89 89
 		'default' => 'en_US',
90 90
 		'description' => 'Set default language',
91
-		'validation' => function () {
91
+		'validation' => function() {
92 92
 			$arg = func_get_arg(0);
93 93
 			return $arg && \in_array($arg, \Settings_OSSMail_Config_Model::LANGUAGES);
94 94
 		}
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
 	'skin_logo' => [
97 97
 		'default' => '/images/null.png',
98 98
 		'description' => 'Skin logo',
99
-		'validation' => function () {
99
+		'validation' => function() {
100 100
 			$arg = func_get_arg(0);
101 101
 			return !empty($arg) && \App\Purifier::purify($arg);
102 102
 		},
103
-		'sanitization' => function () {
103
+		'sanitization' => function() {
104 104
 			$arg = func_get_arg(0);
105 105
 			return ['*' => \App\Purifier::encodeHtml($arg)];
106 106
 		}
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	'identities_level' => [
121 121
 		'default' => 0,
122 122
 		'description' => 'Identities level.',
123
-		'validation' => function () {
123
+		'validation' => function() {
124 124
 			$arg = func_get_arg(0);
125 125
 			return is_numeric($arg) && \in_array($arg, [0, 1, 2, 3, 4]);
126 126
 		},
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 	'useragent' => [
334 334
 		'default' => 'YetiForce Webmail',
335 335
 		'description' => 'Add this user-agent to message headers when sending',
336
-		'validation' => function () {
336
+		'validation' => function() {
337 337
 			$arg = func_get_arg(0);
338 338
 			return $arg && \App\Purifier::purify($arg);
339 339
 		},
Please login to merge, or discard this patch.
app/Fields/ServerAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 				'linkicon' => ($isActive ? 'yfi-share-portal-record' : 'yfi-unshare-portal-record'),
62 62
 				'linkclass' => 'js-action-confirm btn-sm ' . self::BTN_CLASS[$source][$isActive],
63 63
 				'dataUrl' => "index.php?module={$recordModel->getModuleName()}&action=SaveAjax&record={$recordModel->getId()}&field={$fieldName}&value=" . ($isActive ? 0 : 1),
64
-				'linkdata' => ['add-btn-icon' => 1,	'source-view' => $source],
64
+				'linkdata' => ['add-btn-icon' => 1, 'source-view' => $source],
65 65
 			]);
66 66
 		} else {
67 67
 			$return = \Vtiger_Link_Model::getInstanceFromValues([
Please login to merge, or discard this patch.
modules/API/models/CalDAV.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 		\App\Log::trace('Start', __METHOD__);
228 228
 		$query = (new \App\Db\Query())->select([
229 229
 			'dav_calendarobjects.*',
230
-			'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype',	'assigned_user_id' => 'vtiger_crmentity.smownerid',
230
+			'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype', 'assigned_user_id' => 'vtiger_crmentity.smownerid',
231 231
 			'vtiger_crmentity.crmid', 'vtiger_crmentity.deleted', 'vtiger_activity.visibility'
232 232
 		])->from('dav_calendarobjects')
233 233
 			->leftJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = dav_calendarobjects.crmid')
Please login to merge, or discard this patch.
modules/ModComments/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
 	'defaultSource' => [
10 10
 		'default' => ['current'],
11 11
 		'description' => "Default record loading.\nValues available: ['current', 'related'].",
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \is_array($arg) && !array_diff($arg, ['current', 'related']);
15 15
 		},
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	'dateFormat' => [
19 19
 		'default' => 'user',
20 20
 		'description' => "Date display mode in comments, values available: \n`user` -  based on user settings, the view_date_format field \n`displayDate` - date and time in user format.",
21
-		'validation' => function () {
21
+		'validation' => function() {
22 22
 			$arg = func_get_arg(0);
23 23
 			return \is_array($arg) && !array_diff($arg, ['user', 'displayDate']);
24 24
 		},
Please login to merge, or discard this patch.
modules/OpenStreetMap/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	'mapModules' => [
16 16
 		'default' => ['Accounts', 'Contacts', 'Competition', 'Vendors', 'Partners', 'Leads', 'Locations'],
17 17
 		'description' => 'Allow modules.',
18
-		'validation' => function () {
18
+		'validation' => function() {
19 19
 			$arg = func_get_arg(0);
20 20
 			return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
21 21
 		},
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			'Locations' => ['subject', 'email']
33 33
 		],
34 34
 		'description' => 'List of fields from which to show information in the map pin',
35
-		'validation' => function () {
35
+		'validation' => function() {
36 36
 			$arg = func_get_arg(0);
37 37
 			return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
38 38
 		},
Please login to merge, or discard this patch.
app/Db/Importer.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -680,7 +680,7 @@
 block discarded – undo
680 680
 							$this->logs .= "done    ({$time}s)\n";
681 681
 							$tableSchema = $schema->getTableSchema($tableName, true);
682 682
 							$columnExists = isset($tableSchema->columns[$columnName]);
683
-						}elseif (!$columnExists && 1 !== $mode) {
683
+						} elseif (!$columnExists && 1 !== $mode) {
684 684
 							$this->logs .= "  > add column: $tableName:$columnName ... ";
685 685
 							$start = microtime(true);
686 686
 							$dbCommand->addColumn($tableName, $columnName, $column)->execute();
Please login to merge, or discard this patch.
app/Installer/Developer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function generateSwagger(string $path = self::PATH): string
31 31
 	{
32
-		set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
32
+		set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
33 33
 			$errorString = \App\ErrorHandler::error2string($errNo);
34 34
 			$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
35 35
 			echo "<pre>$msg</pre><hr>";
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public static function generateSwaggerByType(string $type, string $path = self::PATH, $errorHandler = true): string
54 54
 	{
55 55
 		if ($errorHandler) {
56
-			set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
56
+			set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
57 57
 				$errorString = \App\ErrorHandler::error2string($errNo);
58 58
 				$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
59 59
 				echo "<pre>$msg</pre><hr>";
Please login to merge, or discard this patch.