public static function getRenderingStrategy($php)
	{
		$renderings = self::getStringRenderings($php);

		// Keep string rendering where possible, use PHP rendering wherever else
		foreach (self::getQuickRendering($php) as $i => $phpRendering)
		{
			if (!isset($renderings[$i]) || strpos($phpRendering, '$this->attributes[]') !== false)
			{
				$renderings[$i] = ['php', $phpRendering];
			}
		}

		return $renderings;
	}
public static function getRenderingStrategy($php)
	{
		$renderings = self::getStringRenderings($php);

		// Keep string rendering where possible, use PHP rendering wherever else
		foreach (self::getQuickRendering($php) as $i => $phpRendering)
		{
			if (!isset($renderings[$i]) || strpos($phpRendering, '$this->attributes[]') !== false)
			{
				$renderings[$i] = ['php', $phpRendering];
			}
		}

		return $renderings;
	}
public static function getRenderingStrategy ( $ php ) { $ renderings = self :: getStringRenderings ( $ php ) ; // Keep string rendering where possible, use PHP rendering wherever else foreach ( self :: getQuickRendering ( $ php ) as $ i => $ phpRendering ) { if ( ! isset ( $ renderings [ $ i ] ) || strpos ( $ phpRendering , '$this->attributes[]' ) !== false ) { $ renderings [ $ i ] = [ 'php' , $ phpRendering ] ; } } return $ renderings ; }
Compute the rendering strategy for a compiled template

@param  string  $php Template compiled for the PHP renderer
@return array[]      An array containing 0 to 2 pairs of [<rendering type>, <replacement>]
Compute the rendering strategy for a compiled template