#NEWLINE# def execute( self , path ) : #NEWLINE# #INDENT# args = [ ] #NEWLINE# if ( ( pref . phpcs_php_prefix_path != '' ) and ( self . __class__ . __name__ in pref . phpcs_commands_to_php_prefix ) ) : #NEWLINE# #INDENT# args = [ pref . phpcs_php_prefix_path ] #NEWLINE# #UNINDENT# if ( pref . php_cs_fixer_executable_path != '' ) : #NEWLINE# #INDENT# if ( len ( args ) > 0 ) : #NEWLINE# #INDENT# args . append ( pref . php_cs_fixer_executable_path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args = [ pref . php_cs_fixer_executable_path ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# debug_message ( 'php_cs_fixer_executable_path is not set, therefore cannot execute' ) #NEWLINE# sublime . error_message ( 'The "php_cs_fixer_executable_path" is not set, therefore cannot execute this command' ) #NEWLINE# return #NEWLINE# #UNINDENT# args . append ( 'fix' ) #NEWLINE# args . append ( os . path . normpath ( path ) ) #NEWLINE# args . append ( '--verbose' ) #NEWLINE# for ( key , value ) in pref . php_cs_fixer_additional_args . items ( ) : #NEWLINE# #INDENT# arg = key #NEWLINE# if ( value != '' ) : #NEWLINE# #INDENT# arg += ( '=' + value ) #NEWLINE# #UNINDENT# args . append ( arg ) #NEWLINE# #UNINDENT# self . parse_report ( args )