Completed
Push — master ( 4b1809...5e3fcd )
by f
01:31
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
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
     /**
197 197
      * Получение всех форм слова первого склонения.
198
-     * @param $word
198
+     * @param boolean|string $word
199 199
      * @return array
200 200
      */
201 201
     public static function declinateFirstDeclension($word)
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
     /**
238 238
      * Получение всех форм слова второго склонения.
239
-     * @param $word
239
+     * @param boolean|string $word
240 240
      * @param bool $animateness
241 241
      * @return array
242 242
      */
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
     /**
291 291
      * Получение всех форм слова третьего склонения.
292
-     * @param $word
292
+     * @param boolean|string $word
293 293
      * @return array
294 294
      */
295 295
     public static function declinateThirdDeclension($word)
@@ -309,8 +309,8 @@  discard block
 block discarded – undo
309 309
     /**
310 310
      * Склонение существительных, образованных от прилагательных и причастий.
311 311
      * Rules are from http://rusgram.narod.ru/1216-1231.html
312
-     * @param $word
313
-     * @param $animateness
312
+     * @param boolean|string $word
313
+     * @param boolean $animateness
314 314
      * @return array
315 315
      */
316 316
     public static function declinateAdjective($word, $animateness)
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 
385 385
     /**
386 386
      * @param $word
387
-     * @param $last
387
+     * @param string|false $last
388 388
      * @return bool
389 389
      */
390 390
     public static function getPrefixOfSecondDeclension($word, $last)
@@ -419,9 +419,9 @@  discard block
 block discarded – undo
419 419
     }
420 420
 
421 421
     /**
422
-     * @param $word
423
-     * @param $last
424
-     * @param $prefix
422
+     * @param boolean|string $word
423
+     * @param string|false $last
424
+     * @param string|boolean $prefix
425 425
      * @return string
426 426
      */
427 427
     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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * Склонение существительного для сочетания с числом (кол-вом предметов).
59 59
      *
60 60
      * @param string|int $word        Название предмета
61
-     * @param int|string $count       Количество предметов
61
+     * @param integer $count       Количество предметов
62 62
      * @param bool       $animateness Признак одушевленности
63 63
      * @param string     $case        Род существительного
64 64
      *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * @param $word
135 135
      * @param bool $animateness
136
-     * @return array
136
+     * @return string
137 137
      */
138 138
     public static function getCases($word, $animateness = false)
139 139
     {
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 
162 162
     /**
163 163
      * Склонение обычных существительных.
164
-     * @param $word
165
-     * @param $animateness
164
+     * @param boolean|string $word
165
+     * @param boolean $animateness
166 166
      * @return array
167 167
      */
168 168
     protected static function declinateSubstative($word, $animateness)
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
     /**
254 254
      * Склонение существительных, образованных от прилагательных и причастий.
255 255
      * Rules are from http://rusgram.narod.ru/1216-1231.html
256
-     * @param $word
257
-     * @param $animateness
256
+     * @param boolean|string $word
257
+     * @param boolean $animateness
258 258
      * @return array
259 259
      */
260 260
     protected static function declinateAdjective($word, $animateness)
Please login to merge, or discard this patch.
src/S.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * Sets encoding for all operations
19 19
      * @param string $encoding
20
-     * @return bool
20
+     * @return boolean|null
21 21
      */
22 22
     public static function setEncoding($encoding)
23 23
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $string
57 57
      * @param int $start
58 58
      * @param int|null $end
59
-     * @return bool|string
59
+     * @return string|false
60 60
      */
61 61
     public static function slice($string, $start, $end = null)
62 62
     {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * @param string $string
141 141
      * @param string $char
142
-     * @return bool|string
142
+     * @return integer
143 143
      */
144 144
     public static function findFirstPosition($string, $char)
145 145
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * @param string $string
155 155
      * @param string $char
156
-     * @return bool|string
156
+     * @return integer
157 157
      */
158 158
     public static function findLastPosition($string, $char)
159 159
     {
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param $string
168
+     * @param boolean|string $string
169 169
      * @param array $chars
170
-     * @return bool|string
170
+     * @return string|false
171 171
      */
172 172
     public static function findLastPositionForOneOfChars($string, array $chars)
173 173
     {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 
192 192
     /**
193 193
      * @param $string
194
-     * @param $substring
194
+     * @param string $substring
195 195
      * @param bool $caseSensetive
196 196
      * @param int $startOffset
197 197
      * @return string|false
Please login to merge, or discard this patch.
src/Russian/AdjectiveDeclension.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @param      $adjective
56
+     * @param      string $adjective
57 57
      *
58 58
      * @param bool $isEmphasized
59 59
      *
@@ -145,9 +145,8 @@  discard block
 block discarded – undo
145 145
      * @param string $adjective
146 146
      * @param bool   $animateness
147 147
      * @param string $gender
148
-     * @param bool   $isEmphasized
149 148
      *
150
-     * @param        $afterConsonantVowel
149
+     * @param        string|false $afterConsonantVowel
151 150
      *
152 151
      * @return array
153 152
      */
@@ -190,9 +189,8 @@  discard block
 block discarded – undo
190 189
      * @param string $adjective
191 190
      * @param bool   $animateness
192 191
      * @param string $gender
193
-     * @param bool   $isEmphasized
194 192
      *
195
-     * @param        $afterConsonantVowel
193
+     * @param        string|false $afterConsonantVowel
196 194
      *
197 195
      * @return array
198 196
      */
@@ -234,7 +232,7 @@  discard block
 block discarded – undo
234 232
      * @param string $adjective
235 233
      * @param bool   $animateness
236 234
      * @param string $gender
237
-     * @param bool   $isEmphasized
235
+     * @param string|false $afterConsonantVowel
238 236
      *
239 237
      * @return array
240 238
      */
Please login to merge, or discard this patch.
src/Russian/RussianLanguage.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * Проверка гласной
75
-     * @param $char
75
+     * @param string|false $char
76 76
      * @return bool
77 77
      */
78 78
     public static function isVowel($char)
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * Проверка согласной
85
-     * @param $char
85
+     * @param string|false $char
86 86
      * @return bool
87 87
      */
88 88
     public static function isConsonant($char)
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /**
94 94
      * Проверка звонкости согласной
95
+     * @param string|false $char
95 96
      */
96 97
     public static function isSonorousConsonant($char)
97 98
     {
@@ -100,7 +101,7 @@  discard block
 block discarded – undo
100 101
 
101 102
     /**
102 103
      * Проверка глухости согласной
103
-     * @param $char
104
+     * @param string|false $char
104 105
      * @return bool
105 106
      */
106 107
     public static function isDeafConsonant($char)
@@ -120,7 +121,7 @@  discard block
 block discarded – undo
120 121
 
121 122
     /**
122 123
      * Проверка на велярность согласной
123
-     * @param string[1] $consonant
124
+     * @param string|false $consonant
124 125
      * @return bool
125 126
      */
126 127
     protected static function isVelarConsonant($consonant)
@@ -169,7 +170,7 @@  discard block
 block discarded – undo
169 170
 
170 171
     /**
171 172
      * Проверка мягкости последней согласной, за исключением Н
172
-     * @param $word
173
+     * @param string|false $word
173 174
      * @return bool
174 175
      */
175 176
     public static function checkBaseLastConsonantSoftness($word)
@@ -190,7 +191,7 @@  discard block
 block discarded – undo
190 191
 
191 192
     /**
192 193
      * Проверяет, что гласная образует два звука в словах
193
-     * @param $vowel
194
+     * @param string|false $vowel
194 195
      * @return bool
195 196
      */
196 197
     public static function isBinaryVowel($vowel)
@@ -219,10 +220,10 @@  discard block
 block discarded – undo
219 220
     /**
220 221
      * Выбор окончания в зависимости от мягкости
221 222
      *
222
-     * @param $last
223
-     * @param $softLast
224
-     * @param $afterSoft
225
-     * @param $afterHard
223
+     * @param string|false $last
224
+     * @param boolean $softLast
225
+     * @param string $afterSoft
226
+     * @param string $afterHard
226 227
      *
227 228
      * @return mixed
228 229
      */
Please login to merge, or discard this patch.