Skip to content

Commit dd232b1

Browse files
minor #61373 chore: PHP CS Fixer - heredoc indentation as of PHP 7.3 (keradus)
This PR was merged into the 7.4 branch. Discussion ---------- chore: PHP CS Fixer - heredoc indentation as of PHP 7.3 | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix CS <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT inspired by symfony/symfony@06e22b0#r2265021821 [Possible since PHP 7.3](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc) with love by [PHP Coding Standards Fixer](https://cs.symfony.com/) Commits ------- 4a25a6a5785 chore: heredoc indentation as of PHP 7.3
2 parents bed20f5 + cc6cb8a commit dd232b1

35 files changed

+3207
-3207
lines changed

Caster/FFICaster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ private static function castFFIStringValue(CData $data): string|CutStub
116116
{
117117
$result = [];
118118
$ffi = \FFI::cdef(<<<C
119-
size_t zend_get_page_size(void);
120-
C);
119+
size_t zend_get_page_size(void);
120+
C);
121121

122122
$pageSize = $ffi->zend_get_page_size();
123123

Command/Descriptor/HtmlDescriptor.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,24 @@ public function describe(OutputInterface $output, Data $data, array $context, in
7070
]);
7171

7272
$output->writeln(<<<HTML
73-
<article data-dedup-id="$dedupIdentifier">
74-
<header>
75-
<div class="row">
76-
<h2 class="col">$title</h2>
77-
<time class="col text-small" title="$isoDate" datetime="$isoDate">
78-
{$this->extractDate($context)}
79-
</time>
80-
</div>
81-
{$this->renderTags($tags)}
82-
</header>
83-
<section class="body">
84-
<p class="text-small">
85-
$sourceDescription
86-
</p>
87-
{$this->dumper->dump($data, true)}
88-
</section>
89-
</article>
90-
HTML
73+
<article data-dedup-id="$dedupIdentifier">
74+
<header>
75+
<div class="row">
76+
<h2 class="col">$title</h2>
77+
<time class="col text-small" title="$isoDate" datetime="$isoDate">
78+
{$this->extractDate($context)}
79+
</time>
80+
</div>
81+
{$this->renderTags($tags)}
82+
</header>
83+
<section class="body">
84+
<p class="text-small">
85+
$sourceDescription
86+
</p>
87+
{$this->dumper->dump($data, true)}
88+
</section>
89+
</article>
90+
HTML
9191
);
9292
}
9393

@@ -108,11 +108,11 @@ private function renderTags(array $tags): string
108108
}
109109

110110
return <<<HTML
111-
<div class="row">
112-
<ul class="tags">
113-
$renderedTags
114-
</ul>
115-
</div>
116-
HTML;
111+
<div class="row">
112+
<ul class="tags">
113+
$renderedTags
114+
</ul>
115+
</div>
116+
HTML;
117117
}
118118
}

Command/ServerDumpCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ protected function configure(): void
5858
$this
5959
->addOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format (%s)', implode(', ', $this->getAvailableFormats())), 'cli')
6060
->setHelp(<<<'EOF'
61-
<info>%command.name%</info> starts a dump server that collects and displays
62-
dumps in a single place for debugging you application:
61+
<info>%command.name%</info> starts a dump server that collects and displays
62+
dumps in a single place for debugging you application:
6363
64-
<info>php %command.full_name%</info>
64+
<info>php %command.full_name%</info>
6565
66-
You can consult dumped data in HTML format in your browser by providing the <comment>--format=html</comment> option
67-
and redirecting the output to a file:
66+
You can consult dumped data in HTML format in your browser by providing the <comment>--format=html</comment> option
67+
and redirecting the output to a file:
6868
69-
<info>php %command.full_name% --format="html" > dump.html</info>
69+
<info>php %command.full_name% --format="html" > dump.html</info>
7070

71-
EOF
71+
EOF
7272
)
7373
;
7474
}

0 commit comments

Comments
 (0)