Answer the question
In order to leave comments, you need to log in
Auto format padding in associative arrays in PHPStorm
I can't find this feature at all.
Now like this:
return json_encode(array(
'messages' => array(
'username' => $validator->messages()->first('username'),
'email' => $validator->messages()->first('email'),
'password' => $validator->messages()->first('password'),
)
));
return json_encode(array(
'messages' => array(
'username' => $validator->messages()->first('username'),
'email' => $validator->messages()->first('email'),
'password' => $validator->messages()->first('password'),
)
));
Answer the question
In order to leave comments, you need to log in
PHPStorm 7
Preferences (or Settings) > Project Settings section > Code Style item > PHP sub item > Other tab > Align key-value pairs checkbox
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question