CardPayPresenter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionProcess() 0 8 2
1
<?php
2
3
namespace PaySys\CardPay\Application\UI;
4
5
use Nette\Application\UI\Presenter;
6
use Nette\Http\IRequest;
7
use PaySys\CardPay\Security\Response;
8
9
10
class CardPayPresenter extends Presenter
11
{
12
13
	/** @var IRequest @inject */
14
	public $httpRequest;
15
16
	/** @var Response @inject */
17
	public $bankResponse;
18
19
	public function actionProcess()
20
	{
21
		try {
22
			$this->bankResponse->paid($this->httpRequest->getQuery());
23
		} catch (\PaySys\PaySys\Exception $e) {
0 ignored issues
show
Coding Style Comprehensibility introduced by
Consider adding a comment why this CATCH block is empty.
Loading history...
24
		}
25
		$this->terminate();
26
	}
27
}
28