src/diacronos/Lilo/Lilo.php
/**
	 * Find sprockets directives.
	 * @static
	 * @access  public
     * @param   string  $filecontent
     * @return  array	the directives founded
     */
Find sprockets directives.
@static
@access  public
@param   string  $filecontent
@return  array   the directives founded
Find sprockets directives . @static @access public @param string $filecontent @return array the directives founded
static public function parseDirectives($filecontent)
	{
		$filecontent = preg_replace('/[\r\t ]+$/m', '\n', $filecontent);
		if (preg_match(self::HEADER, $filecontent, $matches) == 0) {
			return array();
		}
		$header = $matches[0];
		preg_match_all(self::DIRECTIVE, $header, $results);
		return $results[1];
	}
static public function parseDirectives ( $ filecontent ) { $ filecontent = preg_replace ( '/[\r\t ]+$/m' , '\n' , $ filecontent ) ; if ( preg_match ( self :: HEADER , $ filecontent , $ matches ) == 0 ) { return array ( ) ; } $ header = $ matches [ 0 ] ; preg_match_all ( self :: DIRECTIVE , $ header , $ results ) ; return $ results [ 1 ] ; }
Find sprockets directives.
Find sprockets directives .