#NEWLINE# def run( self , path , event = None ) : #NEWLINE# #INDENT# self . event = event #NEWLINE# self . checkstyle_reports = [ ] #NEWLINE# self . report = [ ] #NEWLINE# if ( event != 'on_save' ) : #NEWLINE# #INDENT# if pref . phpcs_linter_run : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Linter' , Linter ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if pref . phpcs_sniffer_run : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Sniffer' , Sniffer ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if pref . phpmd_run : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'MessDetector' , MessDetector ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if pref . scheck_run : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Scheck' , Scheck ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( pref . phpcs_linter_command_on_save and pref . phpcs_linter_run ) : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Linter' , Linter ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if ( pref . phpcs_command_on_save and pref . phpcs_sniffer_run ) : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Sniffer' , Sniffer ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if ( pref . phpmd_command_on_save and pref . phpmd_run ) : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'MessDetector' , MessDetector ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# if ( pref . scheck_command_on_save and pref . scheck_run ) : #NEWLINE# #INDENT# self . checkstyle_reports . append ( [ 'Scheck' , Scheck ( ) . get_errors ( path ) , 'dot' ] ) #NEWLINE# #UNINDENT# #UNINDENT# sublime . set_timeout ( path . generate , 0 )