Completed
Push — master ( f54e01...0a7c72 )
by f
02:19
created
web/index.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 require dirname(dirname(__FILE__)).'/vendor/autoload.php';
3
-use morphos\Gender;
4
-use morphos\Russian\CardinalNumeralGenerator;
5
-use morphos\Russian\Cases;
6
-use morphos\Russian\NounDeclension;
7
-use morphos\Russian\GeographicalNamesInflection;
8
-use morphos\Russian\NounPluralization;
3
+use morphos\Gender;
4
+use morphos\Russian\CardinalNumeralGenerator;
5
+use morphos\Russian\Cases;
6
+use morphos\Russian\NounDeclension;
7
+use morphos\Russian\GeographicalNamesInflection;
8
+use morphos\Russian\NounPluralization;
9 9
 use morphos\Russian\OrdinalNumeralGenerator;
10 10
 
11 11
 function safe_string($string) {
Please login to merge, or discard this patch.
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/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.
src/Russian/RussianLanguage.php 1 patch
Doc Comments   +9 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
     {
@@ -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
     {
@@ -164,6 +169,10 @@  discard block
 block discarded – undo
164 169
 
165 170
     /**
166 171
      * Выбор окончания в зависимости от мягкости
172
+     * @param string|false $last
173
+     * @param boolean $soft_last
174
+     * @param string $after_soft
175
+     * @param string $after_hard
167 176
      */
168 177
     public static function chooseVowelAfterConsonant($last, $soft_last, $after_soft, $after_hard)
169 178
     {
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
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * Склонение существительного для сочетания с числом (кол-вом предметов).
62
-     * @param int|string $count Количество предметов
62
+     * @param integer $count Количество предметов
63 63
      * @param string|int $word Название предмета
64 64
      * @param bool $animateness Признак одушевленности
65 65
      * @return string
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * @param $word
130 130
      * @param bool $animateness
131
-     * @return array
131
+     * @return string
132 132
      */
133 133
     public static function getCases($word, $animateness = false)
134 134
     {
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 
157 157
     /**
158 158
      * Склонение обычных существительных.
159
-     * @param $word
160
-     * @param $animateness
159
+     * @param string|false $word
160
+     * @param boolean $animateness
161 161
      * @return array
162 162
      */
163 163
     protected static function declinateSubstative($word, $animateness)
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
     /**
245 245
      * Склонение существительных, образованных от прилагательных и причастий.
246 246
      * Rules are from http://rusgram.narod.ru/1216-1231.html
247
-     * @param $word
248
-     * @param $animateness
247
+     * @param string|false $word
248
+     * @param boolean $animateness
249 249
      * @return array
250 250
      */
251 251
     protected static function declinateAdjective($word, $animateness)
Please login to merge, or discard this patch.