Skip to content

Commit

Permalink
upd: CS
Browse files Browse the repository at this point in the history
  • Loading branch information
j-schumann committed May 13, 2024
1 parent 101b873 commit 8ba53a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/PHPUnit/ApiPlatformTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ abstract class ApiPlatformTestCase extends ApiTestCase
'hydra:title' => 'An error occurred',
] + self::PROBLEM_400;
public const HYDRA_PROBLEM_403 = [
'@id' => '/errors/403',
'@type' => 'hydra:Error',
'@id' => '/errors/403',
'@type' => 'hydra:Error',
// 'hydra:description' => '', // varies
'hydra:title' => 'An error occurred',
'hydra:title' => 'An error occurred',
] + self::PROBLEM_403;
public const HYDRA_PROBLEM_ACCESS_DENIED = [
'@id' => '/errors/403',
Expand All @@ -145,7 +145,7 @@ abstract class ApiPlatformTestCase extends ApiTestCase
'@type' => 'hydra:Error',
'hydra:description' => 'Not Found',
'hydra:title' => 'An error occurred',
] + self::PROBLEM_NOT_FOUND;
] + self::PROBLEM_NOT_FOUND;
public const HYDRA_PROBLEM_405 = [
'@id' => '/errors/405',
'@type' => 'hydra:Error',
Expand All @@ -161,9 +161,9 @@ abstract class ApiPlatformTestCase extends ApiTestCase
] + self::PROBLEM_422;
public const HYDRA_PROBLEM_500 = [
// '@id' => '/errors/500', // varies
'@type' => 'hydra:Error',
'@type' => 'hydra:Error',
// 'hydra:description' => 'platform.noDefaultRatePlan', // varies
'hydra:title' => 'An error occurred',
'hydra:title' => 'An error occurred',
] + self::PROBLEM_500;
// endregion

Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/Constraints/NoHtmlValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getValid(): array
['12 > 11'],
['11 < 12 and 13 > 11'],
['What is?>'],
// [' close <3 heart, and 13 > 12'], fails but should be valid
// [' close <3 heart, and 13 > 12'], fails but should be valid
];
}

Expand Down

0 comments on commit 8ba53a9

Please sign in to comment.