CardPayPresenter::actionProcess()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
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