Completed
Push — master ( a85940...3d0bce )
by f
01:53
created
src/Russian/RussianLanguage.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * Проверка гласной
75
+     * @param string|false $char
75 76
      */
76 77
     public static function isVowel($char)
77 78
     {
@@ -80,6 +81,7 @@  discard block
 block discarded – undo
80 81
 
81 82
     /**
82 83
      * Проверка согласной
84
+     * @param string|false $char
83 85
      */
84 86
     public static function isConsonant($char)
85 87
     {
@@ -88,6 +90,7 @@  discard block
 block discarded – undo
88 90
 
89 91
     /**
90 92
      * Проверка звонкости согласной
93
+     * @param string|false $char
91 94
      */
92 95
     public static function isSonorousConsonant($char)
93 96
     {
@@ -96,6 +99,7 @@  discard block
 block discarded – undo
96 99
 
97 100
     /**
98 101
      * Проверка глухости согласной
102
+     * @param string|false $char
99 103
      */
100 104
     public static function isDeafConsonant($char)
101 105
     {
@@ -112,6 +116,7 @@  discard block
 block discarded – undo
112 116
 
113 117
     /**
114 118
      *
119
+     * @param string|false $consonant
115 120
      */
116 121
     protected static function isVelarConsonant($consonant)
117 122
     {
@@ -152,7 +157,7 @@  discard block
 block discarded – undo
152 157
 
153 158
     /**
154 159
      * Проверяет, что гласная образует два звука в словах
155
-     * @param $vowel
160
+     * @param string|false $vowel
156 161
      * @return bool
157 162
      */
158 163
     public static function isBinaryVowel($vowel)
@@ -174,6 +179,10 @@  discard block
 block discarded – undo
174 179
 
175 180
     /**
176 181
      * Выбор окончания в зависимости от мягкости
182
+     * @param string|false $last
183
+     * @param boolean $soft_last
184
+     * @param string $after_soft
185
+     * @param string $after_hard
177 186
      */
178 187
     public static function chooseVowelAfterConsonant($last, $soft_last, $after_soft, $after_hard)
179 188
     {
Please login to merge, or discard this patch.
src/S.php 1 patch
Doc Comments   +10 added lines, -10 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
     {
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @param $string
127
+     * @param string|false $string
128 128
      * @param array $chars
129
-     * @return bool|string
129
+     * @return string|false
130 130
      */
131 131
     public static function findLastPositionForOneOfChars($string, array $chars)
132 132
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     /**
152 152
      * @param $string
153
-     * @param $substring
153
+     * @param string $substring
154 154
      * @param bool $caseSensetive
155 155
      * @param int $startOffset
156 156
      * @return string|false
Please login to merge, or discard this patch.