Skip to content

Add Rule: type_declaration_spaces#194

Merged
taylorotwell merged 1 commit into
laravel:mainfrom
Jubeki:add-rule/type_declaration_spaces
Jul 7, 2023
Merged

Add Rule: type_declaration_spaces#194
taylorotwell merged 1 commit into
laravel:mainfrom
Jubeki:add-rule/type_declaration_spaces

Conversation

@Jubeki

@Jubeki Jubeki commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants