Completed
Push — master ( 29a5d9...878257 )
by Lars
06:35
created
src/voku/helper/data/x1d4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
19 19
 );
20 20
 
21
-$result =& $data;
21
+$result = & $data;
22 22
 unset($data);
23 23
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/x1d5.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
19 19
 );
20 20
 
21
-$result =& $data;
21
+$result = & $data;
22 22
 unset($data);
23 23
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/UTF8.php 3 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2816,7 +2816,7 @@  discard block
 block discarded – undo
2816 2816
   /**
2817 2817
    * Check if the input is binary... (is look like a hack).
2818 2818
    *
2819
-   * @param mixed $input
2819
+   * @param string $input
2820 2820
    *
2821 2821
    * @return bool
2822 2822
    */
@@ -5806,7 +5806,7 @@  discard block
 block discarded – undo
5806 5806
    * @link http://php.net/manual/en/function.mb-strrpos.php
5807 5807
    *
5808 5808
    * @param string     $haystack  <p>The string being checked, for the last occurrence of needle</p>
5809
-   * @param string|int $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5809
+   * @param string $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5810 5810
    * @param int        $offset    [optional] <p>May be specified to begin searching an arbitrary number of characters
5811 5811
    *                              into the string. Negative values will stop searching at an arbitrary point prior to
5812 5812
    *                              the end of the string.
@@ -6583,8 +6583,8 @@  discard block
 block discarded – undo
6583 6583
    *
6584 6584
    * source: https://gist.github.com/stemar/8287074
6585 6585
    *
6586
-   * @param string|string[] $str              <p>The input string or an array of stings.</p>
6587
-   * @param string|string[] $replacement      <p>The replacement string or an array of stings.</p>
6586
+   * @param string $str              <p>The input string or an array of stings.</p>
6587
+   * @param string $replacement      <p>The replacement string or an array of stings.</p>
6588 6588
    * @param int|int[]       $offset           <p>
6589 6589
    *                                          If start is positive, the replacing will begin at the start'th offset
6590 6590
    *                                          into string.
@@ -6592,7 +6592,7 @@  discard block
 block discarded – undo
6592 6592
    *                                          If start is negative, the replacing will begin at the start'th character
6593 6593
    *                                          from the end of string.
6594 6594
    *                                          </p>
6595
-   * @param int|int[]|void  $length           [optional] <p>If given and is positive, it represents the length of the
6595
+   * @param integer|null  $length           [optional] <p>If given and is positive, it represents the length of the
6596 6596
    *                                          portion of string which is to be replaced. If it is negative, it
6597 6597
    *                                          represents the number of characters from the end of string at which to
6598 6598
    *                                          stop replacing. If it is not given, then it will default to strlen(
@@ -7027,7 +7027,7 @@  discard block
 block discarded – undo
7027 7027
    * case.</li>
7028 7028
    * </ul>
7029 7029
    *
7030
-   * @param string|string[] $str                    <p>Any string or array.</p>
7030
+   * @param string $str                    <p>Any string or array.</p>
7031 7031
    * @param bool            $decodeHtmlEntityToUtf8 <p>Set to true, if you need to decode html-entities.</p>
7032 7032
    *
7033 7033
    * @return string|string[] <p>The UTF-8 encoded string.</p>
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -985,16 +985,16 @@
 block discarded – undo
985 985
       $str = self::chr_and_parse_int($code_point);
986 986
     } elseif ($code_point <= 0x7FF) {
987 987
       $str = self::chr_and_parse_int(($code_point >> 6) + 0xC0) .
988
-             self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
988
+              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
989 989
     } elseif ($code_point <= 0xFFFF) {
990 990
       $str = self::chr_and_parse_int(($code_point >> 12) + 0xE0) .
991
-             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
992
-             self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
991
+              self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
992
+              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
993 993
     } else {
994 994
       $str = self::chr_and_parse_int(($code_point >> 18) + 0xF0) .
995
-             self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80) .
996
-             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
997
-             self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
995
+              self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80) .
996
+              self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
997
+              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
998 998
     }
999 999
 
1000 1000
     if ($encoding !== 'UTF-8') {
Please login to merge, or discard this patch.
Spacing   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
   public static function add_bom_to_string($str)
856 856
   {
857 857
     if (self::string_has_bom($str) === false) {
858
-      $str = self::bom() . $str;
858
+      $str = self::bom().$str;
859 859
     }
860 860
 
861 861
     return $str;
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
 
981 981
     // use static cache, only if there is no support for "\IntlChar"
982 982
     static $CHAR_CACHE = array();
983
-    $cacheKey = $code_point . $encoding;
983
+    $cacheKey = $code_point.$encoding;
984 984
     if (isset($CHAR_CACHE[$cacheKey]) === true) {
985 985
       return $CHAR_CACHE[$cacheKey];
986 986
     }
@@ -988,16 +988,16 @@  discard block
 block discarded – undo
988 988
     if ($code_point <= 0x7F) {
989 989
       $str = self::chr_and_parse_int($code_point);
990 990
     } elseif ($code_point <= 0x7FF) {
991
-      $str = self::chr_and_parse_int(($code_point >> 6) + 0xC0) .
991
+      $str = self::chr_and_parse_int(($code_point >> 6) + 0xC0).
992 992
              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
993 993
     } elseif ($code_point <= 0xFFFF) {
994
-      $str = self::chr_and_parse_int(($code_point >> 12) + 0xE0) .
995
-             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
994
+      $str = self::chr_and_parse_int(($code_point >> 12) + 0xE0).
995
+             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80).
996 996
              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
997 997
     } else {
998
-      $str = self::chr_and_parse_int(($code_point >> 18) + 0xF0) .
999
-             self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80) .
1000
-             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) .
998
+      $str = self::chr_and_parse_int(($code_point >> 18) + 0xF0).
999
+             self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80).
1000
+             self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80).
1001 1001
              self::chr_and_parse_int(($code_point & 0x3F) + 0x80);
1002 1002
     }
1003 1003
 
@@ -1057,7 +1057,7 @@  discard block
 block discarded – undo
1057 1057
     }
1058 1058
 
1059 1059
     return array_map(
1060
-        function ($data) {
1060
+        function($data) {
1061 1061
           return UTF8::strlen($data, '8BIT');
1062 1062
         },
1063 1063
         self::split($str)
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
       $flags = ENT_QUOTES;
1300 1300
     }
1301 1301
 
1302
-    return self::html_entity_decode('&#' . $int . ';', $flags);
1302
+    return self::html_entity_decode('&#'.$int.';', $flags);
1303 1303
   }
1304 1304
 
1305 1305
   /**
@@ -1376,7 +1376,7 @@  discard block
 block discarded – undo
1376 1376
           &&
1377 1377
           self::$SUPPORT['mbstring'] === false
1378 1378
       ) {
1379
-        trigger_error('UTF8::encode() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
1379
+        trigger_error('UTF8::encode() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
1380 1380
       }
1381 1381
 
1382 1382
       $strEncoded = \mb_convert_encoding(
@@ -1585,7 +1585,7 @@  discard block
 block discarded – undo
1585 1585
           ) {
1586 1586
             // Prevent leading combining chars
1587 1587
             // for NFC-safe concatenations.
1588
-            $var = $leading_combining . $var;
1588
+            $var = $leading_combining.$var;
1589 1589
           }
1590 1590
         }
1591 1591
 
@@ -2009,7 +2009,7 @@  discard block
 block discarded – undo
2009 2009
    */
2010 2010
   private static function getData($file)
2011 2011
   {
2012
-    $file = __DIR__ . '/data/' . $file . '.php';
2012
+    $file = __DIR__.'/data/'.$file.'.php';
2013 2013
     if (file_exists($file)) {
2014 2014
       /** @noinspection PhpIncludeInspection */
2015 2015
       return require $file;
@@ -2154,7 +2154,7 @@  discard block
 block discarded – undo
2154 2154
     return implode(
2155 2155
         '',
2156 2156
         array_map(
2157
-            function ($data) use ($keepAsciiChars, $encoding) {
2157
+            function($data) use ($keepAsciiChars, $encoding) {
2158 2158
               return UTF8::single_chr_html_encode($data, $keepAsciiChars, $encoding);
2159 2159
             },
2160 2160
             self::split($str)
@@ -2273,7 +2273,7 @@  discard block
 block discarded – undo
2273 2273
 
2274 2274
       $str = preg_replace_callback(
2275 2275
           "/&#\d{2,6};/",
2276
-          function ($matches) use ($encoding) {
2276
+          function($matches) use ($encoding) {
2277 2277
             $returnTmp = \mb_convert_encoding($matches[0], $encoding, 'HTML-ENTITIES');
2278 2278
 
2279 2279
             if ($returnTmp !== '"' && $returnTmp !== "'") {
@@ -2597,9 +2597,9 @@  discard block
 block discarded – undo
2597 2597
     if ((int)$int === $int) {
2598 2598
       $hex = dechex($int);
2599 2599
 
2600
-      $hex = (strlen($hex) < 4 ? substr('0000' . $hex, -4) : $hex);
2600
+      $hex = (strlen($hex) < 4 ? substr('0000'.$hex, -4) : $hex);
2601 2601
 
2602
-      return $pfix . $hex;
2602
+      return $pfix.$hex;
2603 2603
     }
2604 2604
 
2605 2605
     return '';
@@ -3340,7 +3340,7 @@  discard block
 block discarded – undo
3340 3340
         $cleanUtf8
3341 3341
     );
3342 3342
 
3343
-    return $strPartOne . $strPartTwo;
3343
+    return $strPartOne.$strPartTwo;
3344 3344
   }
3345 3345
 
3346 3346
   /**
@@ -3430,7 +3430,7 @@  discard block
 block discarded – undo
3430 3430
       return preg_replace('/^[\pZ\pC]+/u', '', $str);
3431 3431
     }
3432 3432
 
3433
-    return preg_replace('/^' . self::rxClass($chars) . '+/u', '', $str);
3433
+    return preg_replace('/^'.self::rxClass($chars).'+/u', '', $str);
3434 3434
   }
3435 3435
 
3436 3436
   /**
@@ -3968,7 +3968,7 @@  discard block
 block discarded – undo
3968 3968
     if (is_array($what) === true) {
3969 3969
       /** @noinspection ForeachSourceInspection */
3970 3970
       foreach ($what as $item) {
3971
-        $str = preg_replace('/(' . preg_quote($item, '/') . ')+/', $item, $str);
3971
+        $str = preg_replace('/('.preg_quote($item, '/').')+/', $item, $str);
3972 3972
       }
3973 3973
     }
3974 3974
 
@@ -4077,7 +4077,7 @@  discard block
 block discarded – undo
4077 4077
       return preg_replace('/[\pZ\pC]+$/u', '', $str);
4078 4078
     }
4079 4079
 
4080
-    return preg_replace('/' . self::rxClass($chars) . '+$/u', '', $str);
4080
+    return preg_replace('/'.self::rxClass($chars).'+$/u', '', $str);
4081 4081
   }
4082 4082
 
4083 4083
   /**
@@ -4092,7 +4092,7 @@  discard block
 block discarded – undo
4092 4092
   {
4093 4093
     static $RX_CLASSS_CACHE = array();
4094 4094
 
4095
-    $cacheKey = $s . $class;
4095
+    $cacheKey = $s.$class;
4096 4096
 
4097 4097
     if (isset($RX_CLASSS_CACHE[$cacheKey])) {
4098 4098
       return $RX_CLASSS_CACHE[$cacheKey];
@@ -4104,7 +4104,7 @@  discard block
 block discarded – undo
4104 4104
     /** @noinspection SuspiciousLoopInspection */
4105 4105
     foreach (self::str_split($s) as $s) {
4106 4106
       if ('-' === $s) {
4107
-        $class[0] = '-' . $class[0];
4107
+        $class[0] = '-'.$class[0];
4108 4108
       } elseif (!isset($s[2])) {
4109 4109
         $class[0] .= preg_quote($s, '/');
4110 4110
       } elseif (1 === self::strlen($s)) {
@@ -4115,13 +4115,13 @@  discard block
 block discarded – undo
4115 4115
     }
4116 4116
 
4117 4117
     if ($class[0]) {
4118
-      $class[0] = '[' . $class[0] . ']';
4118
+      $class[0] = '['.$class[0].']';
4119 4119
     }
4120 4120
 
4121 4121
     if (1 === count($class)) {
4122 4122
       $return = $class[0];
4123 4123
     } else {
4124
-      $return = '(?:' . implode('|', $class) . ')';
4124
+      $return = '(?:'.implode('|', $class).')';
4125 4125
     }
4126 4126
 
4127 4127
     $RX_CLASSS_CACHE[$cacheKey] = $return;
@@ -4139,7 +4139,7 @@  discard block
 block discarded – undo
4139 4139
     }
4140 4140
 
4141 4141
     foreach (self::$SUPPORT as $utf8Support) {
4142
-      echo $utf8Support . "\n<br>";
4142
+      echo $utf8Support."\n<br>";
4143 4143
     }
4144 4144
   }
4145 4145
 
@@ -4172,7 +4172,7 @@  discard block
 block discarded – undo
4172 4172
       $encoding = self::normalize_encoding($encoding, 'UTF-8');
4173 4173
     }
4174 4174
 
4175
-    return '&#' . self::ord($char, $encoding) . ';';
4175
+    return '&#'.self::ord($char, $encoding).';';
4176 4176
   }
4177 4177
 
4178 4178
   /**
@@ -4239,7 +4239,7 @@  discard block
 block discarded – undo
4239 4239
         ) {
4240 4240
 
4241 4241
           if (($str[$i + 1] & "\xC0") === "\x80") {
4242
-            $ret[] = $str[$i] . $str[$i + 1];
4242
+            $ret[] = $str[$i].$str[$i + 1];
4243 4243
 
4244 4244
             $i++;
4245 4245
           }
@@ -4255,7 +4255,7 @@  discard block
 block discarded – undo
4255 4255
               &&
4256 4256
               ($str[$i + 2] & "\xC0") === "\x80"
4257 4257
           ) {
4258
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2];
4258
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2];
4259 4259
 
4260 4260
             $i += 2;
4261 4261
           }
@@ -4273,7 +4273,7 @@  discard block
 block discarded – undo
4273 4273
               &&
4274 4274
               ($str[$i + 3] & "\xC0") === "\x80"
4275 4275
           ) {
4276
-            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];
4276
+            $ret[] = $str[$i].$str[$i + 1].$str[$i + 2].$str[$i + 3];
4277 4277
 
4278 4278
             $i += 3;
4279 4279
           }
@@ -4286,7 +4286,7 @@  discard block
 block discarded – undo
4286 4286
       $ret = array_chunk($ret, $length);
4287 4287
 
4288 4288
       return array_map(
4289
-          function ($item) {
4289
+          function($item) {
4290 4290
             return implode('', $item);
4291 4291
           }, $ret
4292 4292
       );
@@ -4393,7 +4393,7 @@  discard block
 block discarded – undo
4393 4393
     foreach (self::$ICONV_ENCODING as $encodingTmp) {
4394 4394
       # INFO: //IGNORE and //TRANSLIT still throw notice
4395 4395
       /** @noinspection PhpUsageOfSilenceOperatorInspection */
4396
-      if (md5(@\iconv($encodingTmp, $encodingTmp . '//IGNORE', $str)) === $md5) {
4396
+      if (md5(@\iconv($encodingTmp, $encodingTmp.'//IGNORE', $str)) === $md5) {
4397 4397
         return $encodingTmp;
4398 4398
       }
4399 4399
     }
@@ -4488,7 +4488,7 @@  discard block
 block discarded – undo
4488 4488
       if ('' === $s .= '') {
4489 4489
         $s = '/^(?<=.)$/';
4490 4490
       } else {
4491
-        $s = '/' . preg_quote($s, '/') . '/ui';
4491
+        $s = '/'.preg_quote($s, '/').'/ui';
4492 4492
       }
4493 4493
     }
4494 4494
 
@@ -4546,7 +4546,7 @@  discard block
 block discarded – undo
4546 4546
     }
4547 4547
 
4548 4548
     if (self::substr($str, $length - 1, 1) === ' ') {
4549
-      return (string)self::substr($str, 0, $length - 1) . $strAddOn;
4549
+      return (string)self::substr($str, 0, $length - 1).$strAddOn;
4550 4550
     }
4551 4551
 
4552 4552
     $str = (string)self::substr($str, 0, $length);
@@ -4555,9 +4555,9 @@  discard block
 block discarded – undo
4555 4555
     $new_str = implode(' ', $array);
4556 4556
 
4557 4557
     if ($new_str === '') {
4558
-      $str = (string)self::substr($str, 0, $length - 1) . $strAddOn;
4558
+      $str = (string)self::substr($str, 0, $length - 1).$strAddOn;
4559 4559
     } else {
4560
-      $str = $new_str . $strAddOn;
4560
+      $str = $new_str.$strAddOn;
4561 4561
     }
4562 4562
 
4563 4563
     return $str;
@@ -4612,7 +4612,7 @@  discard block
 block discarded – undo
4612 4612
           $pre = '';
4613 4613
       }
4614 4614
 
4615
-      return $pre . $str . $post;
4615
+      return $pre.$str.$post;
4616 4616
     }
4617 4617
 
4618 4618
     return $str;
@@ -4762,7 +4762,7 @@  discard block
 block discarded – undo
4762 4762
     }
4763 4763
 
4764 4764
     /** @noinspection PhpInternalEntityUsedInspection */
4765
-    preg_match_all('/' . self::GRAPHEME_CLUSTER_RX . '/u', $str, $a);
4765
+    preg_match_all('/'.self::GRAPHEME_CLUSTER_RX.'/u', $str, $a);
4766 4766
     $a = $a[0];
4767 4767
 
4768 4768
     if ($len === 1) {
@@ -4998,7 +4998,7 @@  discard block
 block discarded – undo
4998 4998
   public static function strcmp($str1, $str2)
4999 4999
   {
5000 5000
     /** @noinspection PhpUndefinedClassInspection */
5001
-    return $str1 . '' === $str2 . '' ? 0 : strcmp(
5001
+    return $str1.'' === $str2.'' ? 0 : strcmp(
5002 5002
         \Normalizer::normalize($str1, \Normalizer::NFD),
5003 5003
         \Normalizer::normalize($str2, \Normalizer::NFD)
5004 5004
     );
@@ -5033,7 +5033,7 @@  discard block
 block discarded – undo
5033 5033
       return null;
5034 5034
     }
5035 5035
 
5036
-    if (preg_match('/^(.*?)' . self::rxClass($charList) . '/us', $str, $length)) {
5036
+    if (preg_match('/^(.*?)'.self::rxClass($charList).'/us', $str, $length)) {
5037 5037
       /** @noinspection OffsetOperationsInspection */
5038 5038
       return self::strlen($length[1]);
5039 5039
     }
@@ -5240,7 +5240,7 @@  discard block
 block discarded – undo
5240 5240
         &&
5241 5241
         self::$SUPPORT['mbstring'] === false
5242 5242
     ) {
5243
-      trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5243
+      trigger_error('UTF8::stristr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5244 5244
     }
5245 5245
 
5246 5246
     if (self::$SUPPORT['mbstring'] === true) {
@@ -5257,7 +5257,7 @@  discard block
 block discarded – undo
5257 5257
       return \grapheme_stristr($haystack, $needle, $before_needle);
5258 5258
     }
5259 5259
 
5260
-    preg_match('/^(.*?)' . preg_quote($needle, '/') . '/usi', $haystack, $match);
5260
+    preg_match('/^(.*?)'.preg_quote($needle, '/').'/usi', $haystack, $match);
5261 5261
 
5262 5262
     if (!isset($match[1])) {
5263 5263
       return false;
@@ -5331,7 +5331,7 @@  discard block
 block discarded – undo
5331 5331
         &&
5332 5332
         self::$SUPPORT['iconv'] === false
5333 5333
     ) {
5334
-      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5334
+      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5335 5335
     }
5336 5336
 
5337 5337
     if (
@@ -5406,7 +5406,7 @@  discard block
 block discarded – undo
5406 5406
    */
5407 5407
   public static function strnatcmp($str1, $str2)
5408 5408
   {
5409
-    return $str1 . '' === $str2 . '' ? 0 : strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
5409
+    return $str1.'' === $str2.'' ? 0 : strnatcmp(self::strtonatfold($str1), self::strtonatfold($str2));
5410 5410
   }
5411 5411
 
5412 5412
   /**
@@ -5467,7 +5467,7 @@  discard block
 block discarded – undo
5467 5467
       return false;
5468 5468
     }
5469 5469
 
5470
-    if (preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) {
5470
+    if (preg_match('/'.self::rxClass($char_list).'/us', $haystack, $m)) {
5471 5471
       return substr($haystack, strpos($haystack, $m[0]));
5472 5472
     }
5473 5473
 
@@ -5544,7 +5544,7 @@  discard block
 block discarded – undo
5544 5544
         &&
5545 5545
         self::$SUPPORT['mbstring'] === false
5546 5546
     ) {
5547
-      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5547
+      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5548 5548
     }
5549 5549
 
5550 5550
     if (
@@ -5767,7 +5767,7 @@  discard block
 block discarded – undo
5767 5767
         &&
5768 5768
         self::$SUPPORT['mbstring'] === false
5769 5769
     ) {
5770
-      trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5770
+      trigger_error('UTF8::strripos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5771 5771
     }
5772 5772
 
5773 5773
     if (self::$SUPPORT['mbstring'] === true) {
@@ -5850,7 +5850,7 @@  discard block
 block discarded – undo
5850 5850
         &&
5851 5851
         self::$SUPPORT['mbstring'] === false
5852 5852
     ) {
5853
-      trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5853
+      trigger_error('UTF8::strrpos() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5854 5854
     }
5855 5855
 
5856 5856
     if (self::$SUPPORT['mbstring'] === true) {
@@ -5918,7 +5918,7 @@  discard block
 block discarded – undo
5918 5918
       return 0;
5919 5919
     }
5920 5920
 
5921
-    return preg_match('/^' . self::rxClass($mask) . '+/u', $str, $str) ? self::strlen($str[0]) : 0;
5921
+    return preg_match('/^'.self::rxClass($mask).'+/u', $str, $str) ? self::strlen($str[0]) : 0;
5922 5922
   }
5923 5923
 
5924 5924
   /**
@@ -5964,7 +5964,7 @@  discard block
 block discarded – undo
5964 5964
         &&
5965 5965
         self::$SUPPORT['mbstring'] === false
5966 5966
     ) {
5967
-      trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5967
+      trigger_error('UTF8::strstr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
5968 5968
     }
5969 5969
 
5970 5970
     if (self::$SUPPORT['mbstring'] === true) {
@@ -5981,7 +5981,7 @@  discard block
 block discarded – undo
5981 5981
       return \grapheme_strstr($haystack, $needle, $before_needle);
5982 5982
     }
5983 5983
 
5984
-    preg_match('/^(.*?)' . preg_quote($needle, '/') . '/us', $haystack, $match);
5984
+    preg_match('/^(.*?)'.preg_quote($needle, '/').'/us', $haystack, $match);
5985 5985
 
5986 5986
     if (!isset($match[1])) {
5987 5987
       return false;
@@ -6088,9 +6088,9 @@  discard block
 block discarded – undo
6088 6088
           Bootup::is_php('5.4') === true
6089 6089
       ) {
6090 6090
 
6091
-        $langCode = $lang . '-Lower';
6091
+        $langCode = $lang.'-Lower';
6092 6092
         if (!in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
6093
-          trigger_error('UTF8::strtolower() without intl for special language: ' . $lang, E_USER_WARNING);
6093
+          trigger_error('UTF8::strtolower() without intl for special language: '.$lang, E_USER_WARNING);
6094 6094
 
6095 6095
           $langCode = 'Any-Lower';
6096 6096
         }
@@ -6098,7 +6098,7 @@  discard block
 block discarded – undo
6098 6098
         return transliterator_transliterate($langCode, $str);
6099 6099
       }
6100 6100
 
6101
-      trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: ' . $lang, E_USER_WARNING);
6101
+      trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: '.$lang, E_USER_WARNING);
6102 6102
     }
6103 6103
 
6104 6104
     return \mb_strtolower($str, $encoding);
@@ -6158,9 +6158,9 @@  discard block
 block discarded – undo
6158 6158
           Bootup::is_php('5.4') === true
6159 6159
       ) {
6160 6160
 
6161
-        $langCode = $lang . '-Upper';
6161
+        $langCode = $lang.'-Upper';
6162 6162
         if (!in_array($langCode, self::$SUPPORT['intl__transliterator_list_ids'], true)) {
6163
-          trigger_error('UTF8::strtoupper() without intl for special language: ' . $lang, E_USER_WARNING);
6163
+          trigger_error('UTF8::strtoupper() without intl for special language: '.$lang, E_USER_WARNING);
6164 6164
 
6165 6165
           $langCode = 'Any-Upper';
6166 6166
         }
@@ -6168,7 +6168,7 @@  discard block
 block discarded – undo
6168 6168
         return transliterator_transliterate($langCode, $str);
6169 6169
       }
6170 6170
 
6171
-      trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: ' . $lang, E_USER_WARNING);
6171
+      trigger_error('UTF8::strtolower() without intl + PHP >= 5.4 cannot handle the "lang"-parameter: '.$lang, E_USER_WARNING);
6172 6172
     }
6173 6173
 
6174 6174
     return \mb_strtoupper($str, $encoding);
@@ -6273,7 +6273,7 @@  discard block
 block discarded – undo
6273 6273
 
6274 6274
     $return = array();
6275 6275
     foreach ($array as $key => $value) {
6276
-      if ($case  === CASE_LOWER) {
6276
+      if ($case === CASE_LOWER) {
6277 6277
         $key = self::strtolower($key);
6278 6278
       } else {
6279 6279
         $key = self::strtoupper($key);
@@ -6357,7 +6357,7 @@  discard block
 block discarded – undo
6357 6357
         &&
6358 6358
         self::$SUPPORT['mbstring'] === false
6359 6359
     ) {
6360
-      trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
6360
+      trigger_error('UTF8::substr() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
6361 6361
     }
6362 6362
 
6363 6363
     if (self::$SUPPORT['mbstring'] === true) {
@@ -6514,14 +6514,14 @@  discard block
 block discarded – undo
6514 6514
         &&
6515 6515
         self::$SUPPORT['mbstring'] === false
6516 6516
     ) {
6517
-      trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
6517
+      trigger_error('UTF8::substr_count() without mbstring cannot handle "'.$encoding.'" encoding', E_USER_WARNING);
6518 6518
     }
6519 6519
 
6520 6520
     if (self::$SUPPORT['mbstring'] === true) {
6521 6521
       return \mb_substr_count($haystack, $needle, $encoding);
6522 6522
     }
6523 6523
 
6524
-    preg_match_all('/' . preg_quote($needle, '/') . '/us', $haystack, $matches, PREG_SET_ORDER);
6524
+    preg_match_all('/'.preg_quote($needle, '/').'/us', $haystack, $matches, PREG_SET_ORDER);
6525 6525
 
6526 6526
     return count($matches);
6527 6527
   }
@@ -6783,7 +6783,7 @@  discard block
 block discarded – undo
6783 6783
 
6784 6784
     $strSwappedCase = preg_replace_callback(
6785 6785
         '/[\S]/u',
6786
-        function ($match) use ($encoding) {
6786
+        function($match) use ($encoding) {
6787 6787
           $marchToUpper = UTF8::strtoupper($match[0], $encoding);
6788 6788
 
6789 6789
           if ($match[0] === $marchToUpper) {
@@ -7126,7 +7126,7 @@  discard block
 block discarded – undo
7126 7126
           $c2 = $i + 1 >= $max ? "\x00" : $str[$i + 1];
7127 7127
 
7128 7128
           if ($c2 >= "\x80" && $c2 <= "\xBF") { // yeah, almost sure it's UTF8 already
7129
-            $buf .= $c1 . $c2;
7129
+            $buf .= $c1.$c2;
7130 7130
             $i++;
7131 7131
           } else { // not valid UTF8 - convert it
7132 7132
             $buf .= self::to_utf8_convert($c1);
@@ -7138,7 +7138,7 @@  discard block
 block discarded – undo
7138 7138
           $c3 = $i + 2 >= $max ? "\x00" : $str[$i + 2];
7139 7139
 
7140 7140
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF") { // yeah, almost sure it's UTF8 already
7141
-            $buf .= $c1 . $c2 . $c3;
7141
+            $buf .= $c1.$c2.$c3;
7142 7142
             $i += 2;
7143 7143
           } else { // not valid UTF8 - convert it
7144 7144
             $buf .= self::to_utf8_convert($c1);
@@ -7151,7 +7151,7 @@  discard block
 block discarded – undo
7151 7151
           $c4 = $i + 3 >= $max ? "\x00" : $str[$i + 3];
7152 7152
 
7153 7153
           if ($c2 >= "\x80" && $c2 <= "\xBF" && $c3 >= "\x80" && $c3 <= "\xBF" && $c4 >= "\x80" && $c4 <= "\xBF") { // yeah, almost sure it's UTF8 already
7154
-            $buf .= $c1 . $c2 . $c3 . $c4;
7154
+            $buf .= $c1.$c2.$c3.$c4;
7155 7155
             $i += 3;
7156 7156
           } else { // not valid UTF8 - convert it
7157 7157
             $buf .= self::to_utf8_convert($c1);
@@ -7173,7 +7173,7 @@  discard block
 block discarded – undo
7173 7173
     // decode unicode escape sequences
7174 7174
     $buf = preg_replace_callback(
7175 7175
         '/\\\\u([0-9a-f]{4})/i',
7176
-        function ($match) {
7176
+        function($match) {
7177 7177
           return \mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
7178 7178
         },
7179 7179
         $buf
@@ -7202,7 +7202,7 @@  discard block
 block discarded – undo
7202 7202
     } else {
7203 7203
       $cc1 = self::chr_and_parse_int($ordC1 / 64) | "\xC0";
7204 7204
       $cc2 = ($int & "\x3F") | "\x80";
7205
-      $buf .= $cc1 . $cc2;
7205
+      $buf .= $cc1.$cc2;
7206 7206
     }
7207 7207
 
7208 7208
     return $buf;
@@ -7259,7 +7259,7 @@  discard block
 block discarded – undo
7259 7259
         $cleanUtf8
7260 7260
     );
7261 7261
 
7262
-    return $strPartOne . $strPartTwo;
7262
+    return $strPartOne.$strPartTwo;
7263 7263
   }
7264 7264
 
7265 7265
   /**
@@ -7772,7 +7772,7 @@  discard block
 block discarded – undo
7772 7772
       return '';
7773 7773
     }
7774 7774
 
7775
-    preg_match('/^\s*+(?:\S++\s*+){1,' . $limit . '}/u', $str, $matches);
7775
+    preg_match('/^\s*+(?:\S++\s*+){1,'.$limit.'}/u', $str, $matches);
7776 7776
 
7777 7777
     if (
7778 7778
         !isset($matches[0])
@@ -7782,7 +7782,7 @@  discard block
 block discarded – undo
7782 7782
       return $str;
7783 7783
     }
7784 7784
 
7785
-    return self::rtrim($matches[0]) . $strAddOn;
7785
+    return self::rtrim($matches[0]).$strAddOn;
7786 7786
   }
7787 7787
 
7788 7788
   /**
@@ -7850,7 +7850,7 @@  discard block
 block discarded – undo
7850 7850
       $strReturn .= $break;
7851 7851
     }
7852 7852
 
7853
-    return $strReturn . implode('', $chars);
7853
+    return $strReturn.implode('', $chars);
7854 7854
   }
7855 7855
 
7856 7856
   /**
Please login to merge, or discard this patch.
src/voku/helper/data/x25.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 '#', '#', '#', '#', 'O', 'O', 'O', 'O', '/', '\\\\', '\\\\', '#', '#', '#', '#', '/',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/x06.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'Sh', 'D', 'Gh', '&', '+m', 'h',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/x09.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 'r\'', 'r`', 'Rs', 'Rs', '1/', '2/', '3/', '4/', ' 1 - 1/', '/16', '', '[?]', '[?]', '[?]', '[?]', '[?]',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/xfa.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/x10.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 'h', 'e', 'y', 'w', 'xh', 'oe', 'f', '[?]', '[?]', '[?]', '[?]', ' // ', '[?]', '[?]', '[?]', '[?]',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/x03.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 'k', 'r', 'c', 'j', 'TH', 'e', 'e', 'Sh', 'sh', 's', '[?]', '[?]', 'r/', 'S', 'S.', 'S.',
20 20
 );
21 21
 
22
-$result =& $data;
22
+$result = & $data;
23 23
 unset($data);
24 24
 return $result;
Please login to merge, or discard this patch.