Completed
Push — master ( e4e394...127b74 )
by f
01:37
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/TimeSpeller.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
     const DIRECTION = 1;
23 23
     const SEPARATE = 2;
24 24
 
25
+    /**
26
+     * @param string $unit
27
+     */
25 28
     public static function spellUnit($count, $unit) {}
26 29
 
27 30
     public static function spellInterval(DateInterval $interval, $options = 0)
Please login to merge, or discard this patch.
src/Russian/LastNamesInflection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -219,6 +219,9 @@
 block discarded – undo
219 219
         return array_fill_keys(array(self::IMENIT, self::RODIT, self::DAT, self::VINIT, self::TVORIT, self::PREDLOJ), $name);
220 220
     }
221 221
 
222
+    /**
223
+     * @param string $case
224
+     */
222 225
     public static function getCase($name, $case, $gender = null)
223 226
     {
224 227
         if (!static::isMutable($name, $gender)) {
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)
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 
363 363
     /**
364 364
      * @param $word
365
-     * @param $last
365
+     * @param string|false $last
366 366
      * @return bool|string
367 367
      */
368 368
     public static function getPrefixOfSecondDeclension($word, $last)
@@ -397,9 +397,9 @@  discard block
 block discarded – undo
397 397
     }
398 398
 
399 399
     /**
400
-     * @param $word
401
-     * @param $last
402
-     * @param $prefix
400
+     * @param string|false $word
401
+     * @param string|false $last
402
+     * @param string|boolean $prefix
403 403
      * @return string
404 404
      */
405 405
     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
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @param $word
109
+     * @param string $word
110 110
      * @param $case
111 111
      * @param bool $animateness
112 112
      * @return mixed
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param $word
123 123
      * @param bool $animateness
124
-     * @return array
124
+     * @return string
125 125
      */
126 126
     public static function getCases($word, $animateness = false)
127 127
     {
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
 
150 150
     /**
151 151
      * Склонение обычных существительных.
152
-     * @param $word
153
-     * @param $animateness
152
+     * @param string|false $word
153
+     * @param boolean $animateness
154 154
      * @return array
155 155
      */
156 156
     protected static function declinateSubstative($word, $animateness)
@@ -237,8 +237,8 @@  discard block
 block discarded – undo
237 237
     /**
238 238
      * Склонение существительных, образованных от прилагательных и причастий.
239 239
      * Rules are from http://rusgram.narod.ru/1216-1231.html
240
-     * @param $word
241
-     * @param $animateness
240
+     * @param string|false $word
241
+     * @param boolean $animateness
242 242
      * @return array
243 243
      */
244 244
     protected static function declinateAdjective($word, $animateness)
Please login to merge, or discard this patch.