Passed
Pull Request — master (#219)
by
unknown
03:00
created
src/Soap/SoapFake.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,9 @@  discard block
 block discarded – undo
53 53
         switch ($soapver) {
54 54
             case SOAP_1_1:
55 55
                 $parameters[] = "Content-Type: text/xml;charset=UTF-8;";
56
-                if(!empty($action)) $parameters[] = "SOAPAction: \"$action\"";
56
+                if(!empty($action)) {
57
+                    $parameters[] = "SOAPAction: \"$action\"";
58
+                }
57 59
                 $parameters[] = "Content-length: $msgSize";
58 60
                 break;
59 61
             case SOAP_1_2:
@@ -61,14 +63,18 @@  discard block
 block discarded – undo
61 63
                     "Content-Type: application/soap+xml;charset=utf-8;",
62 64
                     "Content-length: $msgSize"
63 65
                 ];
64
-                if(!empty($action)) $parameter[0] .= "action=$action";
66
+                if(!empty($action)) {
67
+                    $parameter[0] .= "action=$action";
68
+                }
65 69
                 break;
66 70
             default:
67 71
                 $parameters = [
68 72
                     "Content-Type: application/soap+xml;charset=utf-8;",
69 73
                     "Content-length: $msgSize"
70 74
                 ];
71
-                if(!empty($action)) $parameter[0] .= "action=$action";
75
+                if(!empty($action)) {
76
+                    $parameter[0] .= "action=$action";
77
+                }
72 78
                 break;
73 79
         }
74 80
         
Please login to merge, or discard this patch.
src/Soap/SoapCurl.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,9 @@  discard block
 block discarded – undo
71 71
         switch ($soapver) {
72 72
             case SOAP_1_1:
73 73
                 $parameters[] = "Content-Type: text/xml;charset=UTF-8;";
74
-                if(!empty($action)) $parameters[] = "SOAPAction: \"$action\"";
74
+                if(!empty($action)) {
75
+                    $parameters[] = "SOAPAction: \"$action\"";
76
+                }
75 77
                 $parameters[] = "Content-length: $msgSize";
76 78
                 break;
77 79
             case SOAP_1_2:
@@ -79,14 +81,18 @@  discard block
 block discarded – undo
79 81
                     "Content-Type: application/soap+xml;charset=utf-8;",
80 82
                     "Content-length: $msgSize"
81 83
                 ];
82
-                if(!empty($action)) $parameter[0] .= "action=$action";
84
+                if(!empty($action)) {
85
+                    $parameter[0] .= "action=$action";
86
+                }
83 87
                 break;
84 88
             default:
85 89
                 $parameters = [
86 90
                     "Content-Type: application/soap+xml;charset=utf-8;",
87 91
                     "Content-length: $msgSize"
88 92
                 ];
89
-                if(!empty($action)) $parameter[0] .= "action=$action";
93
+                if(!empty($action)) {
94
+                    $parameter[0] .= "action=$action";
95
+                }
90 96
                 break;
91 97
         }
92 98
         
Please login to merge, or discard this patch.