Completed
Push — master ( d5b3dc...a0db8f )
by f
01:52
created
src/Russian/LastNamesInflection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     /**
17 17
      * @param $name
18
-     * @param null $gender
18
+     * @param string|null $gender
19 19
      * @return bool
20 20
      */
21 21
     public static function isMutable($name, $gender = null)
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
     /**
237 237
      * @param $name
238
-     * @param $case
238
+     * @param string $case
239 239
      * @param null $gender
240 240
      * @return string
241 241
      * @throws \Exception
Please login to merge, or discard this patch.
src/Russian/MiddleNamesInflection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * @param $name
46
-     * @param $case
46
+     * @param string $case
47 47
      * @param null $gender
48 48
      * @return mixed
49 49
      * @throws \Exception
Please login to merge, or discard this patch.
src/Russian/NounDeclension.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     /**
179 179
      * Получение всех форм слова первого склонения.
180
-     * @param $word
180
+     * @param string|false $word
181 181
      * @return array
182 182
      */
183 183
     public static function declinateFirstDeclension($word)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
     /**
220 220
      * Получение всех форм слова второго склонения.
221
-     * @param $word
221
+     * @param string|false $word
222 222
      * @param bool $animateness
223 223
      * @return array
224 224
      */
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
     /**
270 270
      * Получение всех форм слова третьего склонения.
271
-     * @param $word
271
+     * @param string|false $word
272 272
      * @return array
273 273
      */
274 274
     public static function declinateThirdDeclension($word)
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
     /**
289 289
      * Склонение существительных, образованных от прилагательных и причастий.
290 290
      * Rules are from http://rusgram.narod.ru/1216-1231.html
291
-     * @param $word
292
-     * @param $animateness
291
+     * @param string|false $word
292
+     * @param boolean $animateness
293 293
      * @return array
294 294
      */
295 295
     public static function declinateAdjective($word, $animateness)
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 
364 364
     /**
365 365
      * @param $word
366
-     * @param $last
366
+     * @param string|false $last
367 367
      * @return bool
368 368
      */
369 369
     public static function getPrefixOfSecondDeclension($word, $last)
@@ -398,9 +398,9 @@  discard block
 block discarded – undo
398 398
     }
399 399
 
400 400
     /**
401
-     * @param $word
402
-     * @param $last
403
-     * @param $prefix
401
+     * @param string|false $word
402
+     * @param string|false $last
403
+     * @param string|boolean $prefix
404 404
      * @return string
405 405
      */
406 406
     public static function getPredCaseOf12Declensions($word, $last, $prefix)
Please login to merge, or discard this patch.
src/Russian/NounPluralization.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     }
111 111
 
112 112
     /**
113
-     * @param $word
113
+     * @param string $word
114 114
      * @param $case
115 115
      * @param bool $animateness
116 116
      * @return string
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * @param $word
128 128
      * @param bool $animateness
129
-     * @return array
129
+     * @return string
130 130
      */
131 131
     public static function getCases($word, $animateness = false)
132 132
     {
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
 
155 155
     /**
156 156
      * Склонение обычных существительных.
157
-     * @param $word
158
-     * @param $animateness
157
+     * @param string|false $word
158
+     * @param boolean $animateness
159 159
      * @return array
160 160
      */
161 161
     protected static function declinateSubstative($word, $animateness)
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
     /**
243 243
      * Склонение существительных, образованных от прилагательных и причастий.
244 244
      * Rules are from http://rusgram.narod.ru/1216-1231.html
245
-     * @param $word
246
-     * @param $animateness
245
+     * @param string|false $word
246
+     * @param boolean $animateness
247 247
      * @return array
248 248
      */
249 249
     protected static function declinateAdjective($word, $animateness)
Please login to merge, or discard this patch.
src/Russian/RussianLanguage.php 1 patch
Doc Comments   +11 added 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
     {
@@ -110,6 +114,9 @@  discard block
 block discarded – undo
110 114
         return in_array(S::lower($consonant), ['ж', 'ш', 'ч', 'щ']);
111 115
     }
112 116
 
117
+    /**
118
+     * @param string|false $consonant
119
+     */
113 120
     protected static function isVelarConsonant($consonant)
114 121
     {
115 122
         return in_array(S::lower($consonant), ['г', 'к', 'х']);
@@ -161,6 +168,10 @@  discard block
 block discarded – undo
161 168
 
162 169
     /**
163 170
      * Выбор окончания в зависимости от мягкости
171
+     * @param string|false $last
172
+     * @param boolean $soft_last
173
+     * @param string $after_soft
174
+     * @param string $after_hard
164 175
      */
165 176
     public static function chooseVowelAfterConsonant($last, $soft_last, $after_soft, $after_hard)
166 177
     {
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
     {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param string $string
44 44
      * @param int $start
45 45
      * @param int|null $end
46
-     * @return bool|string
46
+     * @return string|false
47 47
      */
48 48
     public static function slice($string, $start, $end = null)
49 49
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * Lower case.
65 65
      * @param $string
66
-     * @return bool|string
66
+     * @return string|false
67 67
      */
68 68
     public static function lower($string)
69 69
     {
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 
77 77
     /**
78 78
      * Upper case.
79
-     * @param $string
80
-     * @return bool|string
79
+     * @param string|false $string
80
+     * @return string|false
81 81
      */
82 82
     public static function upper($string)
83 83
     {
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 
91 91
     /**
92 92
      * Name case. (ex: Thomas, Lewis)
93
-     * @param $string
94
-     * @return bool|string
93
+     * @param string|false $string
94
+     * @return string|false
95 95
      */
96 96
     public static function name($string)
97 97
     {
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
     }
121 121
 
122 122
     /**
123
-     * @param $string
123
+     * @param string|false $string
124 124
      * @param array $chars
125
-     * @return bool|int
125
+     * @return string|false
126 126
      */
127 127
     public static function findLastPositionForOneOfChars($string, array $chars)
128 128
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * @param $string
149
-     * @param $substring
149
+     * @param string $substring
150 150
      * @param bool $caseSensetive
151 151
      * @param int $startOffset
152 152
      * @return string|false
Please login to merge, or discard this patch.