src/Sasedev/Composer/Plugin/Filescopier/Processor.php
private function endswith($string, $suffix)
	{
		$strlen = strlen($string);
		$testlen = strlen($suffix);
		if ($testlen > $strlen) {
			return false;
		}

		return substr_compare($string, $suffix, -$testlen) === 0;
	}
private function endswith($string, $suffix)
	{
		$strlen = strlen($string);
		$testlen = strlen($suffix);
		if ($testlen > $strlen) {
			return false;
		}

		return substr_compare($string, $suffix, -$testlen) === 0;
	}
private function endswith ( $ string , $ suffix ) { $ strlen = strlen ( $ string ) ; $ testlen = strlen ( $ suffix ) ; if ( $ testlen > $ strlen ) { return false ; } return substr_compare ( $ string , $ suffix , - $ testlen ) === 0 ; }
Check if a string ends with a suffix

@param string $string
@param string $suffix

@return boolean
Check if a string ends with a suffix