Passed
Push — master ( e7cd1b...3ff2f9 )
by Gaetano
12:19
created
src/Helper/XMLParser.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -187,12 +187,12 @@  discard block
 block discarded – undo
187 187
             // q: can php be built without ctype? should we use a regexp?
188 188
             if (is_string($key) && !ctype_digit($key)) {
189 189
                 /// @todo on invalid options, throw/error-out instead of logging an error message?
190
-                switch($key) {
190
+                switch ($key) {
191 191
                     case 'target_charset':
192 192
                         if (function_exists('mb_convert_encoding')) {
193 193
                             $this->current_parsing_options['target_charset'] = $val;
194 194
                         } else {
195
-                            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ": 'target_charset' option is unsupported without mbstring");
195
+                            $this->getLogger()->error('XML-RPC: '.__METHOD__.": 'target_charset' option is unsupported without mbstring");
196 196
                         }
197 197
                         break;
198 198
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                         if (is_callable($val)) {
201 201
                             $this->current_parsing_options['methodname_callback'] = $val;
202 202
                         } else {
203
-                            $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ": Callback passed as 'methodname_callback' is not callable");
203
+                            $this->getLogger()->error('XML-RPC: '.__METHOD__.": Callback passed as 'methodname_callback' is not callable");
204 204
                         }
205 205
                         break;
206 206
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                         break;
212 212
 
213 213
                     default:
214
-                        $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ": unsupported option: $key");
214
+                        $this->getLogger()->error('XML-RPC: '.__METHOD__.": unsupported option: $key");
215 215
                 }
216 216
                 unset($mergedOptions[$key]);
217 217
             }
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
 
258 258
         try {
259 259
             // @see ticket #70 - we have to parse big xml docs in chunks to avoid errors
260
-            for ($offset = 0; $offset < $len; $offset += $this->maxChunkLength) {
260
+            for ($offset = 0; $offset<$len; $offset += $this->maxChunkLength) {
261 261
                 $chunk = substr($data, $offset, $this->maxChunkLength);
262 262
                 // error handling: xml not well formed
263
-                if (!@xml_parse($parser, $chunk, $offset + $this->maxChunkLength >= $len)) {
263
+                if (!@xml_parse($parser, $chunk, $offset+$this->maxChunkLength>=$len)) {
264 264
                     $errCode = xml_get_error_code($parser);
265 265
                     $errStr = sprintf('XML error %s: %s at line %d, column %d', $errCode, xml_error_string($errCode),
266 266
                         xml_get_current_line_number($parser), xml_get_current_column_number($parser));
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                     $this->_xh['isf_reason'] = $errStr;
269 269
                 }
270 270
                 // no need to parse further if we already have a fatal error
271
-                if ($this->_xh['isf'] >= 2) {
271
+                if ($this->_xh['isf']>=2) {
272 272
                     break;
273 273
                 }
274 274
             }
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     public function xmlrpc_se($parser, $name, $attrs, $acceptSingleVals = false)
314 314
     {
315 315
         // if invalid xml-rpc already detected, skip all processing
316
-        if ($this->_xh['isf'] >= 2) {
316
+        if ($this->_xh['isf']>=2) {
317 317
             return;
318 318
         }
319 319
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
             if ($acceptSingleVals === false) {
328 328
                 $accept = $this->current_parsing_options['accept'];
329 329
             } else {
330
-                $this->logDeprecation('Using argument $acceptSingleVals for method ' . __METHOD__ . ' is deprecated');
330
+                $this->logDeprecation('Using argument $acceptSingleVals for method '.__METHOD__.' is deprecated');
331 331
                 $accept = self::ACCEPT_REQUEST | self::ACCEPT_RESPONSE | self::ACCEPT_VALUE;
332 332
             }
333 333
             if (($name == 'METHODCALL' && ($accept & self::ACCEPT_REQUEST)) ||
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                 $this->_xh['rt'] = strtolower($name);
338 338
             } else {
339 339
                 $this->_xh['isf'] = 2;
340
-                $this->_xh['isf_reason'] = 'missing top level xmlrpc element. Found: ' . $name;
340
+                $this->_xh['isf_reason'] = 'missing top level xmlrpc element. Found: '.$name;
341 341
 
342 342
                 return;
343 343
             }
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 
443 443
             case 'MEMBER':
444 444
                 // set member name to null, in case we do not find in the xml later on
445
-                $this->_xh['valuestack'][count($this->_xh['valuestack']) - 1]['name'] = null;
445
+                $this->_xh['valuestack'][count($this->_xh['valuestack'])-1]['name'] = null;
446 446
                 //$this->_xh['ac']='';
447 447
                 // Drop trough intentionally
448 448
 
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
      */
506 506
     public function xmlrpc_ee($parser, $name, $rebuildXmlrpcvals = 1)
507 507
     {
508
-        if ($this->_xh['isf'] >= 2) {
508
+        if ($this->_xh['isf']>=2) {
509 509
             return;
510 510
         }
511 511
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
                     $this->_xh['value'] = mb_convert_encoding($this->_xh['value'], $this->current_parsing_options['target_charset'], 'UTF-8');
528 528
                 }
529 529
 
530
-                if ($rebuildXmlrpcvals > 0) {
530
+                if ($rebuildXmlrpcvals>0) {
531 531
                     // build the xml-rpc val out of the data received, and substitute it
532 532
                     $temp = new Value($this->_xh['value'], $this->_xh['vt']);
533 533
                     // in case we got info about underlying php class, save it in the object we're rebuilding
@@ -535,15 +535,15 @@  discard block
 block discarded – undo
535 535
                         $temp->_php_class = $this->_xh['php_class'];
536 536
                     }
537 537
                     $this->_xh['value'] = $temp;
538
-                } elseif ($rebuildXmlrpcvals < 0) {
538
+                } elseif ($rebuildXmlrpcvals<0) {
539 539
                     if ($this->_xh['vt'] == Value::$xmlrpcDateTime) {
540
-                        $this->_xh['value'] = (object)array(
540
+                        $this->_xh['value'] = (object) array(
541 541
                             'xmlrpc_type' => 'datetime',
542 542
                             'scalar' => $this->_xh['value'],
543 543
                             'timestamp' => \PhpXmlRpc\Helper\Date::iso8601Decode($this->_xh['value'])
544 544
                         );
545 545
                     } elseif ($this->_xh['vt'] == Value::$xmlrpcBase64) {
546
-                        $this->_xh['value'] = (object)array(
546
+                        $this->_xh['value'] = (object) array(
547 547
                             'xmlrpc_type' => 'base64',
548 548
                             'scalar' => $this->_xh['value']
549 549
                         );
@@ -558,8 +558,8 @@  discard block
 block discarded – undo
558 558
                 // check if we are inside an array or struct:
559 559
                 // if value just built is inside an array, let's move it into array on the stack
560 560
                 $vscount = count($this->_xh['valuestack']);
561
-                if ($vscount && $this->_xh['valuestack'][$vscount - 1]['type'] == 'ARRAY') {
562
-                    $this->_xh['valuestack'][$vscount - 1]['values'][] = $this->_xh['value'];
561
+                if ($vscount && $this->_xh['valuestack'][$vscount-1]['type'] == 'ARRAY') {
562
+                    $this->_xh['valuestack'][$vscount-1]['values'][] = $this->_xh['value'];
563 563
                 }
564 564
                 break;
565 565
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
                     // log if receiving something strange, even though we set the value to false anyway
587 587
                     /// @todo to be consistent with the other types, we should return a value outside the good-value domain, e.g. NULL
588 588
                     if ($this->_xh['ac'] != '0' && strcasecmp($this->_xh['ac'], 'false') !== 0) {
589
-                        if (!$this->handleParsingError('invalid data received in BOOLEAN value: ' .
589
+                        if (!$this->handleParsingError('invalid data received in BOOLEAN value: '.
590 590
                             $this->truncateValueForLog($this->_xh['ac']), __METHOD__)) {
591 591
                             return;
592 592
                         }
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
                 $this->_xh['vt'] = strtolower($name);
607 607
                 $this->_xh['lv'] = 3; // indicate we've found a value
608 608
                 if (!preg_match(PhpXmlRpc::$xmlrpc_int_format, $this->_xh['ac'])) {
609
-                    if (!$this->handleParsingError('non numeric data received in INT value: ' .
609
+                    if (!$this->handleParsingError('non numeric data received in INT value: '.
610 610
                         $this->truncateValueForLog($this->_xh['ac']), __METHOD__)) {
611 611
                         return;
612 612
                     }
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
                     $this->_xh['value'] = 'ERROR_NON_NUMERIC_FOUND';
615 615
                 } else {
616 616
                     // it's ok, add it on
617
-                    $this->_xh['value'] = (int)$this->_xh['ac'];
617
+                    $this->_xh['value'] = (int) $this->_xh['ac'];
618 618
                 }
619 619
                 break;
620 620
 
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
                 $this->_xh['vt'] = Value::$xmlrpcDouble;
623 623
                 $this->_xh['lv'] = 3; // indicate we've found a value
624 624
                 if (!preg_match(PhpXmlRpc::$xmlrpc_double_format, $this->_xh['ac'])) {
625
-                    if (!$this->handleParsingError('non numeric data received in DOUBLE value: ' .
625
+                    if (!$this->handleParsingError('non numeric data received in DOUBLE value: '.
626 626
                         $this->truncateValueForLog($this->_xh['ac']), __METHOD__)) {
627 627
                         return;
628 628
                     }
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
                     $this->_xh['value'] = 'ERROR_NON_NUMERIC_FOUND';
631 631
                 } else {
632 632
                     // it's ok, add it on
633
-                    $this->_xh['value'] = (double)$this->_xh['ac'];
633
+                    $this->_xh['value'] = (double) $this->_xh['ac'];
634 634
                 }
635 635
                 break;
636 636
 
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
                 $this->_xh['vt'] = Value::$xmlrpcDateTime;
639 639
                 $this->_xh['lv'] = 3; // indicate we've found a value
640 640
                 if (!preg_match(PhpXmlRpc::$xmlrpc_datetime_format, $this->_xh['ac'])) {
641
-                    if (!$this->handleParsingError('invalid data received in DATETIME value: ' .
641
+                    if (!$this->handleParsingError('invalid data received in DATETIME value: '.
642 642
                         $this->truncateValueForLog($this->_xh['ac']), __METHOD__)) {
643 643
                         return;
644 644
                     }
@@ -649,9 +649,9 @@  discard block
 block discarded – undo
649 649
 
650 650
                     // the default regex used to validate the date string a few lines above should make this case impossible,
651 651
                     // but one never knows...
652
-                    } catch(\Exception $e) {
652
+                    } catch (\Exception $e) {
653 653
                         // what to do? We can not guarantee that a valid date can be created. We return null...
654
-                        if (!$this->handleParsingError('invalid data received in DATETIME value. Error ' .
654
+                        if (!$this->handleParsingError('invalid data received in DATETIME value. Error '.
655 655
                             $e->getMessage(), __METHOD__)) {
656 656
                             return;
657 657
                         }
@@ -668,14 +668,14 @@  discard block
 block discarded – undo
668 668
                     $v = base64_decode($this->_xh['ac'], true);
669 669
                     if ($v === false) {
670 670
                         $this->_xh['isf'] = 2;
671
-                        $this->_xh['isf_reason'] = 'Invalid data received in BASE64 value: '. $this->truncateValueForLog($this->_xh['ac']);
671
+                        $this->_xh['isf_reason'] = 'Invalid data received in BASE64 value: '.$this->truncateValueForLog($this->_xh['ac']);
672 672
                         return;
673 673
                     }
674 674
                 } else {
675 675
                     $v = base64_decode($this->_xh['ac']);
676 676
                     if ($v === '' && $this->_xh['ac'] !== '') {
677 677
                         // only the empty string should decode to the empty string
678
-                        $this->getLogger()->error('XML-RPC: ' . __METHOD__ . ': invalid data received in BASE64 value: ' .
678
+                        $this->getLogger()->error('XML-RPC: '.__METHOD__.': invalid data received in BASE64 value: '.
679 679
                             $this->truncateValueForLog($this->_xh['ac']));
680 680
                     }
681 681
                 }
@@ -683,20 +683,20 @@  discard block
 block discarded – undo
683 683
                 break;
684 684
 
685 685
             case 'NAME':
686
-                $this->_xh['valuestack'][count($this->_xh['valuestack']) - 1]['name'] = $this->_xh['ac'];
686
+                $this->_xh['valuestack'][count($this->_xh['valuestack'])-1]['name'] = $this->_xh['ac'];
687 687
                 break;
688 688
 
689 689
             case 'MEMBER':
690 690
                 // add to array in the stack the last element built, unless no VALUE or no NAME were found
691 691
                 if ($this->_xh['vt']) {
692 692
                     $vscount = count($this->_xh['valuestack']);
693
-                    if ($this->_xh['valuestack'][$vscount - 1]['name'] === null) {
693
+                    if ($this->_xh['valuestack'][$vscount-1]['name'] === null) {
694 694
                         if (!$this->handleParsingError('missing NAME inside STRUCT in received xml', __METHOD__)) {
695 695
                             return;
696 696
                         }
697
-                        $this->_xh['valuestack'][$vscount - 1]['name'] = '';
697
+                        $this->_xh['valuestack'][$vscount-1]['name'] = '';
698 698
                     }
699
-                    $this->_xh['valuestack'][$vscount - 1]['values'][$this->_xh['valuestack'][$vscount - 1]['name']] = $this->_xh['value'];
699
+                    $this->_xh['valuestack'][$vscount-1]['values'][$this->_xh['valuestack'][$vscount-1]['name']] = $this->_xh['value'];
700 700
                 } else {
701 701
                     if (!$this->handleParsingError('missing VALUE inside STRUCT in received xml', __METHOD__)) {
702 702
                         return;
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
     public function xmlrpc_cd($parser, $data)
831 831
     {
832 832
         // skip processing if xml fault already detected
833
-        if ($this->_xh['isf'] >= 2) {
833
+        if ($this->_xh['isf']>=2) {
834 834
             return;
835 835
         }
836 836
 
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
     public function xmlrpc_dh($parser, $data)
853 853
     {
854 854
         // skip processing if xml fault already detected
855
-        if ($this->_xh['isf'] >= 2) {
855
+        if ($this->_xh['isf']>=2) {
856 856
             return;
857 857
         }
858 858
 
@@ -932,8 +932,8 @@  discard block
 block discarded – undo
932 932
         // SPACE:         (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
933 933
         // EQ:            SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
934 934
         // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
935
-        if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
936
-            '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
935
+        if (preg_match('/^<\?xml\s+version\s*=\s*'."((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))".
936
+            '\s+encoding\s*=\s*'."((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
937 937
             $xmlChunk, $matches)) {
938 938
             return strtoupper(substr($matches[2], 1, -1));
939 939
         }
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
             // NB: mb_detect likes to call it ascii, xml parser likes to call it US_ASCII...
952 952
             // IANA also likes better US-ASCII, so go with it
953 953
             if ($enc == 'ASCII') {
954
-                $enc = 'US-' . $enc;
954
+                $enc = 'US-'.$enc;
955 955
             }
956 956
 
957 957
             return $enc;
@@ -992,8 +992,8 @@  discard block
 block discarded – undo
992 992
         // SPACE:         (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+
993 993
         // EQ:            SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]*
994 994
         // We could be stricter on version number: VersionNum ::= '1.' [0-9]+
995
-        if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" .
996
-            '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
995
+        if (preg_match('/^<\?xml\s+version\s*=\s*'."((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))".
996
+            '\s+encoding\s*=\s*'."((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/",
997 997
             $xmlChunk)) {
998 998
             return true;
999 999
         }
@@ -1013,7 +1013,7 @@  discard block
 block discarded – undo
1013 1013
             $this->_xh['isf_reason'] = ucfirst($message);
1014 1014
             return false;
1015 1015
         } else {
1016
-            $this->getLogger()->error('XML-RPC: ' . ($method != '' ? $method . ': ' : '') . $message);
1016
+            $this->getLogger()->error('XML-RPC: '.($method != '' ? $method.': ' : '').$message);
1017 1017
             return true;
1018 1018
         }
1019 1019
     }
@@ -1025,8 +1025,8 @@  discard block
 block discarded – undo
1025 1025
      */
1026 1026
     protected function truncateValueForLog($data)
1027 1027
     {
1028
-        if (strlen($data) > $this->maxLogValueLength) {
1029
-            return substr($data, 0, $this->maxLogValueLength - 3) . '...';
1028
+        if (strlen($data)>$this->maxLogValueLength) {
1029
+            return substr($data, 0, $this->maxLogValueLength-3).'...';
1030 1030
         }
1031 1031
 
1032 1032
         return $data;
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
     public function xmlrpc_se_any($parser, $name, $attrs)
1048 1048
     {
1049 1049
         // this will be spamming the log if this method is in use...
1050
-        $this->logDeprecation('Method ' . __METHOD__ . ' is deprecated');
1050
+        $this->logDeprecation('Method '.__METHOD__.' is deprecated');
1051 1051
 
1052 1052
         $this->xmlrpc_se($parser, $name, $attrs, true);
1053 1053
     }
@@ -1057,12 +1057,12 @@  discard block
 block discarded – undo
1057 1057
         switch ($name) {
1058 1058
             case '_xh':
1059 1059
             case 'xmlrpc_valid_parents':
1060
-                $this->logDeprecation('Getting property XMLParser::' . $name . ' is deprecated');
1060
+                $this->logDeprecation('Getting property XMLParser::'.$name.' is deprecated');
1061 1061
                 return $this->$name;
1062 1062
             default:
1063 1063
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1064 1064
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1065
-                trigger_error('Undefined property via __get(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1065
+                trigger_error('Undefined property via __get(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1066 1066
                 $result = null;
1067 1067
                 return $result;
1068 1068
         }
@@ -1073,18 +1073,18 @@  discard block
 block discarded – undo
1073 1073
         switch ($name) {
1074 1074
             // this should only ever be called by subclasses which overtook `parse()`
1075 1075
             case 'accept':
1076
-                $this->logDeprecation('Setting property XMLParser::' . $name . ' is deprecated');
1076
+                $this->logDeprecation('Setting property XMLParser::'.$name.' is deprecated');
1077 1077
                 $this->current_parsing_options['accept'] = $value;
1078 1078
                 break;
1079 1079
             case '_xh':
1080 1080
             case 'xmlrpc_valid_parents':
1081
-                $this->logDeprecation('Setting property XMLParser::' . $name . ' is deprecated');
1081
+                $this->logDeprecation('Setting property XMLParser::'.$name.' is deprecated');
1082 1082
                 $this->$name = $value;
1083 1083
                 break;
1084 1084
             default:
1085 1085
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1086 1086
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1087
-                trigger_error('Undefined property via __set(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1087
+                trigger_error('Undefined property via __set(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1088 1088
         }
1089 1089
     }
1090 1090
 
@@ -1092,11 +1092,11 @@  discard block
 block discarded – undo
1092 1092
     {
1093 1093
         switch ($name) {
1094 1094
             case 'accept':
1095
-                $this->logDeprecation('Checking property XMLParser::' . $name . ' is deprecated');
1095
+                $this->logDeprecation('Checking property XMLParser::'.$name.' is deprecated');
1096 1096
                 return isset($this->current_parsing_options['accept']);
1097 1097
             case '_xh':
1098 1098
             case 'xmlrpc_valid_parents':
1099
-                $this->logDeprecation('Checking property XMLParser::' . $name . ' is deprecated');
1099
+                $this->logDeprecation('Checking property XMLParser::'.$name.' is deprecated');
1100 1100
                 return isset($this->$name);
1101 1101
             default:
1102 1102
                 return false;
@@ -1108,18 +1108,18 @@  discard block
 block discarded – undo
1108 1108
         switch ($name) {
1109 1109
             // q: does this make sense at all?
1110 1110
             case 'accept':
1111
-                $this->logDeprecation('Unsetting property XMLParser::' . $name . ' is deprecated');
1111
+                $this->logDeprecation('Unsetting property XMLParser::'.$name.' is deprecated');
1112 1112
                 unset($this->current_parsing_options['accept']);
1113 1113
                 break;
1114 1114
             case '_xh':
1115 1115
             case 'xmlrpc_valid_parents':
1116
-                $this->logDeprecation('Unsetting property XMLParser::' . $name . ' is deprecated');
1116
+                $this->logDeprecation('Unsetting property XMLParser::'.$name.' is deprecated');
1117 1117
                 unset($this->$name);
1118 1118
                 break;
1119 1119
             default:
1120 1120
                 /// @todo throw instead? There are very few other places where the lib trigger errors which can potentially reach stdout...
1121 1121
                 $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
1122
-                trigger_error('Undefined property via __unset(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_WARNING);
1122
+                trigger_error('Undefined property via __unset(): '.$name.' in '.$trace[0]['file'].' on line '.$trace[0]['line'], E_USER_WARNING);
1123 1123
         }
1124 1124
     }
1125 1125
 }
Please login to merge, or discard this patch.