59 $quotedMethod = preg_quote(
$method,
'/');
62 '/(?<![a-z\d_:]|->|function\s)' . $quotedMethod .
'\s*\(/iS',
67 if (self::_isRegexpMatched(
68 '/' . preg_quote(
$class,
'/') .
'::\s*' . $quotedMethod .
'[^a-z\d_]/iS',
77 '/(self|static|parent)::\s*' . $quotedMethod .
'\s*\(/iS',
101 '/[^a-z\d_]' . preg_quote($property,
'/') .
'[^a-z\d_]/iS',
129 '/\s+extends\s+\\\\?' .
$name .
'\b|\s+implements\s+[^{]*\b' .
$name .
'\b[^{^\\\\]*\{/iS',
146 throw new \Exception(
'An error occurred when matching regexp "' . $regexp .
'""');
static isClassUsed($className, $content)
static isPropertyUsed($property, $content, $class=null)
static isFunctionCalled($method, $content, $class=null)
static isDirectDescendant($content, $name)
$_option $_optionId $class
static _isRegexpMatched($regexp, $content)
static isClassOrInterface($content, $name)
static isNamespaceUsed($namespace, $content)
if(!isset($_GET['name'])) $name