Completed
Push — master ( 7e3634...ff897c )
by Gilmar
02:36
created
src/Payment/Request/Manager.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Payment/Request/Decorator/AbstractDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Payment/Request/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.