old_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Dmitry Tsoy
  # Copyright (c) 2013 Dmitry Tsoy
  #
  # License: MIT
  #
  
  """This module exports the Phpcs plugin class."""
  
  from SublimeLinter.lint import Linter
  
  
  class Phpcs(Linter):
      """Provides an interface to phpcs."""
  
      syntax = ('php', 'html', 'html 5')
      regex = (
          r'.*line="(?P<line>\d+)" '
          r'column="(?P<col>\d+)" '
          r'severity="(?:(?P<error>error)|(?P<warning>warning))" '
          r'message="(?P<message>.*)" source'
      )
      defaults = {
          '--standard=': 'PSR2',
      }
      inline_overrides = ('standard')
      tempfile_suffix = 'php'
  
      def cmd(self):
          """Read cmd from inline settings."""
          settings = Linter.get_view_settings(self)
  
          if 'cmd' in settings:
              command = [settings.get('cmd')]
          else:
              command = ['phpcs']
  
          command.append('--report=checkstyle')
  
          return command
  
new_contents: #
  # linter.py
  # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
  #
  # Written by Dmitry Tsoy
  # Copyright (c) 2013 Dmitry Tsoy
  #
  # License: MIT
  #
  
  """This module exports the Phpcs plugin class."""
  
  from SublimeLinter.lint import Linter
  
  
  class Phpcs(Linter):
      """Provides an interface to phpcs."""
  
      syntax = ('php', 'html', 'html 5')
      cmd = ('phpcs', '--report=checkstyle', '${args}', '-')
      regex = (
          r'.*line="(?P<line>\d+)" '
          r'column="(?P<col>\d+)" '
          r'severity="(?:(?P<error>error)|(?P<warning>warning))" '
          r'message="(?P<message>.*)" source'
      )
      defaults = {
          # we want auto-substitution of the filename, but `cmd` does not support that yet
          '--stdin-path=': '${file}',
          '--standard=': 'PSR2',
      }
  
subject: Update for SL4 (#26)