Completed
Push — master ( 843310...3e9521 )
by f
01:50
created
src/S.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * Sets encoding for using in morphos/* functions.
11 11
      * @param string $encoding
12
-     * @return bool
12
+     * @return null|false
13 13
      */
14 14
     public static function setEncoding($encoding)
15 15
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $string
46 46
      * @param int $start
47 47
      * @param int|null $end
48
-     * @return bool|string
48
+     * @return string|false
49 49
      */
50 50
     public static function slice($string, $start, $end = null)
51 51
     {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Lower case.
69 69
      * @param $string
70
-     * @return bool|string
70
+     * @return string|false
71 71
      */
72 72
     public static function lower($string)
73 73
     {
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * Upper case.
83
-     * @param $string
84
-     * @return bool|string
83
+     * @param string|false $string
84
+     * @return string|false
85 85
      */
86 86
     public static function upper($string)
87 87
     {
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * Name case. (ex: Thomas, Lewis)
97
-     * @param $string
98
-     * @return bool|string
97
+     * @param string|false $string
98
+     * @return string|false
99 99
      */
100 100
     public static function name($string)
101 101
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * @param string $string
128 128
      * @param string $char
129
-     * @return bool|string
129
+     * @return integer
130 130
      */
131 131
     public static function findFirstPosition($string, $char)
132 132
     {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * @param string $string
142 142
      * @param string $char
143
-     * @return bool|string
143
+     * @return integer
144 144
      */
145 145
     public static function findLastPosition($string, $char)
146 146
     {
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-     * @param $string
155
+     * @param string|false $string
156 156
      * @param array $chars
157
-     * @return bool|string
157
+     * @return string|false
158 158
      */
159 159
     public static function findLastPositionForOneOfChars($string, array $chars)
160 160
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
     /**
180 180
      * @param $string
181
-     * @param $substring
181
+     * @param string $substring
182 182
      * @param bool $caseSensetive
183 183
      * @param int $startOffset
184 184
      * @return string|false
Please login to merge, or discard this patch.