clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php declare(strict_types = 1);
namespace SlevomatCodingStandard\Helpers;
use function strlen;
use function strpos;
use function substr;
/**
* @internal
*/
class StringHelper
{
public static function startsWith(string $haystack, string $needle): bool
{
return $needle === '' || strpos($haystack, $needle) === 0;
}
public static function endsWith(string $haystack, string $needle): bool
{
return $needle === '' || substr($haystack, -strlen($needle)) === $needle;
}
}