@@ -251,7 +251,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -1417,7 +1417,7 @@ discard block |
||
1417 | 1417 | } |
1418 | 1418 | |
1419 | 1419 | //if ($errCode != E_NOTICE && $errCode != E_WARNING && $errCode != E_USER_NOTICE && $errCode != E_USER_WARNING) |
1420 | - if (PHP_VERSION_ID >= 70400) { |
|
1420 | + if (PHP_VERSION_ID>=70400) { |
|
1421 | 1421 | static::error_occurred($errString); |
1422 | 1422 | } elseif ($errCode != E_STRICT) { |
1423 | 1423 | static::error_occurred($errString); |
@@ -1458,12 +1458,12 @@ discard block |
||
1458 | 1458 | */ |
1459 | 1459 | protected function xml_header($charsetEncoding = '') |
1460 | 1460 | { |
1461 | - $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated'); |
|
1461 | + $this->logDeprecation('Method '.__METHOD__.' is deprecated'); |
|
1462 | 1462 | |
1463 | 1463 | if ($charsetEncoding != '') { |
1464 | - return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?" . ">\n"; |
|
1464 | + return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\"?".">\n"; |
|
1465 | 1465 | } else { |
1466 | - return "<?xml version=\"1.0\"?" . ">\n"; |
|
1466 | + return "<?xml version=\"1.0\"?".">\n"; |
|
1467 | 1467 | } |
1468 | 1468 | } |
1469 | 1469 | |
@@ -1479,7 +1479,7 @@ discard block |
||
1479 | 1479 | case self::OPT_FUNCTIONS_PARAMETERS_TYPE: |
1480 | 1480 | case self::OPT_PHPVALS_ENCODING_OPTIONS: |
1481 | 1481 | case self::OPT_RESPONSE_CHARSET_ENCODING: |
1482 | - $this->logDeprecation('Getting property Request::' . $name . ' is deprecated'); |
|
1482 | + $this->logDeprecation('Getting property Request::'.$name.' is deprecated'); |
|
1483 | 1483 | return $this->$name; |
1484 | 1484 | case 'accepted_charset_encodings': |
1485 | 1485 | // manually implement the 'protected property' behaviour |
@@ -1491,16 +1491,16 @@ discard block |
||
1491 | 1491 | } |
1492 | 1492 | } |
1493 | 1493 | if ($canAccess) { |
1494 | - $this->logDeprecation('Getting property Request::' . $name . ' is deprecated'); |
|
1494 | + $this->logDeprecation('Getting property Request::'.$name.' is deprecated'); |
|
1495 | 1495 | return $this->accepted_compression; |
1496 | 1496 | } else { |
1497 | - trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR); |
|
1497 | + trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR); |
|
1498 | 1498 | } |
1499 | 1499 | break; |
1500 | 1500 | default: |
1501 | 1501 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
1502 | 1502 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
1503 | - trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
1503 | + trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
1504 | 1504 | $result = null; |
1505 | 1505 | return $result; |
1506 | 1506 | } |
@@ -1517,7 +1517,7 @@ discard block |
||
1517 | 1517 | case self::OPT_FUNCTIONS_PARAMETERS_TYPE: |
1518 | 1518 | case self::OPT_PHPVALS_ENCODING_OPTIONS: |
1519 | 1519 | case self::OPT_RESPONSE_CHARSET_ENCODING: |
1520 | - $this->logDeprecation('Setting property Request::' . $name . ' is deprecated'); |
|
1520 | + $this->logDeprecation('Setting property Request::'.$name.' is deprecated'); |
|
1521 | 1521 | $this->$name = $value; |
1522 | 1522 | break; |
1523 | 1523 | case 'accepted_charset_encodings': |
@@ -1530,16 +1530,16 @@ discard block |
||
1530 | 1530 | } |
1531 | 1531 | } |
1532 | 1532 | if ($canAccess) { |
1533 | - $this->logDeprecation('Setting property Request::' . $name . ' is deprecated'); |
|
1533 | + $this->logDeprecation('Setting property Request::'.$name.' is deprecated'); |
|
1534 | 1534 | $this->accepted_compression = $value; |
1535 | 1535 | } else { |
1536 | - trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR); |
|
1536 | + trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR); |
|
1537 | 1537 | } |
1538 | 1538 | break; |
1539 | 1539 | default: |
1540 | 1540 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
1541 | 1541 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
1542 | - trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
1542 | + trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
1543 | 1543 | } |
1544 | 1544 | } |
1545 | 1545 | |
@@ -1554,7 +1554,7 @@ discard block |
||
1554 | 1554 | case self::OPT_FUNCTIONS_PARAMETERS_TYPE: |
1555 | 1555 | case self::OPT_PHPVALS_ENCODING_OPTIONS: |
1556 | 1556 | case self::OPT_RESPONSE_CHARSET_ENCODING: |
1557 | - $this->logDeprecation('Checking property Request::' . $name . ' is deprecated'); |
|
1557 | + $this->logDeprecation('Checking property Request::'.$name.' is deprecated'); |
|
1558 | 1558 | return isset($this->$name); |
1559 | 1559 | case 'accepted_charset_encodings': |
1560 | 1560 | // manually implement the 'protected property' behaviour |
@@ -1566,7 +1566,7 @@ discard block |
||
1566 | 1566 | } |
1567 | 1567 | } |
1568 | 1568 | if ($canAccess) { |
1569 | - $this->logDeprecation('Checking property Request::' . $name . ' is deprecated'); |
|
1569 | + $this->logDeprecation('Checking property Request::'.$name.' is deprecated'); |
|
1570 | 1570 | return isset($this->accepted_compression); |
1571 | 1571 | } |
1572 | 1572 | // break through voluntarily |
@@ -1586,7 +1586,7 @@ discard block |
||
1586 | 1586 | case self::OPT_FUNCTIONS_PARAMETERS_TYPE: |
1587 | 1587 | case self::OPT_PHPVALS_ENCODING_OPTIONS: |
1588 | 1588 | case self::OPT_RESPONSE_CHARSET_ENCODING: |
1589 | - $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated'); |
|
1589 | + $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated'); |
|
1590 | 1590 | unset($this->$name); |
1591 | 1591 | break; |
1592 | 1592 | case 'accepted_charset_encodings': |
@@ -1599,16 +1599,16 @@ discard block |
||
1599 | 1599 | } |
1600 | 1600 | } |
1601 | 1601 | if ($canAccess) { |
1602 | - $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated'); |
|
1602 | + $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated'); |
|
1603 | 1603 | unset($this->accepted_compression); |
1604 | 1604 | } else { |
1605 | - trigger_error("Cannot access protected property Server::accepted_charset_encodings in " . __FILE__, E_USER_ERROR); |
|
1605 | + trigger_error("Cannot access protected property Server::accepted_charset_encodings in ".__FILE__, E_USER_ERROR); |
|
1606 | 1606 | } |
1607 | 1607 | break; |
1608 | 1608 | default: |
1609 | 1609 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
1610 | 1610 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
1611 | - trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
1611 | + trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
1612 | 1612 | } |
1613 | 1613 | } |
1614 | 1614 | } |