protected function doesStartOrEndWithSingleQuote($name)
    {
        $startsWithSingleQuote = ($this->stringHelper->getCharFirstOccurrencePosition('\'', $name) === 0);
        $endsWithSingleQuote = ($this->stringHelper->getCharLastOccurrencePosition('\'', $name) === ($this->stringHelper->getStringLength($name) - 1));

        return ($startsWithSingleQuote || $endsWithSingleQuote);
    }
protected function doesStartOrEndWithSingleQuote($name)
    {
        $startsWithSingleQuote = ($this->stringHelper->getCharFirstOccurrencePosition('\'', $name) === 0);
        $endsWithSingleQuote = ($this->stringHelper->getCharLastOccurrencePosition('\'', $name) === ($this->stringHelper->getStringLength($name) - 1));

        return ($startsWithSingleQuote || $endsWithSingleQuote);
    }
protected function doesStartOrEndWithSingleQuote ( $ name ) { $ startsWithSingleQuote = ( $ this -> stringHelper -> getCharFirstOccurrencePosition ( '\'' , $ name ) === 0 ) ; $ endsWithSingleQuote = ( $ this -> stringHelper -> getCharLastOccurrencePosition ( '\'' , $ name ) === ( $ this -> stringHelper -> getStringLength ( $ name ) - 1 ) ) ; return ( $ startsWithSingleQuote || $ endsWithSingleQuote ) ; }
Returns whether the given name starts or ends with a single quote

@param string $name
@return bool TRUE if the name starts or ends with a single quote, FALSE otherwise.
Returns whether the given name starts or ends with a single quote