TatraPayPresenter::actionProcess()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 0
1
<?php
2
3
namespace PaySys\TatraPay\Application\UI;
4
5
use Nette\Application\UI\Presenter;
6
use Nette\Http\IRequest;
7
use PaySys\TatraPay\Security\Response;
8
9
10
class TatraPayPresenter 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...
Bug introduced by
The class PaySys\PaySys\Exception does not exist. Did you forget a USE statement, or did you not list all dependencies?

Scrutinizer analyzes your composer.json/composer.lock file if available to determine the classes, and functions that are defined by your dependencies.

It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.

Loading history...
24
		}
25
		$this->terminate();
26
	}
27
}
28