/**
* Cases: rodilnik, dajalnik, tožilnik, mestnik, orodnik
*
- * @param $word string
- * @param $case string
+ * @param string $word
+ * @param string $case
*
* @return string
*/
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
+ # this will return the original value for 'imenovalnik' (nominativ) and
+ # all undefined case values.
+ return $word;
}
-
}