This repository has been archived on 2022-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
|
<?php declare(strict_types=1);
|
|
|
|
namespace Drupal\opencase;
|
|
|
|
|
|
class Pluraliser {
|
|
const NO_CHANGE = ['Staff'];
|
|
public static function pluralise($text) {
|
|
if (in_array($text, self::NO_CHANGE)) {
|
|
return $text;
|
|
} else {
|
|
return $text . "s";
|
|
}
|
|
}
|
|
} |