Skip to content

Commit 1e31fe4

Browse files
hanspagelactions-user
authored andcommittedJan 27, 2022
Fix styling
1 parent fabd862 commit 1e31fe4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
 

‎src/Editor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private function loopThroughNodes(&$node, $closure)
109109

110110
$closure($node);
111111

112-
if (!isset($node->content)) {
112+
if (! isset($node->content)) {
113113
return;
114114
}
115115

‎src/Marks/Bold.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function renderHTML($mark, $HTMLAttributes = [])
4545
return [
4646
'strong',
4747
HTML::mergeAttributes($this->options['HTMLAttributes'], $HTMLAttributes),
48-
0
48+
0,
4949
];
5050
}
5151
}

‎src/Marks/Highlight.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public static function addAttributes()
3838
return InlineStyle::getAttribute($DOMNode, 'background-color') ?: null;
3939
},
4040
'renderHTML' => function ($attributes) {
41-
if (!$attributes->color) {
41+
if (! $attributes->color) {
4242
return null;
4343
}
4444

4545
return [
4646
'data-color' => $attributes->color,
4747
'style' => "background-color: {$attributes->color}",
4848
];
49-
}
49+
},
5050
],
5151
];
5252
}
@@ -56,7 +56,7 @@ public function renderHTML($mark, $HTMLAttributes = [])
5656
return [
5757
'mark',
5858
HTML::mergeAttributes($this->options['HTMLAttributes'], $HTMLAttributes),
59-
0
59+
0,
6060
];
6161
}
6262
}

‎src/Marks/Italic.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Tiptap\Marks;
44

55
use Tiptap\Core\Mark;
6-
use Tiptap\Utils\InlineStyle;
76
use Tiptap\Utils\HTML;
7+
use Tiptap\Utils\InlineStyle;
88

99
class Italic extends Mark
1010
{

‎src/Marks/Link.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function renderHTML($mark, $HTMLAttributes = [])
3939
return [
4040
'a',
4141
HTML::mergeAttributes($this->options['HTMLAttributes'], $HTMLAttributes),
42-
0
42+
0,
4343
];
4444
}
4545
}

0 commit comments

Comments
 (0)
Please sign in to comment.