Completed
Push — master ( ddb55d...e086dd )
by angel
12s
created
Instapago/InstapagoGateway/InstapagoPayment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $this->statusId = $statusId;
102 102
             $this->ipAddres = $ipAddres;
103 103
 
104
-            $url = $this->root.'payment'; // endpoint
104
+            $url = $this->root . 'payment'; // endpoint
105 105
 
106 106
             $fields = [
107 107
                 'KeyID'             => $this->keyId, //required
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $this->amount = $amount;
145 145
             $this->idPago = $idPago;
146 146
 
147
-            $url = $this->root.'complete'; // endpoint
147
+            $url = $this->root . 'complete'; // endpoint
148 148
 
149 149
             $fields = [
150 150
                 'KeyID'             => $this->keyId, //required
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
             $this->idPago = $idPago;
179 179
 
180
-            $url = $this->root.'payment'; // endpoint
180
+            $url = $this->root . 'payment'; // endpoint
181 181
 
182 182
             $fields = [
183 183
                 'KeyID'             => $this->keyId, //required
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
 
211 211
             $this->idPago = $idPago;
212 212
 
213
-            $url = $this->root.'payment'; // endpoint
213
+            $url = $this->root . 'payment'; // endpoint
214 214
 
215 215
             $myCurl = curl_init();
216
-            curl_setopt($myCurl, CURLOPT_URL, $url.'?'.'KeyID='.$this->keyId.'&PublicKeyId='.$this->publicKeyId.'&id='.$this->idPago);
216
+            curl_setopt($myCurl, CURLOPT_URL, $url . '?' . 'KeyID=' . $this->keyId . '&PublicKeyId=' . $this->publicKeyId . '&id=' . $this->idPago);
217 217
             curl_setopt($myCurl, CURLOPT_RETURNTRANSFER, 1);
218 218
             $server_output = curl_exec($myCurl);
219 219
             curl_close($myCurl);
Please login to merge, or discard this patch.
Instapago/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
  * @copyright 2016 Angel Cruz
28 28
  */
29 29
 
30
-spl_autoload_register(function ($class) {
31
-    $file = dirname(__DIR__).DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
30
+spl_autoload_register(function($class) {
31
+    $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
32 32
 
33
-    return (!is_file($file)) ?: require $file;
33
+    return ( ! is_file($file)) ?: require $file;
34 34
 });
Please login to merge, or discard this patch.