Completed
Branch develop (b4cf96)
by Schlaefer
08:59
created
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/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/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.
plugins/Installer/tests/TestCase/Controller/InstallerControllerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->createSettings();
79 79
         (new DbVersion(TableRegistry::get('Settings')))->set('4.10.0');
80 80
 
81
-        $token = new File(CONFIG . 'installer');
81
+        $token = new File(CONFIG.'installer');
82 82
         $this->assertTrue($token->exists());
83 83
 
84 84
         $this->get('/');
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function createInstallerToken()
91 91
     {
92
-        (new File(CONFIG . 'installer'))->create();
92
+        (new File(CONFIG.'installer'))->create();
93 93
     }
94 94
 
95 95
     private function createSettings()
Please login to merge, or discard this patch.
plugins/Installer/src/Lib/IntegrationTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             'shouts',
55 55
         ];
56 56
         foreach ($tables as $table) {
57
-            $connection->execute('DROP TABLE IF EXISTS ' . $table . ';');
57
+            $connection->execute('DROP TABLE IF EXISTS '.$table.';');
58 58
         }
59 59
 
60 60
         // Tell the fixture manager that all tables are gone.
Please login to merge, or discard this patch.
bin/cake.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 #!/usr/bin/php -q
2 2
 <?php
3 3
 // Check platform requirements
4
-require dirname(__DIR__) . '/config/requirements.php';
5
-require dirname(__DIR__) . '/vendor/autoload.php';
4
+require dirname(__DIR__).'/config/requirements.php';
5
+require dirname(__DIR__).'/vendor/autoload.php';
6 6
 
7 7
 use App\Application;
8 8
 use Cake\Console\CommandRunner;
9 9
 
10 10
 // Build the runner with an application and root executable name.
11
-$runner = new CommandRunner(new Application(dirname(__DIR__) . '/config'), 'cake');
11
+$runner = new CommandRunner(new Application(dirname(__DIR__).'/config'), 'cake');
12 12
 exit($runner->run($argv));
Please login to merge, or discard this patch.
src/Auth/Mlf2PasswordHasher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     {
19 19
         // compare to includes/functions.inc.php generate_pw_hash() mlf 2.3
20 20
         $salt = self::_generateRandomString(10);
21
-        $saltedHash = sha1($password . $salt);
22
-        $hashWithSalt = $saltedHash . $salt;
21
+        $saltedHash = sha1($password.$salt);
22
+        $hashWithSalt = $saltedHash.$salt;
23 23
 
24 24
         return $hashWithSalt;
25 25
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         // compare to includes/functions.inc.php is_pw_correct() mlf 2.3
50 50
         $saltedHash = substr($hash, 0, 40);
51 51
         $salt = substr($hash, 40, 10);
52
-        if (sha1($password . $salt) == $saltedHash) :
52
+        if (sha1($password.$salt) == $saltedHash) :
53 53
             $out = true;
54 54
         endif;
55 55
 
Please login to merge, or discard this patch.
src/View/Helper/AppHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public static function tagId()
32 32
     {
33
-        return 'id' . static::$_tagId++;
33
+        return 'id'.static::$_tagId++;
34 34
     }
35 35
 }
Please login to merge, or discard this patch.