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

TestController::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
nc 1
nop 1
dl 0
loc 5
c 2
b 0
f 0
cc 1
rs 10
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