Set visibility on class properties of ExplodeIterator
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 7 Nov 2013 22:02:03 +0000 (23:02 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 7 Nov 2013 22:02:03 +0000 (23:02 +0100)
Set to private. Only used in StringUtils::explode(). Searched
core and 600+ extensions.

Change-Id: Idbf981d1864f45bbb4adce08803dc693d9a5c200

includes/utils/StringUtils.php

index c506a76..5f19e1c 100644 (file)
@@ -525,19 +525,19 @@ class ReplacementArray {
  */
 class ExplodeIterator implements Iterator {
        // The subject string
-       var $subject, $subjectLength;
+       private $subject, $subjectLength;
 
        // The delimiter
-       var $delim, $delimLength;
+       private $delim, $delimLength;
 
        // The position of the start of the line
-       var $curPos;
+       private $curPos;
 
        // The position after the end of the next delimiter
-       var $endPos;
+       private $endPos;
 
        // The current token
-       var $current;
+       private $current;
 
        /**
         * Construct a DelimIterator