Skip to content

Commit

Permalink
refactor: run rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 19, 2023
1 parent dd5558b commit b20ed6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion system/CLI/InputOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class InputOutput
/**
* Is the readline library on the system?
*/
private bool $readlineSupport;
private readonly bool $readlineSupport;

public function __construct()
{
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Utilities/Routes/SampleURIGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function get(string $routeKey): string
{
$sampleUri = $routeKey;

if (strpos($routeKey, '{locale}') !== false) {
if (str_contains($routeKey, '{locale}')) {
$sampleUri = str_replace(
'{locale}',
config(App::class)->defaultLocale,
Expand Down
4 changes: 2 additions & 2 deletions system/Validation/StrictRules/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function differs(
?string $error = null,
?string $field = null
): bool {
if (strpos($otherField, '.') !== false) {
if (str_contains($otherField, '.')) {
return $str !== dot_array_search($otherField, $data);
}

Expand Down Expand Up @@ -274,7 +274,7 @@ public function matches(
?string $error = null,
?string $field = null
): bool {
if (strpos($otherField, '.') !== false) {
if (str_contains($otherField, '.')) {
return $str === dot_array_search($otherField, $data);
}

Expand Down

0 comments on commit b20ed6a

Please sign in to comment.