'How to change PHP code style in PhpStorm IDE?
I'm using Laravel framework. I want to change the default code style format from this:
return [
'name' => 'required|min:4|string',
'email' => 'required|email|unique:users,email',
'password' => 'required|min:4|confirmed',
'password-confirmation' => 'required|min:4'
];
to this:
return [
'name' => 'required|min:4|string',
'email' => 'required|email|unique:users,email',
'password' => 'required|min:4|confirmed',
'password-confirmation' => 'required|min:4'
];
I did a lot of searches in PhpStorm settings but I couldn't find the solution.
Solution 1:[1]
File | Settings(PhpStorm | Preferenceson macOS)Editor | Code Style | PHPWrapping and BracestabArray initializer | Align key-value pairsoption
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | LazyOne |

