Passed
Pull Request — master (#2028)
by Gabriel
61:03
created

TestController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\App\Controllers;
6
7
use Symfony\Component\HttpFoundation\Response;
8
use WMDE\Fundraising\Frontend\Factories\FunFunFactory;
9
10
class TestController {
11
12
	public function handle(FunFunFactory $ffFactory): Response {
0 ignored issues
show
Coding Style introduced by
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
introduced by
Single space expected after opening parenthesis
Loading history...
introduced by
Single space expected before closing parenthesis
Loading history...
Coding Style introduced by
Expected 1 spaces before closing parenthesis; 0 found
Loading history...
13
		return new Response( sprintf(
14
			'<html><head><title>Test Controller</title></head>'.
0 ignored issues
show
Coding Style introduced by
Concat operator must be surrounded by a single space
Loading history...
15
				'<body>Something here: %s</body></html>',
16
			$ffFactory->getCachePath()
17
		) );
18
	}
19
}
20