Issue
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
File | Settings
(PhpStorm | Preferences
on macOS)Editor | Code Style | PHP
Wrapping and Braces
tabArray initializer | Align key-value pairs
option
Answered By - LazyOne Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.