Skip to content

Commit 8847a08

Browse files
JacobFitzpgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 7ab1f0e commit 8847a08

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/Helpers/TiptapContentHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function attemptDecode(mixed $value): ?array
1616
try {
1717
$value = json_decode($value, true, 512, JSON_THROW_ON_ERROR);
1818

19-
if (!empty($value) && is_array($value)) {
19+
if (! empty($value) && is_array($value)) {
2020
return $value;
2121
}
2222
} catch (\Exception $exception) {

src/Rules/TiptapContainsText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
6565
$value = TiptapContentHelper::attemptDecode($value);
6666

6767
// Invalid content
68-
if (empty($value) || !is_array($value)) {
68+
if (empty($value) || ! is_array($value)) {
6969
$fail(trans('tiptap-validation::messages.tiptapContainsText.noText'));
7070

7171
return;

src/Rules/TiptapContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ protected function validateNodes(array $nodes): bool
149149
! $this->validateNodes($node['content'])
150150
) {
151151
$passes = false;
152+
152153
return false;
153154
}
154155
});

tests/Unit/Rules/TiptapNodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public static function validatesNodesTestCases(): \Generator
2626
{
2727
yield [
2828
[],
29-
false
29+
false,
3030
];
3131

3232
yield [
3333
[
3434
'type' => 'test',
3535
'text' => 'blah',
3636
],
37-
true
37+
true,
3838
];
3939

4040
yield [
@@ -50,7 +50,7 @@ public static function validatesNodesTestCases(): \Generator
5050
'type' => 'test',
5151
'marks' => 'test',
5252
],
53-
false
53+
false,
5454
];
5555
}
5656
}

0 commit comments

Comments
 (0)