@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/ServerAwareTestCase.php'; |
|
3 | +include_once __DIR__.'/ServerAwareTestCase.php'; |
|
4 | 4 | |
5 | 5 | abstract class PhpXmlRpc_WebTestCase extends PhpXmlRpc_ServerAwareTestCase |
6 | 6 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | protected function request($path, $method = 'GET', $payload = '', $emptyPageOk = false) |
17 | 17 | { |
18 | - $url = $this->baseUrl . $path; |
|
18 | + $url = $this->baseUrl.$path; |
|
19 | 19 | |
20 | 20 | $ch = curl_init($url); |
21 | 21 | curl_setopt_array($ch, array( |
@@ -29,14 +29,14 @@ discard block |
||
29 | 29 | CURLOPT_POSTFIELDS => $payload |
30 | 30 | )); |
31 | 31 | } |
32 | - $cookie = 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId; |
|
32 | + $cookie = 'PHPUNIT_RANDOM_TEST_ID='.static::$randId; |
|
33 | 33 | if ($this->collectCodeCoverageInformation) |
34 | 34 | { |
35 | - $cookie .= '; PHPUNIT_SELENIUM_TEST_ID=' . $this->testId; |
|
35 | + $cookie .= '; PHPUNIT_SELENIUM_TEST_ID='.$this->testId; |
|
36 | 36 | } |
37 | 37 | curl_setopt($ch, CURLOPT_COOKIE, $cookie); |
38 | 38 | |
39 | - if ($this->args['DEBUG'] > 0) { |
|
39 | + if ($this->args['DEBUG']>0) { |
|
40 | 40 | curl_setopt($ch, CURLOPT_VERBOSE, 1); |
41 | 41 | } |
42 | 42 | $page = curl_exec($ch); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | protected function newClient($path) |
63 | 63 | { |
64 | - $client = new \PhpXmlRpc\Client($this->baseUrl . $path); |
|
64 | + $client = new \PhpXmlRpc\Client($this->baseUrl.$path); |
|
65 | 65 | $client->setCookie('PHPUNIT_RANDOM_TEST_ID', static::$randId); |
66 | 66 | if ($this->collectCodeCoverageInformation) { |
67 | 67 | $client->setCookie('PHPUNIT_SELENIUM_TEST_ID', $this->testId); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | // check for command line params (passed as env vars) vs. web page input params (passed as GET/POST) |
47 | 47 | // Note that the only use-case for web-page mode is when this is used by benchmark.php |
48 | 48 | if (!isset($_SERVER['REQUEST_METHOD'])) { |
49 | - foreach($_SERVER as $key => $val) { |
|
49 | + foreach ($_SERVER as $key => $val) { |
|
50 | 50 | if (array_key_exists($key, $args)) { |
51 | 51 | $$key = $val; |
52 | 52 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | //} |
92 | 92 | } |
93 | 93 | if ($HTTPURI[0] != '/') { |
94 | - $HTTPURI = '/' . $HTTPURI; |
|
94 | + $HTTPURI = '/'.$HTTPURI; |
|
95 | 95 | } |
96 | 96 | $args['HTTPURI'] = $HTTPURI; |
97 | 97 | |
@@ -105,21 +105,21 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | if (isset($HTTPSIGNOREPEER)) { |
108 | - $args['HTTPSIGNOREPEER'] = (bool)$HTTPSIGNOREPEER; |
|
108 | + $args['HTTPSIGNOREPEER'] = (bool) $HTTPSIGNOREPEER; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | if (isset($HTTPSVERIFYHOST)) { |
112 | - $args['HTTPSVERIFYHOST'] = (int)$HTTPSVERIFYHOST; |
|
112 | + $args['HTTPSVERIFYHOST'] = (int) $HTTPSVERIFYHOST; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | if (isset($SSLVERSION)) { |
116 | - $args['SSLVERSION'] = (int)$SSLVERSION; |
|
116 | + $args['SSLVERSION'] = (int) $SSLVERSION; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | if (isset($PROXYSERVER)) { |
120 | 120 | $arr = explode(':', $PROXYSERVER); |
121 | 121 | $args['PROXYSERVER'] = $arr[0]; |
122 | - if (count($arr) > 1) { |
|
122 | + if (count($arr)>1) { |
|
123 | 123 | $args['PROXYPORT'] = $arr[1]; |
124 | 124 | } else { |
125 | 125 | $args['PROXYPORT'] = 8080; |
@@ -5,8 +5,8 @@ |
||
5 | 5 | * It mimics server.php, but does not rely on other autoload mechanisms than the loading of xmlrpc.inc and xmlrpcs.inc |
6 | 6 | */ |
7 | 7 | |
8 | -require_once __DIR__ . "/../../lib/xmlrpc.inc"; |
|
9 | -require_once __DIR__ . "/../../lib/xmlrpcs.inc"; |
|
8 | +require_once __DIR__."/../../lib/xmlrpc.inc"; |
|
9 | +require_once __DIR__."/../../lib/xmlrpcs.inc"; |
|
10 | 10 | |
11 | 11 | $signatures1 = include(__DIR__.'/methodProviders/functions.php'); |
12 | 12 | $signatures2 = include(__DIR__.'/methodProviders/interop.php'); |
@@ -4,15 +4,15 @@ discard block |
||
4 | 4 | * A test file designed to test the legacy API class-loading mechanism, ie. not using phpunit/composer's autoload_ |
5 | 5 | */ |
6 | 6 | |
7 | -include_once __DIR__ . '/../lib/xmlrpc.inc'; |
|
7 | +include_once __DIR__.'/../lib/xmlrpc.inc'; |
|
8 | 8 | |
9 | -include_once __DIR__ . '/parse_args.php'; |
|
9 | +include_once __DIR__.'/parse_args.php'; |
|
10 | 10 | |
11 | 11 | $args = argParser::getArgs(); |
12 | -$baseurl = 'http://' . $args['HTTPSERVER'] . str_replace('/server.php', '/legacy.php', $args['HTTPURI']); |
|
12 | +$baseurl = 'http://'.$args['HTTPSERVER'].str_replace('/server.php', '/legacy.php', $args['HTTPURI']); |
|
13 | 13 | |
14 | 14 | $randId = uniqid(); |
15 | -file_put_contents(sys_get_temp_dir() . '/phpunit_rand_id.txt', $randId); |
|
15 | +file_put_contents(sys_get_temp_dir().'/phpunit_rand_id.txt', $randId); |
|
16 | 16 | |
17 | 17 | $client = new xmlrpc_client($baseurl); |
18 | 18 | $client->setCookie('PHPUNIT_RANDOM_TEST_ID', $randId); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $req = new xmlrpcmsg('system.listMethods', array()); |
21 | 21 | $resp = $client->send($req); |
22 | 22 | if ($resp->faultCode() !== 0) { |
23 | - throw new \Exception("system.listMethods returned fault " . $resp->faultCode()); |
|
23 | + throw new \Exception("system.listMethods returned fault ".$resp->faultCode()); |
|
24 | 24 | } |
25 | 25 | |
26 | -unlink(sys_get_temp_dir() . '/phpunit_rand_id.txt'); |
|
26 | +unlink(sys_get_temp_dir().'/phpunit_rand_id.txt'); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/ServerAwareTestCase.php'; |
|
3 | +include_once __DIR__.'/ServerAwareTestCase.php'; |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Long-term, this should replace all testing of the legacy API done via the main test-suite... |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | /// @todo pass on as cli args for the executed script all the args that are already parsed by now, plus $this->testId |
13 | 13 | |
14 | - exec('php ' . __DIR__ . '/legacy_loader_test.php', $out, $result); |
|
14 | + exec('php '.__DIR__.'/legacy_loader_test.php', $out, $result); |
|
15 | 15 | |
16 | 16 | /// @todo dump output if in debug mode or if test fails |
17 | 17 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | return true; |
86 | 86 | } else { |
87 | - $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': value passed in must be a PhpXmlRpc\Value'); |
|
87 | + $this->getLogger()->error('XML-RPC: '.__METHOD__.': value passed in must be a PhpXmlRpc\Value'); |
|
88 | 88 | return false; |
89 | 89 | } |
90 | 90 | } |
@@ -134,17 +134,17 @@ discard block |
||
134 | 134 | $this->logDeprecationUnlessCalledBy('serialize'); |
135 | 135 | |
136 | 136 | if ($charsetEncoding != '') { |
137 | - $this->content_type = 'text/xml; charset=' . $charsetEncoding; |
|
137 | + $this->content_type = 'text/xml; charset='.$charsetEncoding; |
|
138 | 138 | } else { |
139 | 139 | $this->content_type = 'text/xml'; |
140 | 140 | } |
141 | 141 | |
142 | 142 | $result = $this->xml_header($charsetEncoding); |
143 | - $result .= '<methodName>' . $this->getCharsetEncoder()->encodeEntities( |
|
144 | - $this->methodname, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . "</methodName>\n"; |
|
143 | + $result .= '<methodName>'.$this->getCharsetEncoder()->encodeEntities( |
|
144 | + $this->methodname, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding)."</methodName>\n"; |
|
145 | 145 | $result .= "<params>\n"; |
146 | 146 | foreach ($this->params as $p) { |
147 | - $result .= "<param>\n" . $p->serialize($charsetEncoding) . |
|
147 | + $result .= "<param>\n".$p->serialize($charsetEncoding). |
|
148 | 148 | "</param>\n"; |
149 | 149 | } |
150 | 150 | $result .= "</params>\n"; |
@@ -164,9 +164,9 @@ discard block |
||
164 | 164 | $this->logDeprecationUnlessCalledBy('createPayload'); |
165 | 165 | |
166 | 166 | if ($charsetEncoding != '') { |
167 | - return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\" ?" . ">\n<methodCall>\n"; |
|
167 | + return "<?xml version=\"1.0\" encoding=\"$charsetEncoding\" ?".">\n<methodCall>\n"; |
|
168 | 168 | } else { |
169 | - return "<?xml version=\"1.0\"?" . ">\n<methodCall>\n"; |
|
169 | + return "<?xml version=\"1.0\"?".">\n<methodCall>\n"; |
|
170 | 170 | } |
171 | 171 | } |
172 | 172 | |
@@ -228,14 +228,14 @@ discard block |
||
228 | 228 | */ |
229 | 229 | public function parseResponse($data = '', $headersProcessed = false, $returnType = XMLParser::RETURN_XMLRPCVALS) |
230 | 230 | { |
231 | - if ($this->debug > 0) { |
|
231 | + if ($this->debug>0) { |
|
232 | 232 | $this->getLogger()->debug("---GOT---\n$data\n---END---"); |
233 | 233 | } |
234 | 234 | |
235 | 235 | $this->httpResponse = array('raw_data' => $data, 'headers' => array(), 'cookies' => array()); |
236 | 236 | |
237 | 237 | if ($data == '') { |
238 | - $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': no response received from server.'); |
|
238 | + $this->getLogger()->error('XML-RPC: '.__METHOD__.': no response received from server.'); |
|
239 | 239 | return new Response(0, PhpXmlRpc::$xmlrpcerr['no_data'], PhpXmlRpc::$xmlrpcstr['no_data']); |
240 | 240 | } |
241 | 241 | |
@@ -243,12 +243,12 @@ discard block |
||
243 | 243 | if (substr($data, 0, 4) == 'HTTP') { |
244 | 244 | $httpParser = new Http(); |
245 | 245 | try { |
246 | - $httpResponse = $httpParser->parseResponseHeaders($data, $headersProcessed, $this->debug > 0); |
|
246 | + $httpResponse = $httpParser->parseResponseHeaders($data, $headersProcessed, $this->debug>0); |
|
247 | 247 | } catch (HttpException $e) { |
248 | 248 | // failed processing of HTTP response headers |
249 | 249 | // save into response obj the full payload received, for debugging |
250 | 250 | return new Response(0, $e->getCode(), $e->getMessage(), '', array('raw_data' => $data, 'status_code', $e->statusCode())); |
251 | - } catch(\Exception $e) { |
|
251 | + } catch (\Exception $e) { |
|
252 | 252 | return new Response(0, $e->getCode(), $e->getMessage(), '', array('raw_data' => $data)); |
253 | 253 | } |
254 | 254 | } else { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | // idea from Luca Mariano, originally in PEARified version of the lib |
265 | 265 | $pos = strrpos($data, '</methodResponse>'); |
266 | 266 | if ($pos !== false) { |
267 | - $data = substr($data, 0, $pos + 17); |
|
267 | + $data = substr($data, 0, $pos+17); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | // try to 'guestimate' the character encoding of the received response |
@@ -273,21 +273,21 @@ discard block |
||
273 | 273 | $data |
274 | 274 | ); |
275 | 275 | |
276 | - if ($this->debug >= 0) { |
|
276 | + if ($this->debug>=0) { |
|
277 | 277 | $this->httpResponse = $httpResponse; |
278 | 278 | } else { |
279 | 279 | $httpResponse = null; |
280 | 280 | } |
281 | 281 | |
282 | - if ($this->debug > 0) { |
|
282 | + if ($this->debug>0) { |
|
283 | 283 | $start = strpos($data, '<!-- SERVER DEBUG INFO (BASE64 ENCODED):'); |
284 | 284 | if ($start) { |
285 | 285 | $start += strlen('<!-- SERVER DEBUG INFO (BASE64 ENCODED):'); |
286 | 286 | /// @todo what if there is no end tag? |
287 | 287 | $end = strpos($data, '-->', $start); |
288 | - $comments = substr($data, $start, $end - $start); |
|
289 | - $this->getLogger()->debug("---SERVER DEBUG INFO (DECODED)---\n\t" . |
|
290 | - str_replace("\n", "\n\t", base64_decode($comments)) . "\n---END---", array('encoding' => $respEncoding)); |
|
288 | + $comments = substr($data, $start, $end-$start); |
|
289 | + $this->getLogger()->debug("---SERVER DEBUG INFO (DECODED)---\n\t". |
|
290 | + str_replace("\n", "\n\t", base64_decode($comments))."\n---END---", array('encoding' => $respEncoding)); |
|
291 | 291 | } |
292 | 292 | } |
293 | 293 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | if ($respEncoding == 'ISO-8859-1') { |
310 | 310 | $data = utf8_encode($data); |
311 | 311 | } else { |
312 | - $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': unsupported charset encoding of received response: ' . $respEncoding); |
|
312 | + $this->getLogger()->error('XML-RPC: '.__METHOD__.': unsupported charset encoding of received response: '.$respEncoding); |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 | } |
@@ -339,16 +339,16 @@ discard block |
||
339 | 339 | // there could be proxies meddling with the request, or network data corruption... |
340 | 340 | |
341 | 341 | $r = new Response(0, PhpXmlRpc::$xmlrpcerr['invalid_xml'], |
342 | - PhpXmlRpc::$xmlrpcstr['invalid_xml'] . ' ' . $_xh['isf_reason'], '', $httpResponse); |
|
342 | + PhpXmlRpc::$xmlrpcstr['invalid_xml'].' '.$_xh['isf_reason'], '', $httpResponse); |
|
343 | 343 | |
344 | - if ($this->debug > 0) { |
|
344 | + if ($this->debug>0) { |
|
345 | 345 | $this->getLogger()->debug($_xh['isf_reason']); |
346 | 346 | } |
347 | 347 | } |
348 | 348 | // second error check: xml well-formed but not xml-rpc compliant |
349 | 349 | elseif ($_xh['isf'] == 2) { |
350 | 350 | $r = new Response(0, PhpXmlRpc::$xmlrpcerr['xml_not_compliant'], |
351 | - PhpXmlRpc::$xmlrpcstr['xml_not_compliant'] . ' ' . $_xh['isf_reason'], '', $httpResponse); |
|
351 | + PhpXmlRpc::$xmlrpcstr['xml_not_compliant'].' '.$_xh['isf_reason'], '', $httpResponse); |
|
352 | 352 | |
353 | 353 | /// @todo echo something for the user? check if it was already done by the parser... |
354 | 354 | //if ($this->debug > 0) { |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | // third error check: parsing of the response has somehow gone boink. |
359 | 359 | /// @todo shall we omit the 2nd part of this check, since we trust the parsing code? |
360 | 360 | /// Either that, or check the fault results too... |
361 | - elseif ($_xh['isf'] > 3 || ($returnType == XMLParser::RETURN_XMLRPCVALS && !$_xh['isf'] && !is_object($_xh['value']))) { |
|
361 | + elseif ($_xh['isf']>3 || ($returnType == XMLParser::RETURN_XMLRPCVALS && !$_xh['isf'] && !is_object($_xh['value']))) { |
|
362 | 362 | // something odd has happened and it's time to generate a client side error indicating something odd went on |
363 | 363 | $r = new Response(0, PhpXmlRpc::$xmlrpcerr['xml_parsing_error'], PhpXmlRpc::$xmlrpcstr['xml_parsing_error'], |
364 | 364 | '', $httpResponse |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | /// @todo echo something for the user? |
368 | 368 | } else { |
369 | - if ($this->debug > 1) { |
|
369 | + if ($this->debug>1) { |
|
370 | 370 | $this->getLogger()->debug( |
371 | 371 | "---PARSED---\n".var_export($_xh['value'], true)."\n---END---" |
372 | 372 | ); |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | if ($errNo == 0) { |
391 | 391 | // FAULT returned, errno needs to reflect that |
392 | 392 | /// @todo feature creep - add this code to PhpXmlRpc::$xmlrpcerr |
393 | - $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': fault response received with faultCode 0 or null. Converted it to -1'); |
|
393 | + $this->getLogger()->error('XML-RPC: '.__METHOD__.': fault response received with faultCode 0 or null. Converted it to -1'); |
|
394 | 394 | /// @todo in Encoder::decodeXML, we use PhpXmlRpc::$xmlrpcerr['invalid_return'] for this case (see |
395 | 395 | /// also the todo 17 lines above) |
396 | 396 | $errNo = -1; |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | case '_php_class': |
439 | 439 | case 'payload': |
440 | 440 | case 'content_type': |
441 | - $this->logDeprecation('Getting property Request::' . $name . ' is deprecated'); |
|
441 | + $this->logDeprecation('Getting property Request::'.$name.' is deprecated'); |
|
442 | 442 | return $this->$name; |
443 | 443 | case 'httpResponse': |
444 | 444 | // manually implement the 'protected property' behaviour |
@@ -450,16 +450,16 @@ discard block |
||
450 | 450 | } |
451 | 451 | } |
452 | 452 | if ($canAccess) { |
453 | - $this->logDeprecation('Getting property Request::' . $name . ' is deprecated'); |
|
453 | + $this->logDeprecation('Getting property Request::'.$name.' is deprecated'); |
|
454 | 454 | return $this->httpResponse; |
455 | 455 | } else { |
456 | - trigger_error("Cannot access protected property Request::httpResponse in " . __FILE__, E_USER_ERROR); |
|
456 | + trigger_error("Cannot access protected property Request::httpResponse in ".__FILE__, E_USER_ERROR); |
|
457 | 457 | } |
458 | 458 | break; |
459 | 459 | default: |
460 | 460 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
461 | 461 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
462 | - trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
462 | + trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
463 | 463 | $result = null; |
464 | 464 | return $result; |
465 | 465 | } |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | case 'debug': |
474 | 474 | case 'payload': |
475 | 475 | case 'content_type': |
476 | - $this->logDeprecation('Setting property Request::' . $name . ' is deprecated'); |
|
476 | + $this->logDeprecation('Setting property Request::'.$name.' is deprecated'); |
|
477 | 477 | $this->$name = $value; |
478 | 478 | break; |
479 | 479 | case 'httpResponse': |
@@ -486,16 +486,16 @@ discard block |
||
486 | 486 | } |
487 | 487 | } |
488 | 488 | if ($canAccess) { |
489 | - $this->logDeprecation('Setting property Request::' . $name . ' is deprecated'); |
|
489 | + $this->logDeprecation('Setting property Request::'.$name.' is deprecated'); |
|
490 | 490 | $this->httpResponse = $value; |
491 | 491 | } else { |
492 | - trigger_error("Cannot access protected property Request::httpResponse in " . __FILE__, E_USER_ERROR); |
|
492 | + trigger_error("Cannot access protected property Request::httpResponse in ".__FILE__, E_USER_ERROR); |
|
493 | 493 | } |
494 | 494 | break; |
495 | 495 | default: |
496 | 496 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
497 | 497 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
498 | - trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
498 | + trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
499 | 499 | } |
500 | 500 | } |
501 | 501 | |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | case 'debug': |
508 | 508 | case 'payload': |
509 | 509 | case 'content_type': |
510 | - $this->logDeprecation('Checking property Request::' . $name . ' is deprecated'); |
|
510 | + $this->logDeprecation('Checking property Request::'.$name.' is deprecated'); |
|
511 | 511 | return isset($this->$name); |
512 | 512 | case 'httpResponse': |
513 | 513 | // manually implement the 'protected property' behaviour |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | } |
520 | 520 | } |
521 | 521 | if ($canAccess) { |
522 | - $this->logDeprecation('Checking property Request::' . $name . ' is deprecated'); |
|
522 | + $this->logDeprecation('Checking property Request::'.$name.' is deprecated'); |
|
523 | 523 | return isset($this->httpResponse); |
524 | 524 | } |
525 | 525 | // break through voluntarily |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | case 'debug': |
537 | 537 | case 'payload': |
538 | 538 | case 'content_type': |
539 | - $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated'); |
|
539 | + $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated'); |
|
540 | 540 | unset($this->$name); |
541 | 541 | break; |
542 | 542 | case 'httpResponse': |
@@ -549,16 +549,16 @@ discard block |
||
549 | 549 | } |
550 | 550 | } |
551 | 551 | if ($canAccess) { |
552 | - $this->logDeprecation('Unsetting property Request::' . $name . ' is deprecated'); |
|
552 | + $this->logDeprecation('Unsetting property Request::'.$name.' is deprecated'); |
|
553 | 553 | unset($this->httpResponse); |
554 | 554 | } else { |
555 | - trigger_error("Cannot access protected property Request::httpResponse in " . __FILE__, E_USER_ERROR); |
|
555 | + trigger_error("Cannot access protected property Request::httpResponse in ".__FILE__, E_USER_ERROR); |
|
556 | 556 | } |
557 | 557 | break; |
558 | 558 | default: |
559 | 559 | /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout... |
560 | 560 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
561 | - trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING); |
|
561 | + trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING); |
|
562 | 562 | } |
563 | 563 | } |
564 | 564 | } |