protected function extractTypeFromComment($comment)
    {
        if (preg_match('/^(.*)\(FridgeType::([a-zA-Z0-9]+)\)$/', $comment, $matches)) {
            if (empty($matches[1])) {
                $matches[1] = null;
            }

            return array($matches[1], strtolower($matches[2]));
        }

        return array($comment, null);
    }
protected function extractTypeFromComment($comment)
    {
        if (preg_match('/^(.*)\(FridgeType::([a-zA-Z0-9]+)\)$/', $comment, $matches)) {
            if (empty($matches[1])) {
                $matches[1] = null;
            }

            return array($matches[1], strtolower($matches[2]));
        }

        return array($comment, null);
    }
protected function extractTypeFromComment ( $ comment ) { if ( preg_match ( '/^(.*)\(FridgeType::([a-zA-Z0-9]+)\)$/' , $ comment , $ matches ) ) { if ( empty ( $ matches [ 1 ] ) ) { $ matches [ 1 ] = null ; } return array ( $ matches [ 1 ] , strtolower ( $ matches [ 2 ] ) ) ; } return array ( $ comment , null ) ; }
Extracts the type from the comment if it exists.

@param string $comment The comment.

@return array 0 => The extracted comment, 1 => The extracted type.
Extracts the type from the comment if it exists .