Skip to content

Commit

Permalink
apply rector rules
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Nov 17, 2024
1 parent 1b084a1 commit aec500a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion system/Validation/StrictRules/FileRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FileRules
*/
public function __construct(?RequestInterface $request = null)
{
if ($request === null) {
if (! $request instanceof RequestInterface) {
$request = service('request');
}

Expand Down
12 changes: 6 additions & 6 deletions tests/system/Database/Live/MySQLi/FoundRowsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testAffectedRowsAfterEnableFoundRowsWithNoChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 2);
$this->assertSame(2, $affectedRows);
}

public function testAffectedRowsAfterDisableFoundRowsWithNoChange(): void
Expand All @@ -97,7 +97,7 @@ public function testAffectedRowsAfterDisableFoundRowsWithNoChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 0);
$this->assertSame(0, $affectedRows);
}

public function testAffectedRowsAfterEnableFoundRowsWithChange(): void
Expand All @@ -113,7 +113,7 @@ public function testAffectedRowsAfterEnableFoundRowsWithChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 2);
$this->assertSame(2, $affectedRows);
}

public function testAffectedRowsAfterDisableFoundRowsWithChange(): void
Expand All @@ -129,7 +129,7 @@ public function testAffectedRowsAfterDisableFoundRowsWithChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 2);
$this->assertSame(2, $affectedRows);
}

public function testAffectedRowsAfterEnableFoundRowsWithPartialChange(): void
Expand All @@ -145,7 +145,7 @@ public function testAffectedRowsAfterEnableFoundRowsWithPartialChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 2);
$this->assertSame(2, $affectedRows);
}

public function testAffectedRowsAfterDisableFoundRowsWithPartialChange(): void
Expand All @@ -161,6 +161,6 @@ public function testAffectedRowsAfterDisableFoundRowsWithPartialChange(): void

$affectedRows = $db1->affectedRows();

$this->assertSame($affectedRows, 1);
$this->assertSame(1, $affectedRows);
}
}

0 comments on commit aec500a

Please sign in to comment.