public function analyze()
{
$exts = self::$docs->listAllAnalyzer('Extensions');
$exts[] = 'php_constants';
$c = array();
foreach ($exts as $ext) {
$inifile = str_replace('Extensions\\Ext', '', $ext) . '.ini';
$ini = $this->loadIni($inifile);
if (!empty($ini['constants'][0])) {
$c[] = $ini['constants'];
}
}
$constants = call_user_func_array('array_merge', $c);
$constantsFullNs = $this->makeFullNsPath($constants);
// based on full ns path
$this->analyzerIs('Constants/ConstantUsage')->atomIsNot(array('Boolean', 'Null', 'String'))->fullnspathIs($constantsFullNs);
$this->prepareQuery();
$this->analyzerIs('Constants/ConstantUsage')->analyzerIs('Constants/IsGlobalConstant')->codeIs($constants);
$this->prepareQuery();
}