Passed
Pull Request — master (#6)
by
unknown
11:25
created
src/Gateway.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,37 +56,37 @@
 block discarded – undo
56 56
         return $this->setParameter('cryptType', $value);
57 57
     }
58 58
 
59
-    public function createCard(array $parameters = [])
59
+    public function createCard(array $parameters = [ ])
60 60
     {
61 61
         return $this->createRequest('\Omnipay\Moneris\Message\CreateCardRequest', $parameters);
62 62
     }
63 63
 
64
-    public function deleteCard(array $parameters = [])
64
+    public function deleteCard(array $parameters = [ ])
65 65
     {
66 66
         return $this->createRequest('\Omnipay\Moneris\Message\DeleteCardRequest', $parameters);
67 67
     }
68 68
 
69
-    public function purchase(array $parameters = [])
69
+    public function purchase(array $parameters = [ ])
70 70
     {
71 71
         return $this->createRequest('\Omnipay\Moneris\Message\PurchaseRequest', $parameters);
72 72
     }
73 73
 
74
-    public function refund(array $parameters = [])
74
+    public function refund(array $parameters = [ ])
75 75
     {
76 76
         return $this->createRequest('\Omnipay\Moneris\Message\RefundRequest', $parameters);
77 77
     }
78 78
 
79
-    public function authorize(array $parameters = [])
79
+    public function authorize(array $parameters = [ ])
80 80
     {
81 81
         return $this->createRequest('\Omnipay\Moneris\Message\AuthorizeRequest', $parameters);
82 82
     }
83 83
 
84
-    public function void(array $parameters = [])
84
+    public function void(array $parameters = [ ])
85 85
     {
86 86
         return $this->createRequest('\Omnipay\Moneris\Message\VoidRequest', $parameters);
87 87
     }
88 88
 
89
-    public function capture(array $parameters = [])
89
+    public function capture(array $parameters = [ ])
90 90
     {
91 91
         return $this->createRequest('\Omnipay\Moneris\Message\CaptureRequest', $parameters);
92 92
     }
Please login to merge, or discard this patch.
src/Message/AbstractRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
             switch ($key) {
119 119
                 case 'orderNumber':
120
-                    if (! isset($value)) {
120
+                    if (!isset($value)) {
121 121
                         throw new InvalidRequestException("The $key parameter is required");
122 122
                     } elseif (empty($value)) {
123 123
                         throw new InvalidRequestException("The $key parameter cannot be empty");
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
                     break;
128 128
 
129 129
                 case 'cryptType':
130
-                    if (! isset($value)) {
130
+                    if (!isset($value)) {
131 131
                         throw new InvalidRequestException("The $key parameter is required");
132
-                    } elseif (! in_array($value, self::ECOMMERCE_INDICATORS)) {
132
+                    } elseif (!in_array($value, self::ECOMMERCE_INDICATORS)) {
133 133
                         throw new InvalidRequestException("The $key is invalid");
134 134
                     }
135 135
                     break;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                     break;
142 142
 
143 143
                 default:
144
-                    if (! isset($value)) {
144
+                    if (!isset($value)) {
145 145
                         throw new InvalidRequestException("The $key parameter is required");
146 146
                     }
147 147
                     break;
Please login to merge, or discard this patch.