Test Setup Failed
Pull Request — developer (#17250)
by Arkadiusz
16:07
created
app/Integrations/Comarch/Synchronizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -464,7 +464,7 @@
 block discarded – undo
464 464
 	public function addToQueue(string $type, int $id): void
465 465
 	{
466 466
 		$data = ['server_id' => $this->config->get('id'),
467
-			'name' => $this->name, 'type' => $type,	'value' => $id,
467
+			'name' => $this->name, 'type' => $type, 'value' => $id,
468 468
 		];
469 469
 		$db = \App\Db::getInstance('admin');
470 470
 		if ((new \App\Db\Query())->from(\App\Integrations\Comarch::QUEUE_TABLE_NAME)
Please login to merge, or discard this patch.
app/Db/Fixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@
 block discarded – undo
256 256
 				\App\Log::trace("Updated: {$field['tablename']}.{$field['columnname']} |maximumlength:  before:{$field['maximumlength']} after: $range |type:{$type}|{$column->type}|{$column->dbType}", __METHOD__);
257 257
 			}
258 258
 		}
259
-		return ['NotSupported' => $notSupported, 'TypeNotFound' => $typeNotFound, 'RequiresVerification' => $requiresVerification, 'RequiresVerificationInfo' => $requiresVerificationInfo,  'Updated' => $updated, 'UpdatedInfo' => $updatedInfo];
259
+		return ['NotSupported' => $notSupported, 'TypeNotFound' => $typeNotFound, 'RequiresVerification' => $requiresVerification, 'RequiresVerificationInfo' => $requiresVerificationInfo, 'Updated' => $updated, 'UpdatedInfo' => $updatedInfo];
260 260
 	}
261 261
 
262 262
 	/**
Please login to merge, or discard this patch.
app/SystemWarnings/Integrations/Comarch.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -17,41 +17,41 @@
 block discarded – undo
17 17
  */
18 18
 class Comarch extends \App\SystemWarnings\Template
19 19
 {
20
-    /** {@inheritdoc} */
21
-    protected $title = 'LBL_CHECK_COMARCH_INTEGRATION_LOG';
20
+	/** {@inheritdoc} */
21
+	protected $title = 'LBL_CHECK_COMARCH_INTEGRATION_LOG';
22 22
 
23
-    /**
24
-     * Checks for suspended email accounts.
25
-     *
26
-     * @return void
27
-     */
28
-    public function process(): void
29
-    {
30
-        $db = \App\DB::getInstance('log');
31
-        if(!$db->isTableExists(\App\Integrations\Comarch::LOG_TABLE_NAME)) {
32
-            $this->status = 1;
33
-            return;
34
-        }
35
-        $data = (new \App\Db\Query())->select(['time', 'message'])->from(\App\Integrations\Comarch::LOG_TABLE_NAME)
36
-            ->where([
37
-                'and',
38
-                ['error' => 1],
39
-                ['>=', 'time', date('Y-m-d H:i:s', strtotime('-24 hours'))]
40
-            ])->orderBy(['id' => SORT_DESC])
41
-            ->all($db);
42
-        if ($data) {
43
-            $this->status = 0;
44
-            $this->description = \App\Language::translate('LBL_CHECK_COMARCH_INTEGRATION_LOG_DESC', 'Settings:SystemWarnings');
45
-            $this->description .= '<br>' . \App\TextUtils::getHtmlTable($data, [
46
-                'time' => \App\Language::translate('LBL_TIME', 'Settings:Log'),
47
-                'message' => \App\Language::translate('LBL_MESSAGE', 'Settings:Comarch')
48
-            ]);
49
-            if (\App\Security\AdminAccess::isPermitted('Log')) {
50
-                $this->link = 'index.php?parent=Settings&module=Log&view=LogsViewer&type=mail';
51
-                $this->linkTitle = \App\Language::translate('LBL_LOGS_VIEWER', 'Settings:Log');
52
-            }
53
-        } else {
54
-            $this->status = 1;
55
-        }
56
-    }
23
+	/**
24
+	 * Checks for suspended email accounts.
25
+	 *
26
+	 * @return void
27
+	 */
28
+	public function process(): void
29
+	{
30
+		$db = \App\DB::getInstance('log');
31
+		if(!$db->isTableExists(\App\Integrations\Comarch::LOG_TABLE_NAME)) {
32
+			$this->status = 1;
33
+			return;
34
+		}
35
+		$data = (new \App\Db\Query())->select(['time', 'message'])->from(\App\Integrations\Comarch::LOG_TABLE_NAME)
36
+			->where([
37
+				'and',
38
+				['error' => 1],
39
+				['>=', 'time', date('Y-m-d H:i:s', strtotime('-24 hours'))]
40
+			])->orderBy(['id' => SORT_DESC])
41
+			->all($db);
42
+		if ($data) {
43
+			$this->status = 0;
44
+			$this->description = \App\Language::translate('LBL_CHECK_COMARCH_INTEGRATION_LOG_DESC', 'Settings:SystemWarnings');
45
+			$this->description .= '<br>' . \App\TextUtils::getHtmlTable($data, [
46
+				'time' => \App\Language::translate('LBL_TIME', 'Settings:Log'),
47
+				'message' => \App\Language::translate('LBL_MESSAGE', 'Settings:Comarch')
48
+			]);
49
+			if (\App\Security\AdminAccess::isPermitted('Log')) {
50
+				$this->link = 'index.php?parent=Settings&module=Log&view=LogsViewer&type=mail';
51
+				$this->linkTitle = \App\Language::translate('LBL_LOGS_VIEWER', 'Settings:Log');
52
+			}
53
+		} else {
54
+			$this->status = 1;
55
+		}
56
+	}
57 57
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function process(): void
29 29
     {
30 30
         $db = \App\DB::getInstance('log');
31
-        if(!$db->isTableExists(\App\Integrations\Comarch::LOG_TABLE_NAME)) {
31
+        if (!$db->isTableExists(\App\Integrations\Comarch::LOG_TABLE_NAME)) {
32 32
             $this->status = 1;
33 33
             return;
34 34
         }
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
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
 		$separator = '-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-';
715 715
 		$value = (string) $this->vcomponent->{$davName};
716 716
 		if (false !== strpos($value, $separator)) {
717
-			[$html,$text] = explode($separator, $value, 2);
717
+			[$html, $text] = explode($separator, $value, 2);
718 718
 			$value = trim(strip_tags($html)) . "\n" . trim(str_replace($separator, '', $text));
719 719
 		} else {
720 720
 			$value = trim(str_replace('\n', PHP_EOL, $value));
@@ -877,14 +877,14 @@  discard block
 block discarded – undo
877 877
 			$currentUser = \App\User::getCurrentUserModel();
878 878
 			$userTimeZone = new \DateTimeZone($currentUser->getDetail('time_zone'));
879 879
 			$sysTimeZone = new \DateTimeZone(\App\Fields\DateTime::getTimeZone());
880
-			[$hour , $minute] = explode(':', $currentUser->getDetail('start_hour'));
880
+			[$hour, $minute] = explode(':', $currentUser->getDetail('start_hour'));
881 881
 			$date = new \DateTime('now', $userTimeZone);
882 882
 			$date->setTime($hour, $minute);
883 883
 			$date->setTimezone($sysTimeZone);
884 884
 			$timeStart = $date->format('H:i:s');
885 885
 
886 886
 			$date->setTimezone($userTimeZone);
887
-			[$hour , $minute] = explode(':', $currentUser->getDetail('end_hour'));
887
+			[$hour, $minute] = explode(':', $currentUser->getDetail('end_hour'));
888 888
 			$date->setTime($hour, $minute);
889 889
 			$date->setTimezone($sysTimeZone);
890 890
 			$timeEnd = $date->format('H:i:s');
Please login to merge, or discard this patch.
app/Fields/RecordNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 		$data = ['cur_sequence' => $actualSequence];
180 180
 		$this->set('cur_sequence', $actualSequence);
181 181
 		if ($value = $this->getRelatedValue()) {
182
-			$dbCommand->upsert('u_#__modentity_sequences', ['tabid' => $this->get('tabid'),	'value' => $value,	'cur_id' => $reqNo], ['cur_id' => $reqNo])->execute();
182
+			$dbCommand->upsert('u_#__modentity_sequences', ['tabid' => $this->get('tabid'), 'value' => $value, 'cur_id' => $reqNo], ['cur_id' => $reqNo])->execute();
183 183
 		} else {
184 184
 			$data['cur_id'] = $reqNo;
185 185
 			$this->set('cur_id', $reqNo);
Please login to merge, or discard this patch.
app/AutoAssign.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@
 block discarded – undo
349 349
 		if ($this->get('working_hours')) {
350 350
 			$currentTime = date('H:i');
351 351
 			$queryGenerator->addNativeCondition(['<=', $queryGenerator->getColumnName('start_hour'), $currentTime])
352
-				->addNativeCondition(['>',  $queryGenerator->getColumnName('end_hour'), $currentTime]);
352
+				->addNativeCondition(['>', $queryGenerator->getColumnName('end_hour'), $currentTime]);
353 353
 		}
354 354
 		$columnName = $queryGenerator->getColumnName('id');
355 355
 
Please login to merge, or discard this patch.