Skip to content

Commit 0abd570

Browse files
Change some formatting options
1 parent a813a6b commit 0abd570

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ij_xml_text_wrap = normal
4242

4343
[*.php]
4444
ij_continuation_indent_size = 4
45-
ij_php_align_assignments = false
45+
ij_php_align_assignments = true
4646
ij_php_align_class_constants = false
4747
ij_php_align_group_field_declarations = false
4848
ij_php_align_inline_comments = false
@@ -221,7 +221,7 @@ ij_php_spaces_around_multiplicative_operators = true
221221
ij_php_spaces_around_null_coalesce_operator = true
222222
ij_php_spaces_around_relational_operators = true
223223
ij_php_spaces_around_shift_operators = true
224-
ij_php_spaces_around_unary_operator = true
224+
ij_php_spaces_around_unary_operator = false
225225
ij_php_spaces_around_var_within_brackets = false
226226
ij_php_spaces_within_array_initializer_braces = false
227227
ij_php_spaces_within_brackets = false

src/Result/PrinterCli.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ public function __construct(bool $verbose = false, bool $colors = false, bool $d
112112
{
113113
$this->console = new Console;
114114
$this->runtime = new Runtime;
115-
$this->debug = $debug;
115+
$this->debug = $debug;
116116
$this->verbose = $verbose;
117-
$this->colors = $colors && $this->console->hasColorSupport();
117+
$this->colors = $colors && $this->console->hasColorSupport();
118118
}
119119

120120
/**
@@ -194,7 +194,7 @@ public function write($buffer): void
194194
*/
195195
public function onBackupStart(Event\Backup\Start $event): void
196196
{
197-
$this->numBackups ++;
197+
$this->numBackups++;
198198
if ($this->debug) {
199199
$backup = $event->getConfiguration();
200200
$this->writeWithAsterisk('backup: [' . $backup->getSource()->type . '] ');
@@ -257,7 +257,7 @@ public function onBackupEnd(Event\Backup\End $event): void
257257
*/
258258
public function onCheckStart(Event\Check\Start $event): void
259259
{
260-
$this->numChecks ++;
260+
$this->numChecks++;
261261
if ($this->debug) {
262262
$check = $event->getConfiguration();
263263
$this->writeWithAsterisk('check: [' . $check->type . '] ');
@@ -298,7 +298,7 @@ public function onCheckEnd(Event\Check\End $event): void
298298
*/
299299
public function onCryptStart(Event\Crypt\Start $event): void
300300
{
301-
$this->numCrypts ++;
301+
$this->numCrypts++;
302302
if ($this->debug) {
303303
$crypt = $event->getConfiguration();
304304
$this->writeWithAsterisk('crypt: [' . $crypt->type . '] ');
@@ -348,7 +348,7 @@ public function onCryptEnd(Event\Crypt\End $event): void
348348
*/
349349
public function onSyncStart(Event\Sync\Start $event): void
350350
{
351-
$this->numSyncs ++;
351+
$this->numSyncs++;
352352
if ($this->debug) {
353353
$sync = $event->getConfiguration();
354354
$this->writeWithAsterisk('sync: [' . $sync->type . '] ');
@@ -398,7 +398,7 @@ public function onSyncEnd(Event\Sync\End $event): void
398398
*/
399399
public function onCleanupStart(Event\Cleanup\Start $event): void
400400
{
401-
$this->numCleanups ++;
401+
$this->numCleanups++;
402402
if ($this->debug) {
403403
$cleanup = $event->getConfiguration();
404404
$this->writeWithAsterisk('cleanup: [' . $cleanup->type . '] ');
@@ -567,16 +567,16 @@ protected function printBackupVerbose(Result\Backup $backup): void
567567
);
568568
}
569569
$chExecuted = str_pad($backup->checkCount(), 8, ' ', STR_PAD_LEFT);
570-
$chFailed = str_pad($backup->checkCountFailed(), 6, ' ', STR_PAD_LEFT);
570+
$chFailed = str_pad($backup->checkCountFailed(), 6, ' ', STR_PAD_LEFT);
571571
$crExecuted = str_pad($backup->cryptCount(), 8, ' ', STR_PAD_LEFT);
572-
$crSkipped = str_pad($backup->cryptCountSkipped(), 7, ' ', STR_PAD_LEFT);
573-
$crFailed = str_pad($backup->cryptCountFailed(), 6, ' ', STR_PAD_LEFT);
572+
$crSkipped = str_pad($backup->cryptCountSkipped(), 7, ' ', STR_PAD_LEFT);
573+
$crFailed = str_pad($backup->cryptCountFailed(), 6, ' ', STR_PAD_LEFT);
574574
$syExecuted = str_pad($backup->syncCount(), 8, ' ', STR_PAD_LEFT);
575-
$sySkipped = str_pad($backup->syncCountSkipped(), 7, ' ', STR_PAD_LEFT);
576-
$syFailed = str_pad($backup->syncCountFailed(), 6, ' ', STR_PAD_LEFT);
575+
$sySkipped = str_pad($backup->syncCountSkipped(), 7, ' ', STR_PAD_LEFT);
576+
$syFailed = str_pad($backup->syncCountFailed(), 6, ' ', STR_PAD_LEFT);
577577
$clExecuted = str_pad($backup->cleanupCount(), 8, ' ', STR_PAD_LEFT);
578-
$clSkipped = str_pad($backup->cleanupCountSkipped(), 7, ' ', STR_PAD_LEFT);
579-
$clFailed = str_pad($backup->cleanupCountFailed(), 6, ' ', STR_PAD_LEFT);
578+
$clSkipped = str_pad($backup->cleanupCountSkipped(), 7, ' ', STR_PAD_LEFT);
579+
$clFailed = str_pad($backup->cleanupCountFailed(), 6, ' ', STR_PAD_LEFT);
580580

581581
$out = PHP_EOL . ' | executed | skipped | failed |' . PHP_EOL
582582
. '----------+----------+---------+--------+' . PHP_EOL

0 commit comments

Comments
 (0)