Skip to content

[CS] Indent heredoc blocks #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
EOF,
'location' => 'after_open',
],
'heredoc_indentation' => true,
'heredoc_to_nowdoc' => true,
'is_null' => true,
'list_syntax' => [
'syntax' => 'short',
Expand Down
40 changes: 20 additions & 20 deletions tests/ParallelizationIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ public function test_it_can_run_the_command_without_sub_processes(): void

self::assertSame(
<<<'EOF'
Processing 2 movies in segments of 2, batches of 50, 1 round, 1 batch in 1 process
Processing 2 movies in segments of 2, batches of 50, 1 round, 1 batch in 1 process

0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB

Processed 2 movies.
Processed 2 movies.

EOF
EOF
,
$actual,
'Expected logs to be identical'
Expand All @@ -96,14 +96,14 @@ public function test_it_can_run_the_command_with_a_single_sub_processes(): void

self::assertSame(
<<<'EOF'
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process

0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB

Processed 2 movies.
Processed 2 movies.

EOF
EOF
,
$actual,
'Expected logs to be identical'
Expand All @@ -124,14 +124,14 @@ public function test_it_can_run_the_command_with_multiple_processes(): void

self::assertSame(
<<<'EOF'
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 2 processes
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 2 processes

0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB

Processed 2 movies.
Processed 2 movies.

EOF
EOF
,
$actual,
'Expected logs to be identical'
Expand All @@ -152,14 +152,14 @@ public function test_it_can_run_the_command_with_one_process_as_child_process():

self::assertSame(
<<<'EOF'
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process
Processing 2 movies in segments of 50, batches of 50, 1 round, 1 batch in 1 process

0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB
0/2 [>---------------------------] 0% < 1 sec/< 1 sec 10.0 MiB
2/2 [============================] 100% < 1 sec/< 1 sec 10.0 MiB

Processed 2 movies.
Processed 2 movies.

EOF
EOF
,
$actual,
'Expected logs to be identical'
Expand Down