Completed
Push — master ( dd6397...5d0bef )
by f
01:45
created
src/Russian/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 /**
55 55
  * Guesses the gender of name owner.
56 56
  * @param string $fullname
57
- * @return null|string     Null if not detected. One of {@link morphos\Gender} constants.
57
+ * @return false|string     Null if not detected. One of {@link morphos\Gender} constants.
58 58
  */
59 59
 function detectGender($fullname)
60 60
 {
Please login to merge, or discard this patch.
src/Russian/RussianLanguage.php 1 patch
Doc Comments   +13 added lines, -2 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
     {
@@ -110,6 +114,9 @@  discard block
 block discarded – undo
110 114
         return in_array(S::lower($consonant), array('ж', 'ш', 'ч', 'щ'));
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), array('г', 'к', 'х'));
@@ -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
     {
@@ -234,8 +245,8 @@  discard block
 block discarded – undo
234 245
     /**
235 246
      * Выбирает первое или второе окончание в зависимости от звонкости/глухости в конце слова.
236 247
      * @param string $word Слово (или префикс), на основе звонкости которого нужно выбрать окончание
237
-     * @param string $ifSonorous Окончание, если слово оканчивается на звонкую согласную
238
-     * @param string $ifDead Окончание, если слово оканчивается на глухую согласную
248
+     * @param string $ifSononous Окончание, если слово оканчивается на звонкую согласную
249
+     * @param string $ifDeaf Окончание, если слово оканчивается на глухую согласную
239 250
      * @return string Первое или второе окончание
240 251
      */
241 252
     public static function chooseEndingBySonority($word, $ifSononous, $ifDeaf)
Please login to merge, or discard this patch.