Completed
Pull Request — master (#2)
by
unknown
02:14
created
src/ScayTrase/WebSMS/Driver/FormDriver.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
         $normalized_status[self::NORMALIZED_MESSAGE] = $status[self::Section_Common][self::Error_Message];
51 51
         $normalized_status[self::NORMALIZED_CODE]    =
52 52
             isset($status[self::Section_Common][self::Error_Code]) ?
53
-                $status[self::Section_Common][self::Error_Code] :
54
-                self::STATUS_OK;
53
+                $status[self::Section_Common][self::Error_Code] : self::STATUS_OK;
55 54
 
56 55
         return $normalized_status;
57 56
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         return $data;
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $url
68
+     */
66 69
     private function doRealRequest($url, array $options)
67 70
     {
68 71
         $request = new FormRequest(Request::METHOD_POST);
Please login to merge, or discard this patch.
src/ScayTrase/WebSMS/Tests/DriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,9 +77,9 @@
 block discarded – undo
77 77
         try {
78 78
             $connection->send($message);
79 79
         } catch (WebSMSException $exception) {
80
-            if ($exception instanceof DeliveryException){
80
+            if ($exception instanceof DeliveryException) {
81 81
                 return;
82
-            } elseif ($exception instanceof DriverException){
82
+            } elseif ($exception instanceof DriverException) {
83 83
                 return;
84 84
             } else {
85 85
                 $this->fail('Unexpected exception');
Please login to merge, or discard this patch.