Skip to content

Commit

Permalink
Merge pull request #344 from tighten/adc/duster
Browse files Browse the repository at this point in the history
Fix dusting issues
  • Loading branch information
driftingly authored Sep 1, 2023
2 parents 1db6b58 + 0a33a6c commit a51d151
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Linters/RequestValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class RequestValidation extends BaseLinter
{
use LintsControllers;
use IdentifiesExtends;
use LintsControllers;

public const DESCRIPTION = 'Use `request()->validate(...)` helper function or extract a FormRequest instead of using `$this->validate(...)` in controllers';

Expand Down
2 changes: 1 addition & 1 deletion tests/Formatting/ParseErrorDoesNotFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Thing
'file or directory' => $filePath,
]);

$this->assertStringContainsString("unexpected T_STRING, expecting '='", $commandTester->getDisplay());
$this->assertStringContainsString('Syntax error', $commandTester->getDisplay());
$this->assertEquals(1, $commandTester->getStatusCode());
}
}
2 changes: 1 addition & 1 deletion tests/Linting/ParseErrorConvertsToLintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Thing
'file or directory' => $filePath,
]);

$this->assertStringContainsString("unexpected T_STRING, expecting '='", $commandTester->getDisplay());
$this->assertStringContainsString('Syntax error', $commandTester->getDisplay());
$this->assertEquals(1, $commandTester->getStatusCode());
}
}

0 comments on commit a51d151

Please sign in to comment.