Completed
Push — master ( 210788...d4814b )
by Gaetano
19s queued 16s
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,10 +434,10 @@  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
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': http headers already sent before response is fully generated. Check for php warning or error messages');
440
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': http headers already sent before response is fully generated. Check for php warning or error messages');
441 441
         }
442 442
 
443 443
         print $payload;
@@ -526,9 +526,9 @@  discard block
 block discarded – undo
526 526
             $numParams = count($in);
527 527
         }
528 528
         foreach ($sigs as $curSig) {
529
-            if (count($curSig) == $numParams + 1) {
529
+            if (count($curSig) == $numParams+1) {
530 530
                 $itsOK = 1;
531
-                for ($n = 0; $n < $numParams; $n++) {
531
+                for ($n = 0; $n<$numParams; $n++) {
532 532
                     if (is_object($in)) {
533 533
                         $p = $in->getParam($n);
534 534
                         if ($p->kindOf() == 'scalar') {
@@ -541,10 +541,10 @@  discard block
 block discarded – undo
541 541
                     }
542 542
 
543 543
                     // param index is $n+1, as first member of sig is return type
544
-                    if ($pt != $curSig[$n + 1] && $curSig[$n + 1] != Value::$xmlrpcValue) {
544
+                    if ($pt != $curSig[$n+1] && $curSig[$n+1] != Value::$xmlrpcValue) {
545 545
                         $itsOK = 0;
546
-                        $pno = $n + 1;
547
-                        $wanted = $curSig[$n + 1];
546
+                        $pno = $n+1;
547
+                        $wanted = $curSig[$n+1];
548 548
                         $got = $pt;
549 549
                         break;
550 550
                     }
@@ -571,10 +571,10 @@  discard block
 block discarded – undo
571 571
         // check if $_SERVER is populated: it might have been disabled via ini file
572 572
         // (this is true even when in CLI mode)
573 573
         if (count($_SERVER) == 0) {
574
-            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': cannot parse request headers as $_SERVER is not populated');
574
+            $this->getLogger()->error('XML-RPC: '.__METHOD__.': cannot parse request headers as $_SERVER is not populated');
575 575
         }
576 576
 
577
-        if ($this->debug > 1) {
577
+        if ($this->debug>1) {
578 578
             if (function_exists('getallheaders')) {
579 579
                 $this->debugMsg(''); // empty line
580 580
                 foreach (getallheaders() as $name => $val) {
@@ -599,13 +599,13 @@  discard block
 block discarded – undo
599 599
                 if (function_exists('gzinflate') && in_array($contentEncoding, $this->accepted_compression)) {
600 600
                     if ($contentEncoding == 'deflate' && $degzdata = @gzuncompress($data)) {
601 601
                         $data = $degzdata;
602
-                        if ($this->debug > 1) {
603
-                            $this->debugMsg("\n+++INFLATED REQUEST+++[" . strlen($data) . " chars]+++\n" . $data . "\n+++END+++");
602
+                        if ($this->debug>1) {
603
+                            $this->debugMsg("\n+++INFLATED REQUEST+++[".strlen($data)." chars]+++\n".$data."\n+++END+++");
604 604
                         }
605 605
                     } elseif ($contentEncoding == 'gzip' && $degzdata = @gzinflate(substr($data, 10))) {
606 606
                         $data = $degzdata;
607
-                        if ($this->debug > 1) {
608
-                            $this->debugMsg("+++INFLATED REQUEST+++[" . strlen($data) . " chars]+++\n" . $data . "\n+++END+++");
607
+                        if ($this->debug>1) {
608
+                            $this->debugMsg("+++INFLATED REQUEST+++[".strlen($data)." chars]+++\n".$data."\n+++END+++");
609 609
                         }
610 610
                     } else {
611 611
                         $r = new static::$responseClass(0, PhpXmlRpc::$xmlrpcerr['server_decompress_fail'],
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
                     if ($reqEncoding == 'ISO-8859-1') {
694 694
                         $data = utf8_encode($data);
695 695
                     } else {
696
-                        $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': unsupported charset encoding of received request: ' . $reqEncoding);
696
+                        $this->getLogger()->error('XML-RPC: '.__METHOD__.': unsupported charset encoding of received request: '.$reqEncoding);
697 697
                     }
698 698
                 }
699 699
             }
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
             preg_match('/^XML error ([0-9]+)/', $_xh['isf_reason'], $matches);
728 728
             return new static::$responseClass(
729 729
                 0,
730
-                PhpXmlRpc::$xmlrpcerrxml + (int)$matches[1],
730
+                PhpXmlRpc::$xmlrpcerrxml+(int) $matches[1],
731 731
                 $_xh['isf_reason']);
732 732
         } elseif ($_xh['isf']) {
733 733
             /// @todo separate better the various cases, as we have done in Request::parseResponse: invalid xml-rpc vs.
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
             return new static::$responseClass(
736 736
                 0,
737 737
                 PhpXmlRpc::$xmlrpcerr['invalid_request'],
738
-                PhpXmlRpc::$xmlrpcstr['invalid_request'] . ' ' . $_xh['isf_reason']);
738
+                PhpXmlRpc::$xmlrpcstr['invalid_request'].' '.$_xh['isf_reason']);
739 739
         } else {
740 740
             // small layering violation in favor of speed and memory usage: we should allow the 'execute' method handle
741 741
             // this, but in the most common scenario (xml-rpc values type server with some methods registered as phpvals)
@@ -745,8 +745,8 @@  discard block
 block discarded – undo
745 745
                     ($this->dmap[$_xh['method']]['parameters_type'] != 'xmlrpcvals')
746 746
                 )
747 747
             ) {
748
-                if ($this->debug > 1) {
749
-                    $this->debugMsg("\n+++PARSED+++\n" . var_export($_xh['params'], true) . "\n+++END+++");
748
+                if ($this->debug>1) {
749
+                    $this->debugMsg("\n+++PARSED+++\n".var_export($_xh['params'], true)."\n+++END+++");
750 750
                 }
751 751
 
752 752
                 return $this->execute($_xh['method'], $_xh['params'], $_xh['pt']);
@@ -754,12 +754,12 @@  discard block
 block discarded – undo
754 754
                 // build a Request object with data parsed from xml and add parameters in
755 755
                 $req = new Request($_xh['method']);
756 756
                 /// @todo for more speed, we could just pass in the array to the constructor (and loose the type validation)...
757
-                for ($i = 0; $i < count($_xh['params']); $i++) {
757
+                for ($i = 0; $i<count($_xh['params']); $i++) {
758 758
                     $req->addParam($_xh['params'][$i]);
759 759
                 }
760 760
 
761
-                if ($this->debug > 1) {
762
-                    $this->debugMsg("\n+++PARSED+++\n" . var_export($req, true) . "\n+++END+++");
761
+                if ($this->debug>1) {
762
+                    $this->debugMsg("\n+++PARSED+++\n".var_export($req, true)."\n+++END+++");
763 763
                 }
764 764
 
765 765
                 return $this->execute($req);
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
                 return new static::$responseClass(
810 810
                     0,
811 811
                     PhpXmlRpc::$xmlrpcerr['incorrect_params'],
812
-                    PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": {$errStr}"
812
+                    PhpXmlRpc::$xmlrpcstr['incorrect_params'].": {$errStr}"
813 813
                 );
814 814
             }
815 815
         }
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
         // build string representation of function 'name'
825 825
         if (is_array($func)) {
826 826
             if (is_object($func[0])) {
827
-                $funcName = get_class($func[0]) . '->' . $func[1];
827
+                $funcName = get_class($func[0]).'->'.$func[1];
828 828
             } else {
829 829
                 $funcName = implode('::', $func);
830 830
             }
@@ -836,16 +836,16 @@  discard block
 block discarded – undo
836 836
 
837 837
         // verify that function to be invoked is in fact callable
838 838
         if (!is_callable($func)) {
839
-            $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler is not callable");
839
+            $this->getLogger()->error("XML-RPC: ".__METHOD__.": function '$funcName' registered as method handler is not callable");
840 840
             return new static::$responseClass(
841 841
                 0,
842 842
                 PhpXmlRpc::$xmlrpcerr['server_error'],
843
-                PhpXmlRpc::$xmlrpcstr['server_error'] . ": no function matches method"
843
+                PhpXmlRpc::$xmlrpcstr['server_error'].": no function matches method"
844 844
             );
845 845
         }
846 846
 
847 847
         if (isset($dmap[$methodName]['exception_handling'])) {
848
-            $exception_handling = (int)$dmap[$methodName]['exception_handling'];
848
+            $exception_handling = (int) $dmap[$methodName]['exception_handling'];
849 849
         } else {
850 850
             $exception_handling = $this->exception_handling;
851 851
         }
@@ -866,14 +866,14 @@  discard block
 block discarded – undo
866 866
                     $r = call_user_func($func, $req);
867 867
                 }
868 868
                 if (!is_a($r, 'PhpXmlRpc\Response')) {
869
-                    $this->getLogger()->error("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler does not return an xmlrpc response object but a " . gettype($r));
869
+                    $this->getLogger()->error("XML-RPC: ".__METHOD__.": function '$funcName' registered as method handler does not return an xmlrpc response object but a ".gettype($r));
870 870
                     if (is_a($r, 'PhpXmlRpc\Value')) {
871 871
                         $r = new static::$responseClass($r);
872 872
                     } else {
873 873
                         $r = new static::$responseClass(
874 874
                             0,
875 875
                             PhpXmlRpc::$xmlrpcerr['server_error'],
876
-                            PhpXmlRpc::$xmlrpcstr['server_error'] . ": function does not return xmlrpc response object"
876
+                            PhpXmlRpc::$xmlrpcstr['server_error'].": function does not return xmlrpc response object"
877 877
                         );
878 878
                     }
879 879
                 }
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
                         $r = call_user_func_array($func, array($methodName, $params, $this->user_data));
889 889
                         // mimic EPI behaviour: if we get an array that looks like an error, make it an error response
890 890
                         if (is_array($r) && array_key_exists('faultCode', $r) && array_key_exists('faultString', $r)) {
891
-                            $r = new static::$responseClass(0, (integer)$r['faultCode'], (string)$r['faultString']);
891
+                            $r = new static::$responseClass(0, (integer) $r['faultCode'], (string) $r['faultString']);
892 892
                         } else {
893 893
                             // functions using EPI api should NOT return resp objects, so make sure we encode the
894 894
                             // return type correctly
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
      */
1020 1020
     protected function debugMsg($string)
1021 1021
     {
1022
-        $this->debug_info .= $string . "\n";
1022
+        $this->debug_info .= $string."\n";
1023 1023
     }
1024 1024
 
1025 1025
     /**
@@ -1310,7 +1310,7 @@  discard block
 block discarded – undo
1310 1310
                 $i++; // for error message, we count params from 1
1311 1311
                 return static::_xmlrpcs_multicall_error(new static::$responseClass(0,
1312 1312
                     PhpXmlRpc::$xmlrpcerr['incorrect_params'],
1313
-                    PhpXmlRpc::$xmlrpcstr['incorrect_params'] . ": probable xml error in param " . $i));
1313
+                    PhpXmlRpc::$xmlrpcstr['incorrect_params'].": probable xml error in param ".$i));
1314 1314
             }
1315 1315
         }
1316 1316
 
@@ -1391,7 +1391,7 @@  discard block
 block discarded – undo
1391 1391
             }
1392 1392
         } else {
1393 1393
             $numCalls = count($req);
1394
-            for ($i = 0; $i < $numCalls; $i++) {
1394
+            for ($i = 0; $i<$numCalls; $i++) {
1395 1395
                 $result[$i] = static::_xmlrpcs_multicall_do_call_phpvals($server, $req[$i]);
1396 1396
             }
1397 1397
         }
@@ -1419,7 +1419,7 @@  discard block
 block discarded – undo
1419 1419
         // From PHP 8.4 the E_STRICT constant has been deprecated and will emit deprecation notices.
1420 1420
         // PHP core and core extensions since PHP 8.0 and later do not emit E_STRICT notices at all.
1421 1421
         // On PHP 7 series before PHP 7.4, some functions conditionally emit E_STRICT notices.
1422
-        if (PHP_VERSION_ID >= 70400) {
1422
+        if (PHP_VERSION_ID>=70400) {
1423 1423
             static::error_occurred($errString);
1424 1424
         } elseif ($errCode != E_STRICT) {
1425 1425
                 static::error_occurred($errString);
@@ -1460,12 +1460,12 @@  discard block
 block discarded – undo
1460 1460
      */
1461 1461
     protected function xml_header($charsetEncoding = '')
1462 1462
     {
1463
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
1463
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
1464 1464
 
1465 1465
         if ($charsetEncoding != '') {
1466
-            return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?" . ">\n";
1466
+            return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?".">\n";
1467 1467
         } else {
1468
-            return "<?xml version=\"1.0\"?" . ">\n";
1468
+            return "<?xml version=\"1.0\"?".">\n";
1469 1469
         }
1470 1470
     }
1471 1471
 
@@ -1481,7 +1481,7 @@  discard block
 block discarded – undo
1481 1481
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1482 1482
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1483 1483
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1484
-                $this->logDeprecation('Getting property Request::' . $name . ' is deprecated');
1484
+                $this->logDeprecation('Getting property Request::'.$name.' is deprecated');
1485 1485
                 return $this->$name;
1486 1486
             case 'accepted_charset_encodings':
1487 1487
                 // manually implement the 'protected property' behaviour
@@ -1493,16 +1493,16 @@  discard block
 block discarded – undo
1493 1493
                     }
1494 1494
                 }
1495 1495
                 if ($canAccess) {
1496
-                    $this->logDeprecation('Getting property Request::' . $name . ' is deprecated');
1496
+                    $this->logDeprecation('Getting property Request::'.$name.' is deprecated');
1497 1497
                     return $this->accepted_compression;
1498 1498
                 } else {
1499
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1499
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1500 1500
                 }
1501 1501
                 break;
1502 1502
             default:
1503 1503
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1504 1504
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1505
-                trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1505
+                trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1506 1506
                 $result = null;
1507 1507
                 return $result;
1508 1508
         }
@@ -1519,7 +1519,7 @@  discard block
 block discarded – undo
1519 1519
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1520 1520
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1521 1521
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1522
-                $this->logDeprecation('Setting property Request::' . $name . ' is deprecated');
1522
+                $this->logDeprecation('Setting property Request::'.$name.' is deprecated');
1523 1523
                 $this->$name = $value;
1524 1524
                 break;
1525 1525
             case 'accepted_charset_encodings':
@@ -1532,16 +1532,16 @@  discard block
 block discarded – undo
1532 1532
                     }
1533 1533
                 }
1534 1534
                 if ($canAccess) {
1535
-                    $this->logDeprecation('Setting property Request::' . $name . ' is deprecated');
1535
+                    $this->logDeprecation('Setting property Request::'.$name.' is deprecated');
1536 1536
                     $this->accepted_compression = $value;
1537 1537
                 } else {
1538
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1538
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1539 1539
                 }
1540 1540
                 break;
1541 1541
             default:
1542 1542
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1543 1543
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1544
-                trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1544
+                trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1545 1545
         }
1546 1546
     }
1547 1547
 
@@ -1556,7 +1556,7 @@  discard block
 block discarded – undo
1556 1556
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1557 1557
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1558 1558
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1559
-                $this->logDeprecation('Checking property Request::' . $name . ' is deprecated');
1559
+                $this->logDeprecation('Checking property Request::'.$name.' is deprecated');
1560 1560
                 return isset($this->$name);
1561 1561
             case 'accepted_charset_encodings':
1562 1562
                 // manually implement the 'protected property' behaviour
@@ -1568,7 +1568,7 @@  discard block
 block discarded – undo
1568 1568
                     }
1569 1569
                 }
1570 1570
                 if ($canAccess) {
1571
-                    $this->logDeprecation('Checking property Request::' . $name . ' is deprecated');
1571
+                    $this->logDeprecation('Checking property Request::'.$name.' is deprecated');
1572 1572
                     return isset($this->accepted_compression);
1573 1573
                 }
1574 1574
                 // break through voluntarily
@@ -1588,7 +1588,7 @@  discard block
 block discarded – undo
1588 1588
             case self::OPT_FUNCTIONS_PARAMETERS_TYPE:
1589 1589
             case self::OPT_PHPVALS_ENCODING_OPTIONS:
1590 1590
             case self::OPT_RESPONSE_CHARSET_ENCODING:
1591
-                $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated');
1591
+                $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated');
1592 1592
                 unset($this->$name);
1593 1593
                 break;
1594 1594
             case 'accepted_charset_encodings':
@@ -1601,16 +1601,16 @@  discard block
 block discarded – undo
1601 1601
                     }
1602 1602
                 }
1603 1603
                 if ($canAccess) {
1604
-                    $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated');
1604
+                    $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated');
1605 1605
                     unset($this->accepted_compression);
1606 1606
                 } else {
1607
-                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR);
1607
+                    trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR);
1608 1608
                 }
1609 1609
                 break;
1610 1610
             default:
1611 1611
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1612 1612
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1613
-                trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1613
+                trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1614 1614
         }
1615 1615
     }
1616 1616
 }
Please login to merge, or discard this patch.