src/Common/Helper/Inflector.php
public static function possessive($sString)
    {
        //  Attempt to match the case
        $sLastChar       = substr($sString, -1);
        $bIsLowerCase    = strtolower($sLastChar) === $sLastChar;
        $sPossessionChar = $bIsLowerCase ? 's' : 'S';

        return substr($sString, -1) == $sPossessionChar ? $sString . '\'' : $sString . '\'' . $sPossessionChar;
    }
public static function possessive($sString)
    {
        //  Attempt to match the case
        $sLastChar       = substr($sString, -1);
        $bIsLowerCase    = strtolower($sLastChar) === $sLastChar;
        $sPossessionChar = $bIsLowerCase ? 's' : 'S';

        return substr($sString, -1) == $sPossessionChar ? $sString . '\'' : $sString . '\'' . $sPossessionChar;
    }
public static function possessive ( $ sString ) { //  Attempt to match the case $ sLastChar = substr ( $ sString , - 1 ) ; $ bIsLowerCase = strtolower ( $ sLastChar ) === $ sLastChar ; $ sPossessionChar = $ bIsLowerCase ? 's' : 'S' ; return substr ( $ sString , - 1 ) == $ sPossessionChar ? $ sString . '\'' : $ sString . '\'' . $ sPossessionChar ; }
Correctly adds a possessive apostrophe to a word

@param  string $sString The word to which to add a possessive apostrophe

@return string
Correctly adds a possessive apostrophe to a word