Passed
Pull Request — main (#5039)
by Bernard
06:46
created
app/SessionDatabaseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 
115 115
             // Only update session once a minute to reduce contention on the session table.
116 116
             if ($now->subtractMinutes(1)->timestamp() > Registry::timestampFactory()->fromString($this->row->session_time)->timestamp()) {
117
-                $updates['session_time'] =  $now->toDateTimeString();
117
+                $updates['session_time'] = $now->toDateTimeString();
118 118
             }
119 119
 
120 120
             if ($updates !== []) {
Please login to merge, or discard this patch.
app/Factories/MarkdownFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return string
85 85
      */
86
-    public function autolink(string $markdown, Tree|null $tree = null): string
86
+    public function autolink(string $markdown, Tree | null $tree = null): string
87 87
     {
88 88
         // Create a minimal commonmark processor - just add support for auto-links.
89 89
         $environment = new Environment(static::CONFIG_AUTOLINK);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return string
119 119
      */
120
-    public function markdown(string $markdown, Tree|null $tree = null): string
120
+    public function markdown(string $markdown, Tree | null $tree = null): string
121 121
     {
122 122
         $environment = new Environment(static::CONFIG_MARKDOWN);
123 123
         $environment->addExtension(new CommonMarkCoreExtension());
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
 class MarkdownFactory implements MarkdownFactoryInterface
51 51
 {
52 52
     // Commonmark uses the self-closing form of this tag, so we do the same for consistency.
53
-    public const string BREAK = '<br />';
53
+    public const string break = '<br />';
54 54
 
55 55
     protected const array CONFIG_AUTOLINK = [
56 56
         'allow_unsafe_links' => false,
57 57
         'html_input'         => HtmlFilter::ESCAPE,
58 58
         'renderer'           => [
59
-            'soft_break' => self::BREAK,
59
+            'soft_break' => self::break,
60 60
         ],
61 61
     ];
62 62
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         'allow_unsafe_links' => false,
65 65
         'html_input'         => HtmlFilter::ESCAPE,
66 66
         'renderer'           => [
67
-            'soft_break' => self::BREAK,
67
+            'soft_break' => self::break,
68 68
         ],
69 69
         'table'              => [
70 70
             'wrap' => [
Please login to merge, or discard this patch.
app/Contracts/MarkdownFactoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return string
34 34
      */
35
-    public function autolink(string $markdown, Tree|null $tree = null): string;
35
+    public function autolink(string $markdown, Tree | null $tree = null): string;
36 36
 
37 37
     /**
38 38
      * @param string    $markdown
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return string
42 42
      */
43
-    public function markdown(string $markdown, Tree|null $tree = null): string;
43
+    public function markdown(string $markdown, Tree | null $tree = null): string;
44 44
 }
Please login to merge, or discard this patch.
app/Elements/NamePersonal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      * @param string             $label
90 90
      * @param array<string>|null $subtags
91 91
      */
92
-    public function __construct(string $label, array|null $subtags = null)
92
+    public function __construct(string $label, array | null $subtags = null)
93 93
     {
94 94
         if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) {
95 95
             $subtags = static::SUBTAGS_SURNAME_FIRST;
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpAccessDeniedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('You do not have permission to view this page.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpTooManyRequestsException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('Too many requests. Try again later.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpGoneException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('This page has been deleted.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpBadRequestException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('The server could not understand this request.');
36 36
 
Please login to merge, or discard this patch.
app/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @return void
57 57
      */
58
-    private static function addLog(string $message, string $log_type, Tree|null $tree = null): void
58
+    private static function addLog(string $message, string $log_type, Tree | null $tree = null): void
59 59
     {
60 60
         if (Registry::container()->has(ServerRequestInterface::class)) {
61 61
             $request    = Registry::container()->get(ServerRequestInterface::class);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @return void
83 83
      */
84
-    public static function addConfigurationLog(string $message, Tree|null $tree = null): void
84
+    public static function addConfigurationLog(string $message, Tree | null $tree = null): void
85 85
     {
86 86
         self::addLog($message, self::TYPE_CONFIGURATION, $tree);
87 87
     }
Please login to merge, or discard this patch.