Skip to content

Fix incorrect formatting after use statements #6980#6981

Merged
junichi11 merged 1 commit intoapache:php-nb22-featuresfrom
junichi11:php-gh-6980-incorrect-formatting
Jan 21, 2024
Merged

Fix incorrect formatting after use statements #6980#6981
junichi11 merged 1 commit intoapache:php-nb22-featuresfrom
junichi11:php-gh-6980-incorrect-formatting

Conversation

@junichi11
Copy link
Member

Example:

<?php
namespace {
    use Vendor\Class1;
    $test = 1;
}

Before:

<?php

namespace {

    use Vendor\Class1;

$test = 1;
}

After:

<?php

namespace {

    use Vendor\Class1;

    $test = 1;
}

- apache#6980
- Fix the below case
- Add unit tests

Example:

```php
<?php
namespace {
    use Vendor\Class1;
    $test = 1;
}
```

Before:

```php
<?php

namespace {

    use Vendor\Class1;

$test = 1;
}
```

After:

```php
<?php

namespace {

    use Vendor\Class1;

    $test = 1;
}
```
@junichi11 junichi11 added the PHP [ci] enable extra PHP tests (php/php.editor) label Jan 21, 2024
@junichi11 junichi11 added this to the NB22 milestone Jan 21, 2024
@junichi11 junichi11 changed the base branch from master to php-nb22-features January 21, 2024 05:18
@junichi11 junichi11 linked an issue Jan 21, 2024 that may be closed by this pull request
@junichi11 junichi11 requested a review from tmysik January 21, 2024 09:02
Copy link
Member

@tmysik tmysik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@junichi11 junichi11 merged commit 35a83e0 into apache:php-nb22-features Jan 21, 2024
@junichi11 junichi11 deleted the php-gh-6980-incorrect-formatting branch January 21, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PHP [ci] enable extra PHP tests (php/php.editor)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong indentation after use statements

2 participants