@@ -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 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | $type = strtolower($this->getType()); |
53 | 53 | |
54 | - if ( ! array_key_exists($type, $dict)) { |
|
54 | + if (!array_key_exists($type, $dict)) { |
|
55 | 55 | throw new \InvalidArgumentException('Request type [' . $type . ']not exist!'); |
56 | 56 | } |
57 | 57 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $className = Factory::PACKAGENAME |
64 | 64 | . 'Payment\Request\Decorator\\' . $this->getDecoratorName(); |
65 | 65 | |
66 | - if ( ! class_exists($className)) { |
|
66 | + if (!class_exists($className)) { |
|
67 | 67 | throw new \InvalidArgumentException('Request type [' . $className . '] not supported!'); |
68 | 68 | } |
69 | 69 |
@@ -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 |