module PhpCop
  # The CLI is a class responsible of handling all the command line interface
  # logic
  class CLI
    attr_reader :options, :config_store

    def initialize
      @options = {}
      @config_store = ConfigStore.new
    end

    # Run all files
    def run(_args = ARGV)
      runner = PhpCop::Runner.new
      puts format('%s fichier traité. %s erreurs.',
                  runner.count_files, runner.count_errors)
    end
  end
end

module PhpCop
  # The CLI is a class responsible of handling all the command line interface
  # logic
  class CLI
    attr_reader :options, :config_store

    MSG_END = '%s fichier traité. %s erreurs.'.freeze

    def initialize
      @options = {}
      @config_store = ConfigStore.new
    end

    # Run all files
    def run(_args = ARGV)
      runner = PhpCop::Runner.new
      puts format(MSG_END, runner.count_files, runner.count_errors)
    end
  end
end

Use constant for final message
Use constant for final message
