Skip to content

Commit 471f937

Browse files
committed
coding standards fixes
1 parent c040d67 commit 471f937

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/Strings.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -557,13 +557,13 @@ public static function replaceArray(string $string, string $search, array $repla
557557
return $result;
558558
}
559559

560-
/**
561-
* Replace the first occurrence of a given value in the string.
562-
*
563-
* @param string $string String
564-
* @param string $search Search
565-
* @param string $replace Replace
566-
*/
560+
/**
561+
* Replace the first occurrence of a given value in the string.
562+
*
563+
* @param string $string String
564+
* @param string $search Search
565+
* @param string $replace Replace
566+
*/
567567
public static function replaceFirst(string $string, string $search, string $replace): string
568568
{
569569
if ($search === '') {
@@ -579,13 +579,13 @@ public static function replaceFirst(string $string, string $search, string $repl
579579
return $search;
580580
}
581581

582-
/**
583-
* Replace the last occurrence of a given value in the string.
584-
*
585-
* @param string $string String
586-
* @param string $search Search
587-
* @param string $replace Replace
588-
*/
582+
/**
583+
* Replace the last occurrence of a given value in the string.
584+
*
585+
* @param string $string String
586+
* @param string $search Search
587+
* @param string $replace Replace
588+
*/
589589
public static function replaceLast(string $string, string $search, string $replace): string
590590
{
591591
$position = strrpos($string, $search);
@@ -597,25 +597,25 @@ public static function replaceLast(string $string, string $search, string $repla
597597
return $subject;
598598
}
599599

600-
/**
601-
* Begin a string with a single instance of a given value.
602-
*
603-
* @param string $string String
604-
* @param string $prefix Prefix
605-
*/
600+
/**
601+
* Begin a string with a single instance of a given value.
602+
*
603+
* @param string $string String
604+
* @param string $prefix Prefix
605+
*/
606606
public static function start(string $string, string $prefix): string
607607
{
608608
$quoted = preg_quote($prefix, '/');
609609

610610
return $prefix . preg_replace('/^(?:' . $quoted . ')+/u', '', $string);
611611
}
612612

613-
/**
614-
* Determine if a given string starts with a given substring.
615-
*
616-
* @param string $haystack Haystack
617-
* @param string|string[] $needles needles
618-
*/
613+
/**
614+
* Determine if a given string starts with a given substring.
615+
*
616+
* @param string $haystack Haystack
617+
* @param string|string[] $needles needles
618+
*/
619619
public static function startsWith(string $haystack, $needles): bool
620620
{
621621
foreach ((array) $needles as $needle) {

0 commit comments

Comments
 (0)