Completed
Branch 5.0.0/release (401ada)
by Schlaefer
07:44
created
plugins/BbcodeParser/src/Lib/Processors/BbcodeQuotePostprocessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
         $quoteSymbolSanitized = h($this->_sOptions->get('quote_symbol'));
14 14
         $string = preg_replace(
15 15
             // Begin of the text or a new line in the text, maybe one space afterwards
16
-            '/(^|\n\r\s?)' .
17
-            $quoteSymbolSanitized .
16
+            '/(^|\n\r\s?)'.
17
+            $quoteSymbolSanitized.
18 18
             '\s(.*)(?!\<br)/m',
19
-            "\\1<span class=\"richtext-citation\">" . $quoteSymbolSanitized . " \\2</span>",
19
+            "\\1<span class=\"richtext-citation\">".$quoteSymbolSanitized." \\2</span>",
20 20
             $string
21 21
         );
22 22
 
Please login to merge, or discard this patch.
plugins/BbcodeParser/src/Lib/jBBCode/Visitors/JbbCodeSmileyVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
Please login to merge, or discard this patch.
plugins/BbcodeParser/src/Lib/jBBCode/Visitors/JbbCodeAutolinkVisitor.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
             }
70 70
         }
71 71
         krsort($names);
72
-        $baseUrl = $this->_sOptions->get('webroot') . $this->_sOptions->get('atBaseUrl');
72
+        $baseUrl = $this->_sOptions->get('webroot').$this->_sOptions->get('atBaseUrl');
73 73
         foreach ($names as $name => $v) {
74 74
             $title = urlencode($name);
75 75
             $link = $this->_url(
76
-                $baseUrl . $title,
76
+                $baseUrl.$title,
77 77
                 "@$name",
78 78
                 false
79 79
             );
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function _autolink($string)
94 94
     {
95
-        $replace = function ($matches) {
95
+        $replace = function($matches) {
96 96
             // exclude punctuation at end of sentence from URLs
97 97
             $ignoredEndChars = implode('|', [',', '\?', ',', '\.', '\)', '!']);
98 98
             preg_match(
99
-                '/(?P<element>.*?)(?P<suffix>' . $ignoredEndChars . ')?$/',
99
+                '/(?P<element>.*?)(?P<suffix>'.$ignoredEndChars.')?$/',
100 100
                 $matches['element'],
101 101
                 $m
102 102
             );
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $matches = $m + $matches;
105 105
 
106 106
             if (strpos($matches['element'], '://') === false) {
107
-                $matches['element'] = 'http://' . $matches['element'];
107
+                $matches['element'] = 'http://'.$matches['element'];
108 108
             }
109 109
             $matches += [
110 110
                 'prefix' => '',
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 true
119 119
             );
120 120
 
121
-            return $matches['prefix'] . $url . $matches['suffix'];
121
+            return $matches['prefix'].$url.$matches['suffix'];
122 122
         };
123 123
 
124 124
         //# autolink http://urls
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         //# autolink email
139 139
         $string = preg_replace_callback(
140 140
             "#(?<=^|[\n ])(?P<content>([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+))#i",
141
-            function ($matches) {
141
+            function($matches) {
142 142
                 return $this->_email($matches['content']);
143 143
             },
144 144
             $string
@@ -156,13 +156,13 @@  discard block
 block discarded – undo
156 156
      */
157 157
     protected function _hashLink($string)
158 158
     {
159
-        $baseUrl = $this->_sOptions->get('webroot') . $this->_sOptions->get('hashBaseUrl');
159
+        $baseUrl = $this->_sOptions->get('webroot').$this->_sOptions->get('hashBaseUrl');
160 160
         $string = preg_replace_callback(
161 161
             '/(?<=\s|^|])(?<tag>#)(?<element>\d+)(?!\w)/',
162
-            function ($m) use ($baseUrl) {
162
+            function($m) use ($baseUrl) {
163 163
                 $hash = $m['element'];
164 164
 
165
-                return $this->_url($baseUrl . $hash, '#' . $hash);
165
+                return $this->_url($baseUrl.$hash, '#'.$hash);
166 166
             },
167 167
             $string
168 168
         );
Please login to merge, or discard this patch.
plugins/BbcodeParser/src/Lib/jBBCode/Definitions/JbbCodeCodeDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         // load config from app/Config/geshi.php
25 25
         $this->Geshi->features = false;
26 26
 
27
-        $string = '<div class="geshi-wrapper"><pre lang="' . $type . '">' . $content . '</pre></div>';
27
+        $string = '<div class="geshi-wrapper"><pre lang="'.$type.'">'.$content.'</pre></div>';
28 28
 
29 29
         $string = $this->Geshi->highlight($string);
30 30
 
Please login to merge, or discard this patch.
BbcodeParser/src/Lib/jBBCode/Definitions/JbbHtml5MediaCodeDefinition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $out = "<audio src='$content' controls='controls'>";
29 29
         $out .= Message::format(
30 30
             __(
31
-                'Your browser does not support HTML5 audio. Please updgrade to a modern ' .
31
+                'Your browser does not support HTML5 audio. Please updgrade to a modern '.
32 32
                 'browser. In order to watch this stream you need an HTML5 capable browser.',
33 33
                 true
34 34
             )
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
     protected function _video($content)
49 49
     {
50 50
         // fix audio files mistakenly wrapped into an [video] tag
51
-        if (preg_match('/(' . implode('|', self::$_html5AudioExtensions) . ')$/i', $content) === 1) {
51
+        if (preg_match('/('.implode('|', self::$_html5AudioExtensions).')$/i', $content) === 1) {
52 52
             return $this->_audio($content);
53 53
         }
54 54
 
55 55
         $out = "<video src='$content' controls='controls' x-webkit-airplay='allow'>";
56 56
         $out .= Message::format(
57 57
             __(
58
-                'Your browser does not support HTML5 video. Please updgrade to a modern ' .
58
+                'Your browser does not support HTML5 video. Please updgrade to a modern '.
59 59
                 'browser. In order to watch this stream you need an HTML5 capable browser.',
60 60
                 true
61 61
             )
Please login to merge, or discard this patch.
plugins/BbcodeParser/src/Lib/Preprocessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
Please login to merge, or discard this patch.
plugins/MailObfuscator/src/View/Helper/MailObfuscatorHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
         if (empty($title) === false) {
30 30
             $hasTitle = 1;
31 31
         }
32
-        $rand = "moh_" . md5(mt_rand(1, 10000) . $addr);
32
+        $rand = "moh_".md5(mt_rand(1, 10000).$addr);
33 33
         list($ttl, $dom) = explode('@', $addr);
34 34
 
35 35
         // missing  style='unicode-bidi:bidi-override;direction:rtl;'
36
-        $mailto = '<a id="' . $rand . '" href="#" data-ttl="' . $ttl . '" data-dom="' . $dom . '">' . $title . '</a>';
36
+        $mailto = '<a id="'.$rand.'" href="#" data-ttl="'.$ttl.'" data-dom="'.$dom.'">'.$title.'</a>';
37 37
         $mailto .= '<noscript><p>[You need to have Javascript enabled to see this mail address.]</p></noscript>';
38 38
         $mailto .= $this->Html->scriptBlock(
39 39
             "$(function(){
Please login to merge, or discard this patch.
plugins/Bota/src/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Saito - The Threaded Web Forum
Please login to merge, or discard this patch.
plugins/Stopwatch/src/View/Helper/StopwatchHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 /**
5 5
  * Saito - The Threaded Web Forum
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function html(): string
38 38
     {
39
-        $memory = 'Peak memory usage: ' . $this->Number->toReadableSize(memory_get_peak_usage());
39
+        $memory = 'Peak memory usage: '.$this->Number->toReadableSize(memory_get_peak_usage());
40 40
         $html = $this->Html->para('', $memory);
41 41
 
42 42
         $html .= $this->Html->tag(
@@ -117,6 +117,6 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function getResult()
119 119
     {
120
-        return "<pre>" . Stopwatch::getString() . "</pre>";
120
+        return "<pre>".Stopwatch::getString()."</pre>";
121 121
     }
122 122
 }
Please login to merge, or discard this patch.