@@ 88-93 (lines=6) @@ | ||
85 | } |
|
86 | } |
|
87 | ||
88 | foreach (array_reverse(static::$words, true) as $word_number => $word) { |
|
89 | if ($number >= $word_number) { |
|
90 | $words[] = static::generate($word_number); |
|
91 | $number %= $word_number; |
|
92 | } |
|
93 | } |
|
94 | $parts[] = implode('-', $words); |
|
95 | ||
96 | return implode(' ', $parts); |
@@ 287-292 (lines=6) @@ | ||
284 | } |
|
285 | } |
|
286 | ||
287 | foreach (array_reverse(static::$words, true) as $word_number => $word) { |
|
288 | if ($number >= $word_number) { |
|
289 | $parts[] = static::getCases($word_number, $gender); |
|
290 | $number %= $word_number; |
|
291 | } |
|
292 | } |
|
293 | ||
294 | // make one array with cases and delete 'o/об' prepositional from all parts except the last one |
|
295 | foreach (array(static::IMENIT, static::RODIT, static::DAT, static::VINIT, static::TVORIT, static::PREDLOJ) as $case) { |