@staticmethod
    def instance(view, allow_new=True):
        view_id = view.id()
        if view_id not in PhpcsCommand.instances:
            if not allow_new:
                return False
            PhpcsCommand.instances[view_id] = PhpcsCommand(view)
        return PhpcsCommand.instances[view_id]
Return the last-used instance for a given view.
dataset/ETHPy150Open benmatselby/sublime-phpcs/phpcs.py/PhpcsCommand.instance