Setting editor PHP for IF and space

Hi,

I have a problem for reformat the code.

phpcs: Line exceeds 150 characters; contains 342 characters

How can i truncate the code with setting Editor ?

But it's not possible, if i do manually

 
if (defined('DB_PREFIX') && defined('DB_SERVER') 
   && defined('DB_NAME') && defined('DB_USER') && defined('DB_PASSWD'))

And reformat the code, the result :

if (defined('DB_PREFIX') && defined('DB_SERVER')
                    && defined('DB_NAME') && defined('DB_USER') && defined('DB_PASSWD')
               )

and have errors :

phpcs: No space expected before last parenthesis "if (... -> )"; 3 found

How to solve my problem ? Thanks

Please sign in to leave a comment.