Skip to content
New issue

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

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

Already on GitHub? # to your account

Add Rule: type_declaration_spaces #194

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

Jubeki
Copy link
Contributor

@Jubeki Jubeki commented Jul 6, 2023

PHP-CS-Fixer Rule: type_declaration_spaces

With the given configuration this will change it like this (Taken from the PHP-CS-Fixer Page):

--- Original
+++ New
 <?php
 class Bar
 {
-    private string    $a;
-    private bool   $b;
+    private string $a;
+    private bool $b;

-    public function __invoke(array   $c) {}
+    public function __invoke(array $c) {}
 }

@driesvints driesvints requested a review from nunomaduro July 6, 2023 08:15
@taylorotwell taylorotwell merged commit 8622fea into laravel:main Jul 7, 2023
@Jubeki Jubeki deleted the add-rule/type_declaration_spaces branch July 9, 2023 13:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants