Passed
Push — master ( 18715e...cc36f0 )
by Gaetano
18:17 queued 08:23
created
src/Autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             return;
30 30
         }
31 31
 
32
-        if (is_file($file = __DIR__ . str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) {
32
+        if (is_file($file = __DIR__.str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) {
33 33
             require $file;
34 34
         }
35 35
     }
Please login to merge, or discard this patch.
lib/xmlrpc_wrappers.inc 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,9 +141,9 @@
 block discarded – undo
141 141
  * @deprecated
142 142
  */
143 143
 function build_remote_method_wrapper_code($client, $methodName, $xmlrpcFuncName,
144
-     $mSig, $mDesc = '', $timeout = 0, $protocol = '', $clientCopyMode = 0, $prefix = 'xmlrpc',
145
-     $decodePhpObjects = false, $encodePhpObjects = false, $decodeFault = false,
146
-     $faultResponse = '', $namespace = '\\PhpXmlRpc\\')
144
+        $mSig, $mDesc = '', $timeout = 0, $protocol = '', $clientCopyMode = 0, $prefix = 'xmlrpc',
145
+        $decodePhpObjects = false, $encodePhpObjects = false, $decodeFault = false,
146
+        $faultResponse = '', $namespace = '\\PhpXmlRpc\\')
147 147
 {
148 148
     $code = "function $xmlrpcFuncName (";
149 149
     if ($clientCopyMode < 2) {
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  * @param array $extraOptions
42 42
  * @return array|false
43 43
  */
44
-function wrap_php_function($funcName, $newFuncName='', $extraOptions=array())
44
+function wrap_php_function($funcName, $newFuncName = '', $extraOptions = array())
45 45
 {
46 46
     $wrapper = new PhpXmlRpc\Wrapper();
47 47
     if (!isset($extraOptions['return_source']) || $extraOptions['return_source'] == false) {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
  * @param array $extraOptions
65 65
  * @return array|false
66 66
  */
67
-function wrap_php_class($className, $extraOptions=array())
67
+function wrap_php_class($className, $extraOptions = array())
68 68
 {
69 69
     $wrapper = new PhpXmlRpc\Wrapper();
70 70
     $fix = false;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $fix = true;
75 75
     }
76 76
     $wrapped = $wrapper->wrapPhpClass($className, $extraOptions);
77
-    foreach($wrapped as $name => $value) {
77
+    foreach ($wrapped as $name => $value) {
78 78
         if ($fix) {
79 79
             eval($value['source']);
80 80
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
  * @param string $newFuncName     deprecated, use an option in $extraOptions
94 94
  * @return array|callable|false
95 95
  */
96
-function wrap_xmlrpc_method($client, $methodName, $extraOptions=0, $timeout=0, $protocol='', $newFuncName='')
96
+function wrap_xmlrpc_method($client, $methodName, $extraOptions = 0, $timeout = 0, $protocol = '', $newFuncName = '')
97 97
 {
98 98
     if (!is_array($extraOptions))
99 99
     {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
  * @param array $extraOptions
129 129
  * @return mixed
130 130
  */
131
-function wrap_xmlrpc_server($client, $extraOptions=array())
131
+function wrap_xmlrpc_server($client, $extraOptions = array())
132 132
 {
133 133
     $wrapper = new PhpXmlRpc\Wrapper();
134 134
     return $wrapper->wrapXmlrpcServer($client, $extraOptions);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      $faultResponse = '', $namespace = '\\PhpXmlRpc\\')
149 149
 {
150 150
     $code = "function $xmlrpcFuncName (";
151
-    if ($clientCopyMode < 2) {
151
+    if ($clientCopyMode<2) {
152 152
         // client copy mode 0 or 1 == partial / full client copy in emitted code
153 153
         $innerCode = build_client_wrapper_code($client, $clientCopyMode, $prefix);
154 154
         $innerCode .= "\$client->setDebug(\$debug);\n";
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     if ($mDesc != '') {
164 164
         // take care that PHP comment is not terminated unwillingly by method description
165
-        $mDesc = "/**\n* " . str_replace('*/', '* /', $mDesc) . "\n";
165
+        $mDesc = "/**\n* ".str_replace('*/', '* /', $mDesc)."\n";
166 166
     } else {
167 167
         $mDesc = "/**\nFunction $xmlrpcFuncName\n";
168 168
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     $innerCode .= "\$encoder = new {$namespace}Encoder();\n";
172 172
     $plist = array();
173 173
     $pCount = count($mSig);
174
-    for ($i = 1; $i < $pCount; $i++) {
174
+    for ($i = 1; $i<$pCount; $i++) {
175 175
         $plist[] = "\$p$i";
176 176
         $pType = $mSig[$i];
177 177
         if ($pType == 'i4' || $pType == 'i8' || $pType == 'int' || $pType == 'boolean' || $pType == 'double' ||
@@ -187,19 +187,19 @@  discard block
 block discarded – undo
187 187
             }
188 188
         }
189 189
         $innerCode .= "\$req->addparam(\$p$i);\n";
190
-        $mDesc .= '* @param ' . xmlrpc_2_php_type($pType) . " \$p$i\n";
190
+        $mDesc .= '* @param '.xmlrpc_2_php_type($pType)." \$p$i\n";
191 191
     }
192
-    if ($clientCopyMode < 2) {
192
+    if ($clientCopyMode<2) {
193 193
         $plist[] = '$debug=0';
194 194
         $mDesc .= "* @param int \$debug when 1 (or 2) will enable debugging of the underlying {$prefix} call (defaults to 0)\n";
195 195
     }
196 196
     $plist = implode(', ', $plist);
197
-    $mDesc .= '* @return ' . xmlrpc_2_php_type($mSig[0]) . " (or an {$namespace}Response obj instance if call fails)\n*/\n";
197
+    $mDesc .= '* @return '.xmlrpc_2_php_type($mSig[0])." (or an {$namespace}Response obj instance if call fails)\n*/\n";
198 198
 
199 199
     $innerCode .= "\$res = \${$this_}client->send(\$req, $timeout, '$protocol');\n";
200 200
     if ($decodeFault) {
201 201
         if (is_string($faultResponse) && ((strpos($faultResponse, '%faultCode%') !== false) || (strpos($faultResponse, '%faultString%') !== false))) {
202
-            $respCode = "str_replace(array('%faultCode%', '%faultString%'), array(\$res->faultCode(), \$res->faultString()), '" . str_replace("'", "''", $faultResponse) . "')";
202
+            $respCode = "str_replace(array('%faultCode%', '%faultString%'), array(\$res->faultCode(), \$res->faultString()), '".str_replace("'", "''", $faultResponse)."')";
203 203
         } else {
204 204
             $respCode = var_export($faultResponse, true);
205 205
         }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $innerCode .= "if (\$res->faultCode()) return $respCode; else return \$encoder->decode(\$res->value());";
213 213
     }
214 214
 
215
-    $code = $code . $plist . ") {\n" . $innerCode . "\n}\n";
215
+    $code = $code.$plist.") {\n".$innerCode."\n}\n";
216 216
 
217 217
     return array('source' => $code, 'docstring' => $mDesc);
218 218
 }
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
 /**
221 221
  * @deprecated
222 222
  */
223
-function build_client_wrapper_code($client, $verbatim_client_copy, $prefix='xmlrpc')
223
+function build_client_wrapper_code($client, $verbatim_client_copy, $prefix = 'xmlrpc')
224 224
 {
225 225
     $code = "\$client = new {$prefix}_client('".str_replace("'", "\'", $client->path).
226
-        "', '" . str_replace("'", "\'", $client->server) . "', $client->port);\n";
226
+        "', '".str_replace("'", "\'", $client->server)."', $client->port);\n";
227 227
 
228 228
     // copy all client fields to the client that will be generated runtime
229 229
     // (this provides for future expansion or subclassing of client obj)
Please login to merge, or discard this patch.
src/Helper/Logger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
             $flags = ENT_COMPAT;
40 40
             // avoid warnings on php < 5.4...
41 41
             if (defined('ENT_HTML401')) {
42
-                $flags =  $flags | ENT_HTML401;
42
+                $flags = $flags | ENT_HTML401;
43 43
             }
44 44
             if (defined('ENT_SUBSTITUTE')) {
45
-                $flags =  $flags | ENT_SUBSTITUTE;
45
+                $flags = $flags | ENT_SUBSTITUTE;
46 46
             }
47 47
             if ($encoding != null) {
48 48
                 print "<PRE>\n".htmlentities($message, $flags, $encoding)."\n</PRE>";
Please login to merge, or discard this patch.
extras/verify_compat.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
         // test for php version
18 18
         $ver = phpversion();
19 19
         $tests['php_version'] = array();
20
-        $tests['php_version']['description'] = 'PHP version found: ' . $ver . ".\n\n";
21
-        if (version_compare($ver, '5.3.0') < 0) {
20
+        $tests['php_version']['description'] = 'PHP version found: '.$ver.".\n\n";
21
+        if (version_compare($ver, '5.3.0')<0) {
22 22
             $tests['php_version']['status'] = 0;
23 23
             $tests['php_version']['description'] .= 'This version of PHP is not compatible with this release of the PHP XMLRPC library. Please upgrade to php 5.1.0 or later';
24 24
         } else {
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         // test for php version
52 52
         $ver = phpversion();
53 53
         $tests['php_version'] = array();
54
-        $tests['php_version']['description'] = 'PHP version found: ' . $ver . ".\n\n";
55
-        if (version_compare($ver, '5.3.0') < 0) {
54
+        $tests['php_version']['description'] = 'PHP version found: '.$ver.".\n\n";
55
+        if (version_compare($ver, '5.3.0')<0) {
56 56
             $tests['php_version']['status'] = 0;
57 57
             $tests['php_version']['description'] .= 'This version of PHP is not compatible with the PHP XMLRPC library. Please upgrade to 5.1.0 or later';
58 58
         } else {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $info = curl_version();
80 80
             $tests['curl']['status'] = 2;
81 81
             $tests['curl']['description'] = "The cURL extension is enabled.\n\nYou will be able to send and receive messages using 'HTTPS' and 'HTTP 1.1' protocols";
82
-            if (version_compare($ver, '4.3.8') < 0) {
82
+            if (version_compare($ver, '4.3.8')<0) {
83 83
                 $tests['curl']['status'] = 1;
84 84
                 $tests['curl']['description'] .= ".\nPlease note that the current cURL install does not support keep-alives";
85 85
             }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     <?php
168 168
     $res = phpxmlrpc_verify_compat('server');
169 169
     foreach ($res as $test => $result) {
170
-        echo '<tr><td class="res' . $result['status'] . '">' . htmlspecialchars($test) . '</td><td class="result">' . htmlspecialchars($result['description']) . "</td></tr>\n";
170
+        echo '<tr><td class="res'.$result['status'].'">'.htmlspecialchars($test).'</td><td class="result">'.htmlspecialchars($result['description'])."</td></tr>\n";
171 171
     }
172 172
     ?>
173 173
     </tbody>
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     <?php
185 185
     $res = phpxmlrpc_verify_compat('client');
186 186
     foreach ($res as $test => $result) {
187
-        echo '<tr><td class="res' . $result['status'] . '">' . htmlspecialchars($test) . '</td><td class="result">' . htmlspecialchars($result['description']) . "</td></tr>\n";
187
+        echo '<tr><td class="res'.$result['status'].'">'.htmlspecialchars($test).'</td><td class="result">'.htmlspecialchars($result['description'])."</td></tr>\n";
188 188
     }
189 189
     ?>
190 190
     </tbody>
Please login to merge, or discard this patch.
src/Helper/Charset.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,8 +176,7 @@
 block discarded – undo
176 176
                         } else {
177 177
                             $escapedData .= $ch;
178 178
                         }
179
-                    }
180
-                    else if ($ii < 128) {
179
+                    } else if ($ii < 128) {
181 180
                         /// @todo shall we replace this with a (supposedly) faster str_replace?
182 181
                         /// @todo to be 'print safe', should we encode as well character 127 (DEL) ?
183 182
                         switch ($ii) {
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
                 if (count($this->xml_iso88591_Entities['in'])) {
77 77
                     return;
78 78
                 }
79
-                for ($i = 0; $i < 32; $i++) {
79
+                for ($i = 0; $i<32; $i++) {
80 80
                     $this->xml_iso88591_Entities["in"][] = chr($i);
81 81
                     $this->xml_iso88591_Entities["out"][] = "&#{$i};";
82 82
                 }
83 83
 
84 84
                 /// @todo to be 'print safe', should we encode as well character 127 (DEL) ?
85 85
 
86
-                for ($i = 160; $i < 256; $i++) {
86
+                for ($i = 160; $i<256; $i++) {
87 87
                     $this->xml_iso88591_Entities["in"][] = chr($i);
88 88
                     $this->xml_iso88591_Entities["out"][] = "&#{$i};";
89 89
                 }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 break;*/
112 112
 
113 113
             default:
114
-                throw new ValueErrorException('Unsupported table: ' . $tableName);
114
+                throw new ValueErrorException('Unsupported table: '.$tableName);
115 115
         }
116 116
     }
117 117
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $srcEncoding = 'UTF-8';
164 164
         }
165 165
 
166
-        $conversion = strtoupper($srcEncoding . '_' . $destEncoding);
166
+        $conversion = strtoupper($srcEncoding.'_'.$destEncoding);
167 167
 
168 168
         // list ordered with (expected) most common scenarios first
169 169
         switch ($conversion) {
@@ -181,20 +181,20 @@  discard block
 block discarded – undo
181 181
                 // NB: this will choke on invalid UTF-8, going most likely beyond EOF
182 182
                 $escapedData = '';
183 183
                 // be kind to users creating string xml-rpc values out of different php types
184
-                $data = (string)$data;
184
+                $data = (string) $data;
185 185
                 $ns = strlen($data);
186
-                for ($nn = 0; $nn < $ns; $nn++) {
186
+                for ($nn = 0; $nn<$ns; $nn++) {
187 187
                     $ch = $data[$nn];
188 188
                     $ii = ord($ch);
189 189
                     // 7 bits in 1 byte: 0bbbbbbb (127)
190
-                    if ($ii < 32) {
190
+                    if ($ii<32) {
191 191
                         if ($conversion == 'UTF-8_US-ASCII') {
192 192
                             $escapedData .= sprintf('&#%d;', $ii);
193 193
                         } else {
194 194
                             $escapedData .= $ch;
195 195
                         }
196 196
                     }
197
-                    else if ($ii < 128) {
197
+                    else if ($ii<128) {
198 198
                         /// @todo shall we replace this with a (supposedly) faster str_replace?
199 199
                         /// @todo to be 'print safe', should we encode as well character 127 (DEL) ?
200 200
                         switch ($ii) {
@@ -219,25 +219,25 @@  discard block
 block discarded – undo
219 219
                     } // 11 bits in 2 bytes: 110bbbbb 10bbbbbb (2047)
220 220
                     elseif ($ii >> 5 == 6) {
221 221
                         $b1 = ($ii & 31);
222
-                        $b2 = (ord($data[$nn + 1]) & 63);
223
-                        $ii = ($b1 * 64) + $b2;
222
+                        $b2 = (ord($data[$nn+1]) & 63);
223
+                        $ii = ($b1 * 64)+$b2;
224 224
                         $escapedData .= sprintf('&#%d;', $ii);
225 225
                         $nn += 1;
226 226
                     } // 16 bits in 3 bytes: 1110bbbb 10bbbbbb 10bbbbbb
227 227
                     elseif ($ii >> 4 == 14) {
228 228
                         $b1 = ($ii & 15);
229
-                        $b2 = (ord($data[$nn + 1]) & 63);
230
-                        $b3 = (ord($data[$nn + 2]) & 63);
231
-                        $ii = ((($b1 * 64) + $b2) * 64) + $b3;
229
+                        $b2 = (ord($data[$nn+1]) & 63);
230
+                        $b3 = (ord($data[$nn+2]) & 63);
231
+                        $ii = ((($b1 * 64)+$b2) * 64)+$b3;
232 232
                         $escapedData .= sprintf('&#%d;', $ii);
233 233
                         $nn += 2;
234 234
                     } // 21 bits in 4 bytes: 11110bbb 10bbbbbb 10bbbbbb 10bbbbbb
235 235
                     elseif ($ii >> 3 == 30) {
236 236
                         $b1 = ($ii & 7);
237
-                        $b2 = (ord($data[$nn + 1]) & 63);
238
-                        $b3 = (ord($data[$nn + 2]) & 63);
239
-                        $b4 = (ord($data[$nn + 3]) & 63);
240
-                        $ii = ((((($b1 * 64) + $b2) * 64) + $b3) * 64) + $b4;
237
+                        $b2 = (ord($data[$nn+1]) & 63);
238
+                        $b3 = (ord($data[$nn+2]) & 63);
239
+                        $b4 = (ord($data[$nn+3]) & 63);
240
+                        $ii = ((((($b1 * 64)+$b2) * 64)+$b3) * 64)+$b4;
241 241
                         $escapedData .= sprintf('&#%d;', $ii);
242 242
                         $nn += 3;
243 243
                     }
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
                     // If src is UTF8, we run htmlspecialchars before converting to the target charset, as
291 291
                     // htmlspecialchars has limited charset support, but it groks utf8
292 292
                     if ($srcEncoding === 'UTF-8') {
293
-                        $data = htmlspecialchars($data,  defined('ENT_XML1') ? ENT_XML1 | ENT_QUOTES : ENT_QUOTES, 'UTF-8');
293
+                        $data = htmlspecialchars($data, defined('ENT_XML1') ? ENT_XML1 | ENT_QUOTES : ENT_QUOTES, 'UTF-8');
294 294
                     }
295 295
                     if ($srcEncoding !== $destEncoding) {
296 296
                         try {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                     }
303 303
                     if ($data === false) {
304 304
                         $escapedData = '';
305
-                        $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ": Converting from $srcEncoding to $destEncoding via mbstring: failed...");
305
+                        $this->getLogger()->error('XML-RPC: '.__METHOD__.": Converting from $srcEncoding to $destEncoding via mbstring: failed...");
306 306
                     } else {
307 307
                         if ($srcEncoding === 'UTF-8') {
308 308
                             $escapedData = $data;
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
                     }
313 313
                 } else {
314 314
                     $escapedData = '';
315
-                    $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ": Converting from $srcEncoding to $destEncoding: not supported...");
315
+                    $this->getLogger()->error('XML-RPC: '.__METHOD__.": Converting from $srcEncoding to $destEncoding: not supported...");
316 316
                 }
317 317
         }
318 318
 
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         if (function_exists('mb_list_encodings')) {
331 331
             $knownCharsets = array_unique(array_merge($knownCharsets, array_diff(mb_list_encodings(), array(
332 332
                 'pass', 'auto', 'wchar', 'BASE64', 'UUENCODE', 'ASCII', 'HTML-ENTITIES', 'Quoted-Printable',
333
-                '7bit','8bit', 'byte2be', 'byte2le', 'byte4be', 'byte4le'
333
+                '7bit', '8bit', 'byte2be', 'byte2le', 'byte4be', 'byte4le'
334 334
             ))));
335 335
         }
336 336
         return $knownCharsets;
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public function isValidCharset($encoding, $validList)
349 349
     {
350
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
350
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
351 351
 
352 352
         if (is_string($validList)) {
353 353
             $validList = explode(',', $validList);
@@ -377,14 +377,14 @@  discard block
 block discarded – undo
377 377
      */
378 378
     public function getEntities($charset)
379 379
     {
380
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
380
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
381 381
 
382 382
         switch ($charset)
383 383
         {
384 384
             case 'iso88591':
385 385
                 return $this->xml_iso88591_Entities;
386 386
             default:
387
-                throw new ValueErrorException('Unsupported charset: ' . $charset);
387
+                throw new ValueErrorException('Unsupported charset: '.$charset);
388 388
         }
389 389
     }
390 390
 }
Please login to merge, or discard this patch.
tests/PolyfillTestCase.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@
 block discarded – undo
2 2
 
3 3
 use PHPUnit\Runner\Version as PHPUnit_Version;
4 4
 
5
-if ( class_exists( 'PHPUnit_Extensions_SeleniumCommon_RemoteCoverage' ) === true
6
-    && class_exists( 'PHPUnit\Extensions\SeleniumCommon\RemoteCoverage' ) === false
5
+if (class_exists('PHPUnit_Extensions_SeleniumCommon_RemoteCoverage') === true
6
+    && class_exists('PHPUnit\Extensions\SeleniumCommon\RemoteCoverage') === false
7 7
 ) {
8
-    class_alias( 'PHPUnit_Extensions_SeleniumCommon_RemoteCoverage', 'PHPUnit\Extensions\SeleniumCommon\RemoteCoverage' );
8
+    class_alias('PHPUnit_Extensions_SeleniumCommon_RemoteCoverage', 'PHPUnit\Extensions\SeleniumCommon\RemoteCoverage');
9 9
 }
10 10
 
11
-if ( class_exists( 'PHPUnit_Runner_BaseTestRunner' ) === true
12
-    && class_exists( 'PHPUnit\Runner\BaseTestRunner' ) === false
11
+if (class_exists('PHPUnit_Runner_BaseTestRunner') === true
12
+    && class_exists('PHPUnit\Runner\BaseTestRunner') === false
13 13
 ) {
14
-    class_alias( 'PHPUnit_Runner_BaseTestRunner', 'PHPUnit\Runner\BaseTestRunner' );
14
+    class_alias('PHPUnit_Runner_BaseTestRunner', 'PHPUnit\Runner\BaseTestRunner');
15 15
 }
16 16
 
17 17
 if (class_exists('PHPUnit\Runner\Version') === false || version_compare(PHPUnit_Version::id(), '8.0.0', '<')) {
18
-    include_once __DIR__ . '/PolyfillTestCase7.php';
18
+    include_once __DIR__.'/PolyfillTestCase7.php';
19 19
 } else {
20
-    include_once __DIR__ . '/PolyfillTestCase8.php';
20
+    include_once __DIR__.'/PolyfillTestCase8.php';
21 21
 }
Please login to merge, or discard this patch.
debugger/index.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 if (isset($_GET['run'])) {
5 5
     $path = parse_url($_GET['run']);
6 6
     if (isset($path['query'])) {
7
-        $query = '?' . $path['query'];
7
+        $query = '?'.$path['query'];
8 8
     }
9 9
 }
10 10
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,12 @@
 block discarded – undo
13 13
 <html lang="en">
14 14
 <head>
15 15
     <link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico">
16
-    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) echo 'JSON-RPC'; else echo 'XML-RPC'; ?> Debugger</title>
16
+    <title><?php if (defined('DEFAULT_WSTYPE') && DEFAULT_WSTYPE == 1) {
17
+    echo 'JSON-RPC';
18
+} else {
19
+    echo 'XML-RPC';
20
+}
21
+?> Debugger</title>
17 22
 </head>
18 23
 <frameset rows="360,*">
19 24
     <frame name="frmcontroller" src="controller.php<?php echo htmlspecialchars($query); ?>" marginwidth="0"
Please login to merge, or discard this patch.
tests/phpunit_coverage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * @license code licensed under the BSD License: see file license.txt
7 7
  **/
8 8
 
9
-$coverageFile = realpath(__DIR__ . "/../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/phpunit_coverage.php");
9
+$coverageFile = realpath(__DIR__."/../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/phpunit_coverage.php");
10 10
 
11 11
 // has to be the same value as used in index.php
12 12
 $GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'] = '/tmp/phpxmlrpc_coverage';
Please login to merge, or discard this patch.
demo/client/which.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require_once __DIR__ . "/_prepend.php";
2
+require_once __DIR__."/_prepend.php";
3 3
 
4 4
 output('<html lang="en">
5 5
 <head><title>phpxmlrpc - Which toolkit demo</title></head>
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     <methodName>interopEchoTests.whichToolkit</methodName>
20 20
     <params/>
21 21
 </methodCall>';
22
-output("XML custom request:<br/><pre>" . htmlspecialchars($payload) . "</pre>\n");
22
+output("XML custom request:<br/><pre>".htmlspecialchars($payload)."</pre>\n");
23 23
 
24 24
 $client = new Client(XMLRPCSERVER);
25 25
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 if (!$resp->faultCode()) {
41 41
 
42 42
     $xml = $resp->value();
43
-    output("XML response:<br/><pre>" . htmlspecialchars($xml) . "</pre>\n");
43
+    output("XML response:<br/><pre>".htmlspecialchars($xml)."</pre>\n");
44 44
 
45 45
     $encoder = new Encoder();
46 46
     // from xml to xml-rpc Response
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 
53 53
     output("Toolkit info:<br/>\n");
54 54
     output("<pre>");
55
-    output("name: " . htmlspecialchars($value["toolkitName"]) . "\n");
56
-    output("version: " . htmlspecialchars($value["toolkitVersion"]) . "\n");
57
-    output("docs: " . htmlspecialchars($value["toolkitDocsUrl"]) . "\n");
58
-    output("os: " . htmlspecialchars($value["toolkitOperatingSystem"]) . "\n");
55
+    output("name: ".htmlspecialchars($value["toolkitName"])."\n");
56
+    output("version: ".htmlspecialchars($value["toolkitVersion"])."\n");
57
+    output("docs: ".htmlspecialchars($value["toolkitDocsUrl"])."\n");
58
+    output("os: ".htmlspecialchars($value["toolkitOperatingSystem"])."\n");
59 59
     output("</pre>");
60 60
 } else {
61 61
     output("An error occurred: ");
62
-    output("Code: " . htmlspecialchars($resp->faultCode()) . " Reason: '" . htmlspecialchars($resp->faultString()) . "'\n");
62
+    output("Code: ".htmlspecialchars($resp->faultCode())." Reason: '".htmlspecialchars($resp->faultString())."'\n");
63 63
 }
64 64
 
65 65
 output("</body></html>\n");
Please login to merge, or discard this patch.