Skip to content

Commit

Permalink
Revert a change in the code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 13, 2023
1 parent 17be1b3 commit 669e442
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Fixer/AssertEqualsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
public function testFoo(): void
{
$obj = new Foo();
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/CaseCommentIndentationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
switch {
// First case
case 1:
Expand Down
2 changes: 2 additions & 0 deletions src/Fixer/ExpectsWithCallbackFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
public function testFoo(): void
{
$foo = $this->createMock(Foo::class);
Expand All @@ -47,6 +48,7 @@ function () {
new CodeSample(
<<<'EOT'
<?php
public function testFoo(): void
{
$foo = $this->createMock(Foo::class);
Expand Down
3 changes: 3 additions & 0 deletions src/Fixer/FunctionCallWithMultilineArrayFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
myFunction([
"foo" => "Foo",
"bar" => "Bar",
Expand All @@ -48,6 +49,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
myFunction($foo, [
"foo" => "Foo",
"bar" => "Bar",
Expand All @@ -57,6 +59,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
myFunction(
$foo,
[
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/InlinePhpdocCommentFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
public function testFoo(): void
{
/** @var string $str */
Expand Down
2 changes: 2 additions & 0 deletions src/Fixer/IsArrayNotEmptyFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
if (!empty($array) && is_array($array)) {
}
EOT,
),
new CodeSample(
<<<'EOT'
<?php
if (isset($array) && is_array($array)) {
}
EOT,
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/MockMethodChainingIndentationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
use PHPUnit\Framework\TestCase;
class SomeTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/MultiLineIfIndentationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
class Foo
{
public function bar(array $array): void
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/MultiLineLambdaFunctionArgumentsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
$array = array_map(
static function ($i) {
return $i;
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/NoExpectsThisAnyFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
use PHPUnit\Framework\TestCase;
class SomeTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/NoLineBreakBetweenMethodArgumentsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
class Foo
{
public function bar(FooService $fooService, BarService $barService, array $options = [], Logger $logger = null): void
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/SingleLineConfigureCommandFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
Expand Down
1 change: 1 addition & 0 deletions src/Fixer/TypeHintOrderFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function getDefinition(): FixerDefinitionInterface
new CodeSample(
<<<'EOT'
<?php
class Foo
{
public function __construct(
Expand Down

0 comments on commit 669e442

Please sign in to comment.