TatraPayPresenter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
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\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