Completed
Pull Request — master (#325)
by Richard
08:44
created
htdocs/class/libraries/vendor/symfony/polyfill-mbstring/bootstrap.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -20,28 +20,62 @@
 block discarded – undo
20 20
     function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
21 21
     function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
22 22
     function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
23
+
24
+    /**
25
+     * @param string|boolean $enc
26
+     */
23 27
     function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
24 28
     function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
25 29
     function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
26 30
     function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
31
+
32
+    /**
33
+     * @param string $var
34
+     * @param string $encoding
35
+     */
27 36
     function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
28 37
     function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
29 38
     function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
30 39
     function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
31 40
     function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
41
+
42
+    /**
43
+     * @param string $s
44
+     * @param string $needle
45
+     * @param string $enc
46
+     */
32 47
     function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
48
+
49
+    /**
50
+     * @param string $s
51
+     * @param string $enc
52
+     */
33 53
     function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
34 54
     function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
35 55
     function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
36 56
     function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
57
+
58
+    /**
59
+     * @param string $enc
60
+     */
37 61
     function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
38 62
     function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
39 63
     function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
40 64
     function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
41 65
     function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
66
+
67
+    /**
68
+     * @param string $s
69
+     * @param string $needle
70
+     * @param string $enc
71
+     */
42 72
     function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
43 73
     function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
44 74
     function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
75
+
76
+    /**
77
+     * @param string $enc
78
+     */
45 79
     function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
46 80
     function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
47 81
     function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
Please login to merge, or discard this patch.
htdocs/class/libraries/vendor/symfony/polyfill-mbstring/Mbstring.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -270,6 +270,9 @@  discard block
 block discarded – undo
270 270
         return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
271 271
     }
272 272
 
273
+    /**
274
+     * @return string
275
+     */
273 276
     public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
274 277
     {
275 278
         if (null === $encodingList) {
@@ -574,6 +577,9 @@  discard block
 block discarded – undo
574 577
         return $code;
575 578
     }
576 579
 
580
+    /**
581
+     * @param boolean $part
582
+     */
577 583
     private static function getSubpart($pos, $part, $haystack, $encoding)
578 584
     {
579 585
         if (false === $pos) {
@@ -621,6 +627,9 @@  discard block
 block discarded – undo
621 627
         return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8');
622 628
     }
623 629
 
630
+    /**
631
+     * @param string $file
632
+     */
624 633
     private static function getData($file)
625 634
     {
626 635
         if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) {
Please login to merge, or discard this patch.