private function getMethods($className, &$rows) { foreach ($this->metrics['methods'] as $method => $versions) { if (strpos($method, "{$className}::") === 0) { $rows[] = array(' ', sprintf('<info>function</info> %s', str_replace("{$className}::", '', $method)), $versions['matches'] > 0 ? $versions['matches'] : '', isset($versions['ext.name']) ? $versions['ext.name'] : '', Version::ext($versions), Version::php($versions), Version::all($versions)); } } }