original_string: public static function clearDeletedInstances() {
  		if( !isset(static::$instances[static::getClass()]) ) {
  			return;
  		}
  		$instances = &static::$instances[static::getClass()];
  		foreach( $instances as $id => $obj ) {
  			/* @var static $obj */
  			if( $obj->isDeleted() ) {
  				unset($instances[$id]);
  			}
  		}
  	}
code: public static function clearDeletedInstances() {
  		if( !isset(static::$instances[static::getClass()]) ) {
  			return;
  		}
  		$instances = &static::$instances[static::getClass()];
  		foreach( $instances as $id => $obj ) {
  			/* @var static $obj */
  			if( $obj->isDeleted() ) {
  				unset($instances[$id]);
  			}
  		}
  	}
code_tokens: public static function clearDeletedInstances ( ) { if ( ! isset ( static :: $ instances [ static :: getClass ( ) ] ) ) { return ; } $ instances = & static :: $ instances [ static :: getClass ( ) ] ; foreach ( $ instances as $ id => $ obj ) { /* @var static $obj */ if ( $ obj -> isDeleted ( ) ) { unset ( $ instances [ $ id ] ) ; } } }
docstring: Remove deleted instances from cache
docstring_tokens: Remove deleted instances from cache