@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | return $this->processExecute($request, $response); |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $route |
|
65 | + */ |
|
63 | 66 | public function blow(Request $request, $route) |
64 | 67 | { |
65 | 68 | $request = $this->preExecute($request); |
@@ -117,6 +120,9 @@ discard block |
||
117 | 120 | return $instance; |
118 | 121 | } |
119 | 122 | |
123 | + /** |
|
124 | + * @param string $name |
|
125 | + */ |
|
120 | 126 | protected function getFullyQualifiedDecoratorName($name) |
121 | 127 | { |
122 | 128 | return Factory::PACKAGENAME . 'Payment\Response\Decorator\\' . $name; |
@@ -126,7 +126,7 @@ |
||
126 | 126 | { |
127 | 127 | $className = $this->getFullyQualifiedDecoratorName($request->getDecoratorName()); |
128 | 128 | |
129 | - if ( ! class_exists($className)) { |
|
129 | + if (!class_exists($className)) { |
|
130 | 130 | throw new \InvalidArgumentException('Response type [' . $type . '] not supported!'); |
131 | 131 | } |
132 | 132 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | protected function getRequest() |
37 | 37 | { |
38 | - if ( ! $this->request instanceof Request) { |
|
38 | + if (!$this->request instanceof Request) { |
|
39 | 39 | throw new \InvalidArgumentException('Request ausente!'); |
40 | 40 | } |
41 | 41 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'cancelOrRefund' => 'CancelOrRefundDecorator', |
51 | 51 | ]; |
52 | 52 | |
53 | - if ( ! array_key_exists($this->getType(), $dict)) { |
|
53 | + if (!array_key_exists($this->getType(), $dict)) { |
|
54 | 54 | throw new \InvalidArgumentException('Request type [' . $this->getType() . ']not exist!'); |
55 | 55 | } |
56 | 56 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $className = Factory::PACKAGENAME |
63 | 63 | . 'Payment\Request\Decorator\\' . $this->getDecoratorName(); |
64 | 64 | |
65 | - if ( ! class_exists($className)) { |
|
65 | + if (!class_exists($className)) { |
|
66 | 66 | throw new \InvalidArgumentException('Request type [' . $className . '] not supported!'); |
67 | 67 | } |
68 | 68 |