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

ShowContactFormController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 1
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