Completed
Push — master ( cac1be...eadaa3 )
by Thomas
04:35
created

TwigHtmlResponseGenerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 4
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addMethods() 0 6 1
1
<?php
2
namespace keeko\tools\generator;
3
4
use gossi\codegen\model\PhpClass;
5
use keeko\core\schema\ActionSchema;
6
7
class TwigHtmlResponseGenerator extends AbstractHtmlResponseGenerator {
8
9 1
	protected function addMethods(PhpClass $class, ActionSchema $action) {
10
		// method: run(Request $request, $data = null)
0 ignored issues
show
Unused Code Comprehensibility introduced by
44% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
11 1
		$class->setMethod($this->generateRunMethod($this->twig->render('twig-run.twig', [
12 1
			'name' => $action->getName()
13 1
		])));
14 1
	}
15
16
}