Completed
Pull Request — master (#1953)
by
unknown
167:34 queued 102:26
created

ShowContactFormController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\App\Controllers\StaticContent;
6
7
use WMDE\Fundraising\Frontend\Factories\FunFunFactory;
8
9
class ShowContactFormController {
10
11
	public function index( FunFunFactory $ffFactory ): string {
12
		return $ffFactory->getLayoutTemplate( 'Contact_Form.html.twig' )->render(
13
			[
14
				'contact_categories' => $ffFactory->getGetInTouchCategories(),
15
				'contactFormValidationPatterns' => $ffFactory->getValidationRules()->contactForm,
16
			]
17
		);
18
	}
19
}
20