Lines Matching refs:method
240 foreach ($class['methods'] as $method) {
241 if ($method['executableLines'] > 0) {
274 foreach ($trait['methods'] as $method) {
275 if ($method['executableLines'] > 0) {
308 foreach ($class['methods'] as $method) {
309 if ($method['executableLines'] > 0) {
316 foreach ($trait['methods'] as $method) {
317 if ($method['executableLines'] > 0) {
338 foreach ($class['methods'] as $method) {
339 if ($method['executableLines'] > 0 &&
340 $method['coverage'] == 100) {
347 foreach ($trait['methods'] as $method) {
348 if ($method['executableLines'] > 0 &&
349 $method['coverage'] == 100) {
506 foreach ($trait['methods'] as &$method) {
507 if ($method['executableLines'] > 0) {
508 $method['coverage'] = ($method['executedLines'] /
509 $method['executableLines']) * 100;
511 $method['coverage'] = 100;
514 $method['crap'] = $this->crap(
515 $method['ccn'],
516 $method['coverage']
519 $trait['ccn'] += $method['ccn'];
540 foreach ($class['methods'] as &$method) {
541 if ($method['executableLines'] > 0) {
542 $method['coverage'] = ($method['executedLines'] /
543 $method['executableLines']) * 100;
545 $method['coverage'] = 100;
548 $method['crap'] = $this->crap(
549 $method['ccn'],
550 $method['coverage']
553 $class['ccn'] += $method['ccn'];
601 foreach ($class['methods'] as $methodName => $method) {
602 …$this->classes[$className]['methods'][$methodName] = $this->newMethod($methodName, $method, $link);
604 … $this->startLines[$method['startLine']] = &$this->classes[$className]['methods'][$methodName];
605 … $this->endLines[$method['endLine']] = &$this->classes[$className]['methods'][$methodName];
637 foreach ($trait['methods'] as $methodName => $method) {
638 … $this->traits[$traitName]['methods'][$methodName] = $this->newMethod($methodName, $method, $link);
640 … $this->startLines[$method['startLine']] = &$this->traits[$traitName]['methods'][$methodName];
641 … $this->endLines[$method['endLine']] = &$this->traits[$traitName]['methods'][$methodName];
701 * @param array $method
706 private function newMethod($methodName, array $method, $link) argument
710 'visibility' => $method['visibility'],
711 'signature' => $method['signature'],
712 'startLine' => $method['startLine'],
713 'endLine' => $method['endLine'],
716 'ccn' => $method['ccn'],
719 'link' => $link . $method['startLine'],