Passed
Push — developer ( 418633...1ee7e4 )
by Mariusz
37:21 queued 18:10
created
modules/Accounts/ConfigTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		'default' => 50,
16 16
 		'description' => 'Max depth of hierarchy',
17 17
 		'validation' => '\App\Validator::naturalNumber',
18
-		'sanitization' => function () {
18
+		'sanitization' => function() {
19 19
 			return (int) func_get_arg(0);
20 20
 		},
21 21
 	],
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	'defaultViewName' => [
35 35
 		'default' => 'List',
36 36
 		'description' => 'Default module view. Values: List, ListPreview, DashBoard or Tiles, refresh menu files after you change this value',
37
-		'validation' => function () {
37
+		'validation' => function() {
38 38
 			$arg = func_get_arg(0);
39 39
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'Tiles' === $arg;
40 40
 		},
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	'defaultDetailViewName' => [
43 43
 		'default' => 'full',
44 44
 		'description' => 'Default record view for list preview. Values: full or summary',
45
-		'validation' => function () {
45
+		'validation' => function() {
46 46
 			$arg = func_get_arg(0);
47 47
 			return 'full' === $arg || 'summary' === $arg;
48 48
 		},
Please login to merge, or discard this patch.
app/Integrations/Dav/Calendar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 		$separator = '-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-';
286 286
 		$value = (string) $this->vcomponent->{$davName};
287 287
 		if (false !== strpos($value, $separator)) {
288
-			[$html,$text] = explode($separator, $value, 2);
288
+			[$html, $text] = explode($separator, $value, 2);
289 289
 			$value = trim(strip_tags($html)) . "\n" . \trim(\str_replace($separator, '', $text));
290 290
 		} else {
291 291
 			$value = trim(\str_replace('\n', PHP_EOL, $value));
@@ -448,14 +448,14 @@  discard block
 block discarded – undo
448 448
 			$currentUser = \App\User::getCurrentUserModel();
449 449
 			$userTimeZone = new \DateTimeZone($currentUser->getDetail('time_zone'));
450 450
 			$sysTimeZone = new \DateTimeZone(\App\Fields\DateTime::getTimeZone());
451
-			[$hour , $minute] = explode(':', $currentUser->getDetail('start_hour'));
451
+			[$hour, $minute] = explode(':', $currentUser->getDetail('start_hour'));
452 452
 			$date = new \DateTime('now', $userTimeZone);
453 453
 			$date->setTime($hour, $minute);
454 454
 			$date->setTimezone($sysTimeZone);
455 455
 			$timeStart = $date->format('H:i:s');
456 456
 
457 457
 			$date->setTimezone($userTimeZone);
458
-			[$hour , $minute] = explode(':', $currentUser->getDetail('end_hour'));
458
+			[$hour, $minute] = explode(':', $currentUser->getDetail('end_hour'));
459 459
 			$date->setTime($hour, $minute);
460 460
 			$date->setTimezone($sysTimeZone);
461 461
 			$timeEnd = $date->format('H:i:s');
Please login to merge, or discard this patch.
modules/Settings/ConfigEditor/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
 	public function getFieldInstanceByName($name)
151 151
 	{
152 152
 		$moduleName = $this->getName(true);
153
-		$params = ['uitype' => 7, 'column' => $name, 'name' => $name,  'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main'];
153
+		$params = ['uitype' => 7, 'column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main'];
154 154
 		switch ($name) {
155 155
 			case 'MAX_NUMBER_EXPORT_RECORDS':
156 156
 				$params['label'] = $this->performanceFields[$name];
Please login to merge, or discard this patch.
modules/CustomView/actions/Save.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
 		}
80 80
 		$customViewData['columnslist'] = $selectedColumnsList;
81 81
 		$customFieldNames = $request->getArray('customFieldNames', 'Text');
82
-		array_walk($customFieldNames, function (&$customLabel) {
82
+		array_walk($customFieldNames, function(&$customLabel) {
83 83
 			$customLabel = \App\Purifier::decodeHtml(trim($customLabel));
84 84
 		});
85 85
 		$customViewData['customFieldNames'] = $customFieldNames;
Please login to merge, or discard this patch.
modules/Settings/PickListDependency/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 			$dataReader = (new App\Db\Query())->from('s_#__picklist_dependency_data')->where(['id' => $this->getId()])->createCommand()->query();
145 145
 			$this->mapping = [];
146 146
 			while ($row = $dataReader->read()) {
147
-				['source_id' => $sourceId,'conditions' => $conditions] = $row;
147
+				['source_id' => $sourceId, 'conditions' => $conditions] = $row;
148 148
 				$this->mapping[$sourceId] = $conditions;
149 149
 			}
150 150
 			$dataReader->close();
Please login to merge, or discard this patch.
modules/MailIntegration/ConfigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 	'modulesListQuickCreate' => [
11 11
 		'default' => [],
12 12
 		'description' => 'Quick creation of records in the module list',
13
-		'validation' => function () {
13
+		'validation' => function() {
14 14
 			$arg = func_get_arg(0);
15 15
 			return \is_array($arg) && !array_diff($arg, App\Module::getAllModuleNames());
16 16
 		}
Please login to merge, or discard this patch.
app/RecordCollectors/Helper/GusClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	public function endSession()
172 172
 	{
173 173
 		if (empty($this->register)) {
174
-			register_shutdown_function(function () {
174
+			register_shutdown_function(function() {
175 175
 				try {
176 176
 					$header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'Action', $this->getAddressToAction('Wyloguj'), 0);
177 177
 					$header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'To', self::CONFIG['addressToService'], 0);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 		if (!$vatId && !$taxNumber && !$ncr) {
224 224
 			return [];
225 225
 		}
226
-		$response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId,  'Krs' => $ncr, 'Regon' => $taxNumber]]);
226
+		$response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]);
227 227
 		foreach ($response as &$info) {
228 228
 			$this->getAdvanceData($info);
229 229
 		}
Please login to merge, or discard this patch.
app/Conditions/QueryFields/DoubleField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 			foreach (static::$extendedOperators as $exo) {
31 31
 				if (false !== strpos($valueToCondition, $exo) && false === $operatorWasFound) {
32 32
 					$ev = explode($exo, $valueToCondition);
33
-					$condition[] = [$exo, $this->getColumnName(),  $ev[1]];
33
+					$condition[] = [$exo, $this->getColumnName(), $ev[1]];
34 34
 					$conditionFound = true;
35 35
 					$operatorWasFound = true;
36 36
 				}
Please login to merge, or discard this patch.
app/Integrations/Wapro/Synchronizer/Invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
 			$currencyId = $this->convertCurrency($this->row['SYM_WAL'], []);
237 237
 		}
238 238
 		$currencyParam = \App\Json::encode($this->getCurrencyParam($currencyId));
239
-		$dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO',  'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL'])
239
+		$dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL'])
240 240
 			->from('dbo.POZYCJA_DOKUMENTU_MAGAZYNOWEGO')
241 241
 			->where(['ID_DOK_HANDLOWEGO' => $this->waproId])
242 242
 			->createCommand($this->controller->getDb())->query();
Please login to merge, or discard this patch.