Merge "Make languages/utils pass phpcs-strict"
[lhc/web/wiklou.git] / languages / classes / LanguageSl.php
index c075e51..25fc963 100644 (file)
@@ -32,8 +32,8 @@ class LanguageSl extends Language {
        /**
         * Cases: rodilnik, dajalnik, tožilnik, mestnik, orodnik
         *
-        * @param $word string
-        * @param $case string
+        * @param string $word
+        * @param string $case
         *
         * @return string
         */
@@ -45,35 +45,15 @@ class LanguageSl extends Language {
 
                switch ( $case ) {
                        case 'mestnik': # locative
-                               $word = 'o ' . $word; break;
+                               $word = 'o ' . $word;
+                               break;
                        case 'orodnik': # instrumental
                                $word = 'z ' . $word;
+                               break;
                }
 
-               return $word; # this will return the original value for 'imenovalnik' (nominativ) and all undefined case values
-       }
-
-       /**
-        * @param $count int
-        * @param $forms array
-        *
-        * @return string
-        */
-       function convertPlural( $count, $forms ) {
-               if ( !count( $forms ) ) { return ''; }
-               $forms = $this->preConvertPlural( $forms, 5 );
-
-               if ( $count % 100 == 1 ) {
-                       $index = 0;
-               } elseif ( $count % 100 == 2 ) {
-                       $index = 1;
-               } elseif ( $count % 100 == 3 || $count % 100 == 4 ) {
-                       $index = 2;
-               } elseif ( $count != 0 ) {
-                       $index = 3;
-               } else {
-                       $index = 4;
-               }
-               return $forms[$index];
+               # this will return the original value for 'imenovalnik' (nominativ) and
+               # all undefined case values.
+               return $word;
        }
 }