Request-local caching of revision text
[lhc/web/wiklou.git] / includes / Fallback.php
index c4b22f5..4c19dca 100644 (file)
@@ -138,7 +138,7 @@ class Fallback {
        public static function mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
                $needle = preg_quote( $needle, '/' );
 
-               $ar = array();
+               $ar = [];
                preg_match( '/' . $needle . '/u', $haystack, $ar, PREG_OFFSET_CAPTURE, $offset );
 
                if ( isset( $ar[0][1] ) ) {
@@ -152,14 +152,14 @@ class Fallback {
         * Fallback implementation of mb_strrpos, hardcoded to UTF-8.
         * @param string $haystack
         * @param string $needle
-        * @param string $offset optional start position
-        * @param string $encoding optional encoding; ignored
+        * @param string $offset Optional start position
+        * @param string $encoding Optional encoding; ignored
         * @return int
         */
        public static function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
                $needle = preg_quote( $needle, '/' );
 
-               $ar = array();
+               $ar = [];
                preg_match_all( '/' . $needle . '/u', $haystack, $ar, PREG_OFFSET_CAPTURE, $offset );
 
                if ( isset( $ar[0] ) && count( $ar[0] ) > 0 &&