Passed
Push — master ( 80f46d...668fee )
by Gaetano
10:00
created
src/Server.php 1 patch
Spacing   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     public function getOptions()
252 252
     {
253 253
         $values = array();
254
-        foreach(static::$options as $opt) {
254
+        foreach (static::$options as $opt) {
255 255
             $values[$opt] = $this->getOption($opt);
256 256
         }
257 257
         return $values;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function setOptions($options)
266 266
     {
267
-        foreach($options as $name => $value) {
267
+        foreach ($options as $name => $value) {
268 268
             $this->setOption($name, $value);
269 269
         }
270 270
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     public static function xmlrpc_debugmsg($msg)
304 304
     {
305
-        static::$_xmlrpc_debuginfo .= $msg . "\n";
305
+        static::$_xmlrpc_debuginfo .= $msg."\n";
306 306
     }
307 307
 
308 308
     /**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public static function error_occurred($msg)
316 316
     {
317
-        static::$_xmlrpcs_occurred_errors .= $msg . "\n";
317
+        static::$_xmlrpcs_occurred_errors .= $msg."\n";
318 318
     }
319 319
 
320 320
     /**
@@ -335,10 +335,10 @@  discard block
 block discarded – undo
335 335
         // user debug info should be encoded by the end user using the INTERNAL_ENCODING
336 336
         $out = '';
337 337
         if ($this->debug_info != '') {
338
-            $out .= "<!-- SERVER DEBUG INFO (BASE64 ENCODED):\n" . base64_encode($this->debug_info) . "\n-->\n";
338
+            $out .= "<!-- SERVER DEBUG INFO (BASE64 ENCODED):\n".base64_encode($this->debug_info)."\n-->\n";
339 339
         }
340 340
         if (static::$_xmlrpc_debuginfo != '') {
341
-            $out .= "<!-- DEBUG INFO:\n" . $this->getCharsetEncoder()->encodeEntities(str_replace('--', '_-', static::$_xmlrpc_debuginfo), PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "\n-->\n";
341
+            $out .= "<!-- DEBUG INFO:\n".$this->getCharsetEncoder()->encodeEntities(str_replace('--', '_-', static::$_xmlrpc_debuginfo), PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding)."\n-->\n";
342 342
             // NB: a better solution MIGHT be to use CDATA, but we need to insert it
343 343
             // into return payload AFTER the beginning tag
344 344
             //$out .= "<![CDATA[ DEBUG INFO:\n\n" . str_replace(']]>', ']_]_>', static::$_xmlrpc_debuginfo) . "\n]]>\n";
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
         $this->debug_info = '';
368 368
 
369 369
         // Save what we received, before parsing it
370
-        if ($this->debug > 1) {
371
-            $this->debugMsg("+++GOT+++\n" . $data . "\n+++END+++");
370
+        if ($this->debug>1) {
371
+            $this->debugMsg("+++GOT+++\n".$data."\n+++END+++");
372 372
         }
373 373
 
374 374
         $resp = $this->parseRequestHeaders($data, $reqCharset, $respCharset, $respEncoding);
@@ -385,13 +385,13 @@  discard block
 block discarded – undo
385 385
             $resp->raw_data = $rawData;
386 386
         }
387 387
 
388
-        if ($this->debug > 2 && static::$_xmlrpcs_occurred_errors != '') {
389
-            $this->debugMsg("+++PROCESSING ERRORS AND WARNINGS+++\n" .
390
-                static::$_xmlrpcs_occurred_errors . "+++END+++");
388
+        if ($this->debug>2 && static::$_xmlrpcs_occurred_errors != '') {
389
+            $this->debugMsg("+++PROCESSING ERRORS AND WARNINGS+++\n".
390
+                static::$_xmlrpcs_occurred_errors."+++END+++");
391 391
         }
392 392
 
393 393
         $header = $resp->xml_header($respCharset);
394
-        if ($this->debug > 0) {
394
+        if ($this->debug>0) {
395 395
             $header .= $this->serializeDebug($respCharset);
396 396
         }
397 397
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
         if (empty($payload)) {
403 403
             $payload = $resp->serialize($respCharset);
404 404
         }
405
-        $payload = $header . $payload;
405
+        $payload = $header.$payload;
406 406
 
407 407
         if ($returnPayload) {
408 408
             return $payload;
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         // if we get a warning/error that has output some text before here, then we cannot
412 412
         // add a new header. We cannot say we are sending xml, either...
413 413
         if (!headers_sent()) {
414
-            header('Content-Type: ' . $resp->getContentType());
414
+            header('Content-Type: '.$resp->getContentType());
415 415
             // we do not know if client actually told us an accepted charset, but if it did we have to tell it what we did
416 416
             header("Vary: Accept-Charset");
417 417
 
@@ -434,12 +434,12 @@  discard block
 block discarded – undo
434 434
             // Note that Apache/mod_php will add (and even alter!) the Content-Length header on its own, but only for
435 435
             // responses up to 8000 bytes
436 436
             if ($phpNoSelfCompress) {
437
-                header('Content-Length: ' . (int)strlen($payload));
437
+                header('Content-Length: '.(int) strlen($payload));
438 438
             }
439 439
         } else {
440 440
             /// @todo allow the user to easily subclass this in a way which allows the resp. headers to be already sent
441 441
             ///       by now without flagging it as an error. Possibly check for presence of Content-Type header
442
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': http headers already sent before response is fully generated. Check for php warning or error messages');
442
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': http headers already sent before response is fully generated. Check for php warning or error messages');
443 443
         }
444 444
 
445 445
         print $payload;
@@ -528,9 +528,9 @@  discard block
 block discarded – undo
528 528
             $numParams = count($in);
529 529
         }
530 530
         foreach ($sigs as $curSig) {
531
-            if (count($curSig) == $numParams + 1) {
531
+            if (count($curSig) == $numParams+1) {
532 532
                 $itsOK = 1;
533
-                for ($n = 0; $n < $numParams; $n++) {
533
+                for ($n = 0; $n<$numParams; $n++) {
534 534
                     if (is_object($in)) {
535 535
                         $p = $in->getParam($n);
536 536
                         if ($p->kindOf() == 'scalar') {
@@ -543,10 +543,10 @@  discard block
 block discarded – undo
543 543
                     }
544 544
 
545 545
                     // param index is $n+1, as first member of sig is return type
546
-                    if ($pt != $curSig[$n + 1] && $curSig[$n + 1] != Value::$xmlrpcValue) {
546
+                    if ($pt != $curSig[$n+1] && $curSig[$n+1] != Value::$xmlrpcValue) {
547 547
                         $itsOK = 0;
548
-                        $pno = $n + 1;
549
-                        $wanted = $curSig[$n + 1];
548
+                        $pno = $n+1;
549
+                        $wanted = $curSig[$n+1];
550 550
                         $got = $pt;
551 551
                         break;
552 552
                     }
@@ -573,10 +573,10 @@  discard block
 block discarded – undo
573 573
         // check if $_SERVER is populated: it might have been disabled via ini file
574 574
         // (this is true even when in CLI mode)
575 575
         if (count($_SERVER) == 0) {
576
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': cannot parse request headers as $_SERVER is not populated');
576
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': cannot parse request headers as $_SERVER is not populated');
577 577
         }
578 578
 
579
-        if ($this->debug > 1) {
579
+        if ($this->debug>1) {
580 580
             if (function_exists('getallheaders')) {
581 581
                 $this->debugMsg(''); // empty line
582 582
                 foreach (getallheaders() as $name => $val) {
@@ -601,13 +601,13 @@  discard block
 block discarded – undo
601 601
                 if (function_exists('gzinflate') && in_array($contentEncoding, $this->accepted_compression)) {
602 602
                     if ($contentEncoding == 'deflate' && $degzdata = @gzuncompress($data)) {
603 603
                         $data = $degzdata;
604
-                        if ($this->debug > 1) {
605
-                            $this->debugMsg("\n+++INFLATED REQUEST+++[" . strlen($data) . " chars]+++\n" . $data . "\n+++END+++");
604
+                        if ($this->debug>1) {
605
+                            $this->debugMsg("\n+++INFLATED REQUEST+++[".strlen($data)." chars]+++\n".$data."\n+++END+++");
606 606
                         }
607 607
                     } elseif ($contentEncoding == 'gzip' && $degzdata = @gzinflate(substr($data, 10))) {
608 608
                         $data = $degzdata;
609
-                        if ($this->debug > 1) {
610
-                            $this->debugMsg("+++INFLATED REQUEST+++[" . strlen($data) . " chars]+++\n" . $data . "\n+++END+++");
609
+                        if ($this->debug>1) {
610
+                            $this->debugMsg("+++INFLATED REQUEST+++[".strlen($data)." chars]+++\n".$data."\n+++END+++");
611 611
                         }
612 612
                     } else {
613 613
                         $r = new static::$responseClass(0, PhpXmlRpc::$xmlrpcerr['server_decompress_fail'],
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
                     if ($reqEncoding == 'ISO-8859-1') {
696 696
                         $data = utf8_encode($data);
697 697
                     } else {
698
-                        $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': unsupported charset encoding of received request: ' . $reqEncoding);
698
+                        $this->getLogger()->error('XML-RPC: '.__METHOD__.': unsupported charset encoding of received request: '.$reqEncoding);
699 699
                     }
700 700
                 }
701 701
             }
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
             preg_match('/^XML error ([0-9]+)/', $_xh['isf_reason'], $matches);
730 730
             return new static::$responseClass(
731 731
                 0,
732
-                PhpXmlRpc::$xmlrpcerrxml + (int)$matches[1],
732
+                PhpXmlRpc::$xmlrpcerrxml+(int) $matches[1],
733 733
                 $_xh['isf_reason']);
734 734
         } elseif ($_xh['isf']) {
735 735
             /// @todo separate better the various cases, as we have done in Request::parseResponse: invalid xml-rpc vs.
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
             return new static::$responseClass(
738 738
                 0,
739 739
                 PhpXmlRpc::$xmlrpcerr['invalid_request'],
740
-                PhpXmlRpc::$xmlrpcstr['invalid_request'] . ' ' . $_xh['isf_reason']);
740
+                PhpXmlRpc::$xmlrpcstr['invalid_request'].' '.$_xh['isf_reason']);
741 741
         } else {
742 742
             // small layering violation in favor of speed and memory usage: we should allow the 'execute' method handle
743 743
             // this, but in the most common scenario (xml-rpc values type server with some methods registered as phpvals)
@@ -747,8 +747,8 @@  discard block
 block discarded – undo
747 747
                     ($this->dmap[$_xh['method']]['parameters_type'] != 'xmlrpcvals')
748 748
                 )
749 749
             ) {
750
-                if ($this->debug > 1) {
751
-                    $this->debugMsg("\n+++PARSED+++\n" . var_export($_xh['params'], true) . "\n+++END+++");
750
+                if ($this->debug>1) {
751
+                    $this->debugMsg("\n+++PARSED+++\n".var_export($_xh['params'], true)."\n+++END+++");
752 752
                 }
753 753
 
754 754
                 return $this->execute($_xh['method'], $_xh['params'], $_xh['pt']);
@@ -756,12 +756,12 @@  discard block
 block discarded – undo
756 756
                 // build a Request object with data parsed from xml and add parameters in
757 757
                 $req = new Request($_xh['method']);
758 758
                 /// @todo for more speed, we could just pass in the array to the constructor (and loose the type validation)...
759
-                for ($i = 0; $i < count($_xh['params']); $i++) {
759
+                for ($i = 0; $i<count($_xh['params']); $i++) {
760 760
                     $req->addParam($_xh['params'][$i]);
761 761
                 }
762 762
 
763
-                if ($this->debug > 1) {
764
-                    $this->debugMsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++");
763
+                if ($this->debug>1) {
764
+                    $this->debugMsg("\n+++PARSED+++\n".var_export($req, true)."\n+++END+++");
765 765
                 }
766 766
 
767 767
                 return $this->execute($req);
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
                 return new static::$responseClass(
812 812
                     0,
813 813
                     PhpXmlRpc::$xmlrpcerr['incorrect_params'],
814
-                    PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": {$errStr}"
814
+                    PhpXmlRpc::$xmlrpcstr['incorrect_params'].": {$errStr}"
815 815
                 );
816 816
             }
817 817
         }
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
         // build string representation of function 'name'
827 827
         if (is_array($func)) {
828 828
             if (is_object($func[0])) {
829
-                $funcName = get_class($func[0]) . '->' . $func[1];
829
+                $funcName = get_class($func[0]).'->'.$func[1];
830 830
             } else {
831 831
                 $funcName = implode('::', $func);
832 832
             }
@@ -838,16 +838,16 @@  discard block
 block discarded – undo
838 838
 
839 839
         // verify that function to be invoked is in fact callable
840 840
         if (!is_callable($func)) {
841
-            $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler is not callable");
841
+            $this->getLogger()->error("XML-RPC: ".__METHOD__.": function '$funcName' registered as method handler is not callable");
842 842
             return new static::$responseClass(
843 843
                 0,
844 844
                 PhpXmlRpc::$xmlrpcerr['server_error'],
845
-                PhpXmlRpc::$xmlrpcstr['server_error'] . ": no function matches method"
845
+                PhpXmlRpc::$xmlrpcstr['server_error'].": no function matches method"
846 846
             );
847 847
         }
848 848
 
849 849
         if (isset($dmap[$methodName]['exception_handling'])) {
850
-            $exception_handling = (int)$dmap[$methodName]['exception_handling'];
850
+            $exception_handling = (int) $dmap[$methodName]['exception_handling'];
851 851
         } else {
852 852
             $exception_handling = $this->exception_handling;
853 853
         }
@@ -868,14 +868,14 @@  discard block
 block discarded – undo
868 868
                     $r = call_user_func($func, $req);
869 869
                 }
870 870
                 if (!is_a($r, 'PhpXmlRpc\Response')) {
871
-                    $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler does not return an xmlrpc response object but a " . gettype($r));
871
+                    $this->getLogger()->error("XML-RPC: ".__METHOD__.": function '$funcName' registered as method handler does not return an xmlrpc response object but a ".gettype($r));
872 872
                     if (is_a($r, 'PhpXmlRpc\Value')) {
873 873
                         $r = new static::$responseClass($r);
874 874
                     } else {
875 875
                         $r = new static::$responseClass(
876 876
                             0,
877 877
                             PhpXmlRpc::$xmlrpcerr['server_error'],
878
-                            PhpXmlRpc::$xmlrpcstr['server_error'] . ": function does not return xmlrpc response object"
878
+                            PhpXmlRpc::$xmlrpcstr['server_error'].": function does not return xmlrpc response object"
879 879
                         );
880 880
                     }
881 881
                 }
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
                         $r = call_user_func_array($func, array($methodName, $params, $this->user_data));
891 891
                         // mimic EPI behaviour: if we get an array that looks like an error, make it an error response
892 892
                         if (is_array($r) && array_key_exists('faultCode', $r) && array_key_exists('faultString', $r)) {
893
-                            $r = new static::$responseClass(0, (int)$r['faultCode'], (string)$r['faultString']);
893
+                            $r = new static::$responseClass(0, (int) $r['faultCode'], (string) $r['faultString']);
894 894
                         } else {
895 895
                             // functions using EPI api should NOT return resp objects, so make sure we encode the
896 896
                             // return type correctly
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
      */
1022 1022
     protected function debugMsg($string)
1023 1023
     {
1024
-        $this->debug_info .= $string . "\n";
1024
+        $this->debug_info .= $string."\n";
1025 1025
     }
1026 1026
 
1027 1027
     /**
@@ -1313,7 +1313,7 @@  discard block
 block discarded – undo
1313 1313
                 $i++; // for error message, we count params from 1
1314 1314
                 return static::_xmlrpcs_multicall_error(new static::$responseClass(0,
1315 1315
                     PhpXmlRpc::$xmlrpcerr['incorrect_params'],
1316
-                    PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": probable xml error in param " . $i));
1316
+                    PhpXmlRpc::$xmlrpcstr['incorrect_params'].": probable xml error in param ".$i));
1317 1317
             }
1318 1318
         }
1319 1319
 
@@ -1394,7 +1394,7 @@  discard block
 block discarded – undo
1394 1394
             }
1395 1395
         } else {
1396 1396
             $numCalls = count($req);
1397
-            for ($i = 0; $i < $numCalls; $i++) {
1397
+            for ($i = 0; $i<$numCalls; $i++) {
1398 1398
                 $result[$i] = static::_xmlrpcs_multicall_do_call_phpvals($server, $req[$i]);
1399 1399
             }
1400 1400
         }
@@ -1422,7 +1422,7 @@  discard block
 block discarded – undo
1422 1422
         // From PHP 8.4 the E_STRICT constant has been deprecated and will emit deprecation notices.
1423 1423
         // PHP core and core extensions since PHP 8.0 and later do not emit E_STRICT notices at all.
1424 1424
         // On PHP 7 series before PHP 7.4, some functions conditionally emit E_STRICT notices.
1425
-        if (PHP_VERSION_ID >= 70400) {
1425
+        if (PHP_VERSION_ID>=70400) {
1426 1426
             static::error_occurred($errString);
1427 1427
         } elseif ($errCode != E_STRICT) {
1428 1428
                 static::error_occurred($errString);
@@ -1463,12 +1463,12 @@  discard block
 block discarded – undo
1463 1463
      */
1464 1464
     protected function xml_header($charsetEncoding = '')
1465 1465
     {
1466
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
1466
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
1467 1467
 
1468 1468
         if ($charsetEncoding != '') {
1469
-            return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?" . ">\n";
1469
+            return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?".">\n";
1470 1470
         } else {
1471
-            return "<?xml version=\"1.0\"?" . ">\n";
1471
+            return "<?xml version=\"1.0\"?".">\n";
1472 1472
         }
1473 1473
     }
1474 1474
 
@@ -1484,7 +1484,7 @@  discard block
 block discarded – undo
1484 1484
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1485 1485
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1486 1486
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1487
-                $this->logDeprecation('Getting property Request::' . $name . ' is deprecated');
1487
+                $this->logDeprecation('Getting property Request::'.$name.' is deprecated');
1488 1488
                 return $this->$name;
1489 1489
             case 'accepted_charset_encodings':
1490 1490
                 // manually implement the 'protected property' behaviour
@@ -1496,16 +1496,16 @@  discard block
 block discarded – undo
1496 1496
                     }
1497 1497
                 }
1498 1498
                 if ($canAccess) {
1499
-                    $this->logDeprecation('Getting property Request::' . $name . ' is deprecated');
1499
+                    $this->logDeprecation('Getting property Request::'.$name.' is deprecated');
1500 1500
                     return $this->accepted_compression;
1501 1501
                 } else {
1502
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1502
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1503 1503
                 }
1504 1504
                 break;
1505 1505
             default:
1506 1506
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1507 1507
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1508
-                trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1508
+                trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1509 1509
                 $result = null;
1510 1510
                 return $result;
1511 1511
         }
@@ -1522,7 +1522,7 @@  discard block
 block discarded – undo
1522 1522
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1523 1523
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1524 1524
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1525
-                $this->logDeprecation('Setting property Request::' . $name . ' is deprecated');
1525
+                $this->logDeprecation('Setting property Request::'.$name.' is deprecated');
1526 1526
                 $this->$name = $value;
1527 1527
                 break;
1528 1528
             case 'accepted_charset_encodings':
@@ -1535,16 +1535,16 @@  discard block
 block discarded – undo
1535 1535
                     }
1536 1536
                 }
1537 1537
                 if ($canAccess) {
1538
-                    $this->logDeprecation('Setting property Request::' . $name . ' is deprecated');
1538
+                    $this->logDeprecation('Setting property Request::'.$name.' is deprecated');
1539 1539
                     $this->accepted_compression = $value;
1540 1540
                 } else {
1541
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1541
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1542 1542
                 }
1543 1543
                 break;
1544 1544
             default:
1545 1545
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1546 1546
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1547
-                trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1547
+                trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1548 1548
         }
1549 1549
     }
1550 1550
 
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1560 1560
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1561 1561
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1562
-                $this->logDeprecation('Checking property Request::' . $name . ' is deprecated');
1562
+                $this->logDeprecation('Checking property Request::'.$name.' is deprecated');
1563 1563
                 return isset($this->$name);
1564 1564
             case 'accepted_charset_encodings':
1565 1565
                 // manually implement the 'protected property' behaviour
@@ -1571,7 +1571,7 @@  discard block
 block discarded – undo
1571 1571
                     }
1572 1572
                 }
1573 1573
                 if ($canAccess) {
1574
-                    $this->logDeprecation('Checking property Request::' . $name . ' is deprecated');
1574
+                    $this->logDeprecation('Checking property Request::'.$name.' is deprecated');
1575 1575
                     return isset($this->accepted_compression);
1576 1576
                 }
1577 1577
                 // break through voluntarily
@@ -1591,7 +1591,7 @@  discard block
 block discarded – undo
1591 1591
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1592 1592
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1593 1593
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1594
-                $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated');
1594
+                $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated');
1595 1595
                 unset($this->$name);
1596 1596
                 break;
1597 1597
             case 'accepted_charset_encodings':
@@ -1604,16 +1604,16 @@  discard block
 block discarded – undo
1604 1604
                     }
1605 1605
                 }
1606 1606
                 if ($canAccess) {
1607
-                    $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated');
1607
+                    $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated');
1608 1608
                     unset($this->accepted_compression);
1609 1609
                 } else {
1610
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1610
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1611 1611
                 }
1612 1612
                 break;
1613 1613
             default:
1614 1614
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1615 1615
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1616
-                trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1616
+                trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1617 1617
         }
1618 1618
     }
1619 1619
 }
Please login to merge, or discard this patch.
src/Value.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $this->me['struct'] = $val;
99 99
                     break;
100 100
                 default:
101
-                    $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": not a known type ($type)");
101
+                    $this->getLogger()->error("XML-RPC: ".__METHOD__.": not a known type ($type)");
102 102
             }
103 103
         }
104 104
     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         if ($typeOf !== 1) {
131
-            $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": not a scalar type ($type)");
131
+            $this->getLogger()->error("XML-RPC: ".__METHOD__.": not a scalar type ($type)");
132 132
             return 0;
133 133
         }
134 134
 
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
 
146 146
         switch ($this->mytype) {
147 147
             case 1:
148
-                $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': scalar xmlrpc value can have only one value');
148
+                $this->getLogger()->error('XML-RPC: '.__METHOD__.': scalar xmlrpc value can have only one value');
149 149
                 return 0;
150 150
             case 3:
151
-                $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': cannot add anonymous scalar to struct xmlrpc value');
151
+                $this->getLogger()->error('XML-RPC: '.__METHOD__.': cannot add anonymous scalar to struct xmlrpc value');
152 152
                 return 0;
153 153
             case 2:
154 154
                 // we're adding a scalar value to an array here
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
             return 1;
194 194
         } else {
195
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': already initialized as a [' . $this->kindOf() . ']');
195
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': already initialized as a ['.$this->kindOf().']');
196 196
             return 0;
197 197
         }
198 198
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
             return 1;
225 225
         } else {
226
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': already initialized as a [' . $this->kindOf() . ']');
226
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': already initialized as a ['.$this->kindOf().']');
227 227
             return 0;
228 228
         }
229 229
     }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         $val = reset($this->me);
289 289
         $typ = key($this->me);
290 290
 
291
-        return '<value>' . $this->serializeData($typ, $val, $charsetEncoding) . "</value>\n";
291
+        return '<value>'.$this->serializeData($typ, $val, $charsetEncoding)."</value>\n";
292 292
     }
293 293
 
294 294
     /**
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     {
304 304
         $this->logDeprecationUnlessCalledBy('serialize');
305 305
 
306
-        if (!isset(static::$xmlrpcTypes[(string)$typ])) {
306
+        if (!isset(static::$xmlrpcTypes[(string) $typ])) {
307 307
             return '';
308 308
         }
309 309
 
@@ -311,19 +311,19 @@  discard block
 block discarded – undo
311 311
             case 1:
312 312
                 switch ($typ) {
313 313
                     case static::$xmlrpcBase64:
314
-                        $rs = "<{$typ}>" . base64_encode($val) . "</{$typ}>";
314
+                        $rs = "<{$typ}>".base64_encode($val)."</{$typ}>";
315 315
                         break;
316 316
                     case static::$xmlrpcBoolean:
317
-                        $rs = "<{$typ}>" . ($val ? '1' : '0') . "</{$typ}>";
317
+                        $rs = "<{$typ}>".($val ? '1' : '0')."</{$typ}>";
318 318
                         break;
319 319
                     case static::$xmlrpcString:
320 320
                         // Do NOT use htmlentities, since it will produce named html entities, which are invalid xml
321
-                        $rs = "<{$typ}>" . $this->getCharsetEncoder()->encodeEntities($val, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "</{$typ}>";
321
+                        $rs = "<{$typ}>".$this->getCharsetEncoder()->encodeEntities($val, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding)."</{$typ}>";
322 322
                         break;
323 323
                     case static::$xmlrpcInt:
324 324
                     case static::$xmlrpcI4:
325 325
                     case static::$xmlrpcI8:
326
-                        $rs = "<{$typ}>" . (int)$val . "</{$typ}>";
326
+                        $rs = "<{$typ}>".(int) $val."</{$typ}>";
327 327
                         break;
328 328
                     case static::$xmlrpcDouble:
329 329
                         // avoid using standard conversion of float to string because it is locale-dependent,
@@ -331,16 +331,16 @@  discard block
 block discarded – undo
331 331
                         // sprintf('%F') could be most likely ok, but it fails e.g. on 2e-14.
332 332
                         // The code below tries its best at keeping max precision while avoiding exp notation,
333 333
                         // but there is of course no limit in the number of decimal places to be used...
334
-                        $rs = "<{$typ}>" . preg_replace('/\\.?0+$/', '', number_format((float)$val, PhpXmlRpc::$xmlpc_double_precision, '.', '')) . "</{$typ}>";
334
+                        $rs = "<{$typ}>".preg_replace('/\\.?0+$/', '', number_format((float) $val, PhpXmlRpc::$xmlpc_double_precision, '.', ''))."</{$typ}>";
335 335
                         break;
336 336
                     case static::$xmlrpcDateTime:
337 337
                         if (is_string($val)) {
338 338
                             $rs = "<{$typ}>{$val}</{$typ}>";
339 339
                         // DateTimeInterface is not present in php 5.4...
340 340
                         } elseif (is_a($val, 'DateTimeInterface') || is_a($val, 'DateTime')) {
341
-                            $rs = "<{$typ}>" . $val->format('Ymd\TH:i:s') . "</{$typ}>";
341
+                            $rs = "<{$typ}>".$val->format('Ymd\TH:i:s')."</{$typ}>";
342 342
                         } elseif (is_int($val)) {
343
-                            $rs = "<{$typ}>" . date('Ymd\TH:i:s', $val) . "</{$typ}>";
343
+                            $rs = "<{$typ}>".date('Ymd\TH:i:s', $val)."</{$typ}>";
344 344
                         } else {
345 345
                             // not really a good idea here: but what should we output anyway? left for backward compat...
346 346
                             $rs = "<{$typ}>{$val}</{$typ}>";
@@ -362,14 +362,14 @@  discard block
 block discarded – undo
362 362
             case 3:
363 363
                 // struct
364 364
                 if ($this->_php_class) {
365
-                    $rs = '<struct php_class="' . $this->_php_class . "\">\n";
365
+                    $rs = '<struct php_class="'.$this->_php_class."\">\n";
366 366
                 } else {
367 367
                     $rs = "<struct>\n";
368 368
                 }
369 369
                 $charsetEncoder = $this->getCharsetEncoder();
370 370
                 /** @var Value $val2 */
371 371
                 foreach ($val as $key2 => $val2) {
372
-                    $rs .= '<member><name>' . $charsetEncoder->encodeEntities($key2, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "</name>\n";
372
+                    $rs .= '<member><name>'.$charsetEncoder->encodeEntities($key2, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding)."</name>\n";
373 373
                     $rs .= $val2->serialize($charsetEncoding);
374 374
                     $rs .= "</member>\n";
375 375
                 }
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
      */
582 582
     public function structMemExists($key)
583 583
     {
584
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
584
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
585 585
 
586 586
         return array_key_exists($key, $this->me['struct']);
587 587
     }
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
      */
598 598
     public function structMem($key)
599 599
     {
600
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
600
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
601 601
 
602 602
         return $this->me['struct'][$key];
603 603
     }
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
      */
611 611
     public function structReset()
612 612
     {
613
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
613
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
614 614
 
615 615
         reset($this->me['struct']);
616 616
     }
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
      */
625 625
     public function structEach()
626 626
     {
627
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
627
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
628 628
 
629 629
         $key = key($this->me['struct']);
630 630
         $value = current($this->me['struct']);
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
      */
644 644
     public function arrayMem($key)
645 645
     {
646
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
646
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
647 647
 
648 648
         return $this->me['array'][$key];
649 649
     }
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      */
658 658
     public function arraySize()
659 659
     {
660
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
660
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
661 661
 
662 662
         return count($this->me['array']);
663 663
     }
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
      */
672 672
     public function structSize()
673 673
     {
674
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
674
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
675 675
 
676 676
         return count($this->me['struct']);
677 677
     }
@@ -683,12 +683,12 @@  discard block
 block discarded – undo
683 683
             case 'me':
684 684
             case 'mytype':
685 685
             case '_php_class':
686
-                $this->logDeprecation('Getting property Value::' . $name . ' is deprecated');
686
+                $this->logDeprecation('Getting property Value::'.$name.' is deprecated');
687 687
                 return $this->$name;
688 688
             default:
689 689
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
690 690
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
691
-                trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
691
+                trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
692 692
                 $result = null;
693 693
                 return $result;
694 694
         }
@@ -700,13 +700,13 @@  discard block
 block discarded – undo
700 700
             case 'me':
701 701
             case 'mytype':
702 702
             case '_php_class':
703
-                $this->logDeprecation('Setting property Value::' . $name . ' is deprecated');
703
+                $this->logDeprecation('Setting property Value::'.$name.' is deprecated');
704 704
                 $this->$name = $value;
705 705
                 break;
706 706
             default:
707 707
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
708 708
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
709
-                trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
709
+                trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
710 710
         }
711 711
     }
712 712
 
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
             case 'me':
717 717
             case 'mytype':
718 718
             case '_php_class':
719
-                $this->logDeprecation('Checking property Value::' . $name . ' is deprecated');
719
+                $this->logDeprecation('Checking property Value::'.$name.' is deprecated');
720 720
                 return isset($this->$name);
721 721
             default:
722 722
                 return false;
@@ -729,13 +729,13 @@  discard block
 block discarded – undo
729 729
             case 'me':
730 730
             case 'mytype':
731 731
             case '_php_class':
732
-                $this->logDeprecation('Unsetting property Value::' . $name . ' is deprecated');
732
+                $this->logDeprecation('Unsetting property Value::'.$name.' is deprecated');
733 733
                 unset($this->$name);
734 734
                 break;
735 735
             default:
736 736
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
737 737
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
738
-                trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
738
+                trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
739 739
         }
740 740
     }
741 741
 }
Please login to merge, or discard this patch.
demo/client/getstatename.php 1 patch
Spacing   +7 added lines, -7 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 - Getstatename demo</title></head>
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
 $stateNo = "";
18 18
 
19 19
 if (isset($_POST['stateno']) && $_POST['stateno'] != "") {
20
-    $stateNo = (int)$_POST['stateno'];
20
+    $stateNo = (int) $_POST['stateno'];
21 21
     $method = 'examples.getStateName';
22 22
     $arguments = array(
23 23
         new Value($stateNo, Value::$xmlrpcInt),
24 24
     );
25 25
     $req = new Request($method, $arguments);
26
-    output("Sending the following request:<pre>\n\n" . htmlentities($req->serialize()) .
26
+    output("Sending the following request:<pre>\n\n".htmlentities($req->serialize()).
27 27
         "\n\n</pre>Debug info of server data follows...\n\n");
28 28
     $client = new Client(XMLRPCSERVER);
29 29
     $client->setOption(Client::OPT_DEBUG, 1);
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
         $val = $resp->value();
33 33
         // NB: we are _assuming_ that the server did return a scalar xml-rpc value here.
34 34
         // If the server is not trusted, we might check that via `$val->kindOf() == 'scalar'`
35
-        output('<br/>State number <b>' . $stateNo . '</b> is <b>'
36
-            . htmlspecialchars($val->scalarVal()) . '</b><br/><br/>');
35
+        output('<br/>State number <b>'.$stateNo.'</b> is <b>'
36
+            . htmlspecialchars($val->scalarVal()).'</b><br/><br/>');
37 37
     } else {
38 38
         output('An error occurred: ');
39
-        output('<pre>Code: ' . htmlspecialchars($resp->faultCode())
40
-            . " Reason: '" . htmlspecialchars($resp->faultString()) . "'</pre>");
39
+        output('<pre>Code: '.htmlspecialchars($resp->faultCode())
40
+            . " Reason: '".htmlspecialchars($resp->faultString())."'</pre>");
41 41
     }
42 42
 }
43 43
 
Please login to merge, or discard this patch.
demo/server/proxy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @license code licensed under the BSD License: see file license.txt
17 17
  */
18 18
 
19
-require_once __DIR__ . "/_prepend.php";
19
+require_once __DIR__."/_prepend.php";
20 20
 
21 21
 // *** NB: WE BLOCK THIS FROM RUNNING BY DEFAULT IN CASE ACCESS IS GRANTED TO IT IN PRODUCTION BY MISTAKE ***
22 22
 // Comment out the following safeguard if you want to use it as is, but remember: this is an open relay !!!
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     //            fe. any url using the 'file://' protocol might be considered a hacking attempt
48 48
     $client = new Client($url);
49 49
 
50
-    if ($req->getNumParams() > 3) {
50
+    if ($req->getNumParams()>3) {
51 51
         // We have to set some options onto the client.
52 52
         // Note that if we do not untaint the received values, warnings might be generated...
53 53
         $options = $encoder->decode($req->getParam(3));
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                     $client->setOption(Client::OPT_VERIFY_PEER, $val);
88 88
                     break;
89 89
                 case 'Timeout':
90
-                    $timeout = (int)$val;
90
+                    $timeout = (int) $val;
91 91
                     break;
92 92
             } // switch
93 93
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     ///         X-forwarded-for anyway, unless they consider this server as trusted...)
101 101
     $reqMethod = $req->getParam(1)->scalarVal();
102 102
     $req = new Request($reqMethod);
103
-    if ($req->getNumParams() > 1) {
103
+    if ($req->getNumParams()>1) {
104 104
         $pars = $req->getParam(2);
105 105
         foreach ($pars as $par) {
106 106
             $req->addParam($par);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     // add debug info into response we give back to caller
111
-    Server::xmlrpc_debugmsg("Sending to server $url the payload: " . $req->serialize());
111
+    Server::xmlrpc_debugmsg("Sending to server $url the payload: ".$req->serialize());
112 112
 
113 113
     return $client->send($req, $timeout);
114 114
 }
Please login to merge, or discard this patch.
demo/server/methodProviders/testsuite.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
44 44
             } elseif (isset($_SERVER['PHP_AUTH_USER'])) {
45 45
                 $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : '';
46
-                $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass);
46
+                $headers['Authorization'] = 'Basic '.base64_encode($_SERVER['PHP_AUTH_USER'].':'.$basic_pass);
47 47
             } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) {
48 48
                 $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST'];
49 49
             }
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
     foreach ($cookies as $name => $cookieDesc) {
63 63
         if (is_array($cookieDesc)) {
64 64
             setcookie($name,
65
-                isset($cookieDesc['value']) ? (string)$cookieDesc['value'] : '',
65
+                isset($cookieDesc['value']) ? (string) $cookieDesc['value'] : '',
66 66
                 isset($cookieDesc['expires']) ? $cookieDesc['expires'] : 0,
67
-                isset($cookieDesc['path']) ? (string)$cookieDesc['path'] : '',
68
-                isset($cookieDesc['domain']) ? (string)$cookieDesc['domain'] : '',
69
-                isset($cookieDesc['secure']) ? (bool)$cookieDesc['secure'] : false,
70
-                isset($cookieDesc['httponly']) ? (bool)$cookieDesc['httponly'] : false
67
+                isset($cookieDesc['path']) ? (string) $cookieDesc['path'] : '',
68
+                isset($cookieDesc['domain']) ? (string) $cookieDesc['domain'] : '',
69
+                isset($cookieDesc['secure']) ? (bool) $cookieDesc['secure'] : false,
70
+                isset($cookieDesc['httponly']) ? (bool) $cookieDesc['httponly'] : false
71 71
             );
72 72
         } else {
73 73
             /// @todo
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 $sleep_sig = array(array(Value::$xmlrpcInt, Value::$xmlrpcInt));
105 105
 $sleep_doc = 'Sleeps for the requested number of seconds (between 1 and 60), before sending back the response';
106 106
 function sleepSeconds($secs) {
107
-    if ($secs > 0 && $secs < 61) {
107
+    if ($secs>0 && $secs<61) {
108 108
         sleep($secs);
109 109
     }
110 110
     return $secs;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     // Greek word 'kosme'. NB: NOT a valid ISO8859 string!
139 139
     // NB: we can only register this when setting internal encoding to UTF-8, or it will break system.listMethods
140
-    "tests.utf8methodname." . 'κόσμε' => array(
140
+    "tests.utf8methodname.".'κόσμε' => array(
141 141
         "function" => "exampleMethods::stringEcho",
142 142
         "signature" => exampleMethods::$stringecho_sig,
143 143
         "docstring" => exampleMethods::$stringecho_doc,
Please login to merge, or discard this patch.