Passed
Pull Request — master (#2028)
by Gabriel
64:14
created

TestController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 7
c 2
b 0
f 0
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 {
13
		return new Response( sprintf(
14
			'<html><head><title>Test Controller</title></head>' .
15
				'<body>Something here: %s</body></html>',
16
			$ffFactory->getCachePath()
17
		) );
18
	}
19
}
20