Passed
Push — main ( 66fffb...eb05aa )
by Greg
07:19
created
app/Note.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 
99 99
 
100 100
         // Take the first line
101
-        [$text] = explode(MarkdownFactory::BREAK, strip_tags(trim($text), ['br']));
101
+        [$text] = explode(MarkdownFactory::break, strip_tags(trim($text), ['br']));
102 102
 
103 103
 
104 104
         if ($text !== '') {
Please login to merge, or discard this patch.
app/Factories/MarkdownFactory.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
  */
51 51
 class MarkdownFactory implements MarkdownFactoryInterface
52 52
 {
53
-    public const BREAK = '<br />';
53
+    public const break = '<br />';
54 54
 
55 55
     // Commonmark uses <br /> for hard-breaks, so we use the same for soft-breaks.
56 56
     protected const CONFIG_AUTOLINK = [
57 57
         'allow_unsafe_links' => false,
58 58
         'html_input'         => HtmlFilter::ESCAPE,
59 59
         'renderer'           => [
60
-            'soft_break'     => self::BREAK,
60
+            'soft_break'     => self::break,
61 61
         ],
62 62
     ];
63 63
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         'allow_unsafe_links' => false,
66 66
         'html_input'         => HtmlFilter::ESCAPE,
67 67
         'renderer'           => [
68
-            'soft_break'     => self::BREAK,
68
+            'soft_break'     => self::break,
69 69
         ],
70 70
         'table'              => [
71 71
             'wrap' => [
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $converter = new MarkDownConverter($environment);
105 105
 
106 106
         $html = $converter->convert($markdown)->getContent();
107
-        $html = strtr($html, ["</p>\n<p>" => self::BREAK . self::BREAK]);
107
+        $html = strtr($html, ["</p>\n<p>" => self::break . self::break]);
108 108
 
109 109
         return trim(strip_tags($html, ['a', 'br']));
110 110
     }
Please login to merge, or discard this patch.