Completed
Push — master ( 3c1969...5b5792 )
by Schlaefer
03:16 queued 10s
created
plugins/ImageUploader/src/Model/Entity/Upload.php 1 patch
Spacing   +4 added lines, -4 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
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         }
36 36
 
37 37
         $ext = array_pop($parts);
38
-        $text = Text::slug(implode('.', $parts), '_') . '.' . $ext;
38
+        $text = Text::slug(implode('.', $parts), '_').'.'.$ext;
39 39
 
40 40
         return $text;
41 41
     }
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function _getFile(): File
49 49
     {
50
-        $folderPath = rtrim(Configure::read('Saito.Settings.uploadDirectory'), DS) . DS;
51
-        return new File($folderPath . $this->get('name'));
50
+        $folderPath = rtrim(Configure::read('Saito.Settings.uploadDirectory'), DS).DS;
51
+        return new File($folderPath.$this->get('name'));
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
plugins/Feeds/config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 Router::plugin(
7 7
     'Feeds',
8
-    function ($routes) {
8
+    function($routes) {
9 9
         $routes->setExtensions(['rss']);
10 10
         $routes->fallbacks(DashedRoute::class);
11 11
     }
Please login to merge, or discard this patch.
plugins/Bookmarks/tests/TestCase/Controller/BookmarksControllerTest.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
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $this->get('api/v2/bookmarks');
61 61
 
62
-        $response = json_decode((string)$this->_response->getBody(), true);
62
+        $response = json_decode((string) $this->_response->getBody(), true);
63 63
 
64 64
         $this->assertNotEmpty($response['data'][0]['attributes']['threadline_html']);
65 65
         $response = Hash::remove($response, 'data.{n}.attributes.threadline_html');
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $this->assertTrue($this->Bookmarks->exists(['entry_id' => 4, 'user_id' => 3]));
210 210
 
211 211
         $this->assertResponseCode(200);
212
-        $response = json_decode((string)$this->_response->getBody(), true);
212
+        $response = json_decode((string) $this->_response->getBody(), true);
213 213
         $expected = [
214 214
             'data' => [
215 215
                 'id' => 6,
Please login to merge, or discard this patch.
plugins/Bookmarks/config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 Router::plugin(
6 6
     'Bookmarks',
7 7
     ['path' => '/api/v2'],
8
-    function ($routes) {
8
+    function($routes) {
9 9
         $routes->setExtensions(['json']);
10 10
         $routes->resources('Bookmarks');
11 11
     }
Please login to merge, or discard this patch.
plugins/Bookmarks/src/Controller/BookmarksController.php 2 patches
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
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function edit($id)
86 86
     {
87
-        $id = (int)$id;
87
+        $id = (int) $id;
88 88
         $bookmark = $this->getBookmark($id);
89 89
 
90 90
         $this->Bookmarks->patchEntity(
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function delete($id)
111 111
     {
112
-        $id = (int)$id;
112
+        $id = (int) $id;
113 113
         $bookmark = $this->getBookmark($id);
114 114
         if (!$this->Bookmarks->delete($bookmark)) {
115 115
             throw new GenericApiException('The bookmark could not be deleted.');
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
 use Cake\Http\Exception\MethodNotAllowedException;
21 21
 use Cake\Http\Exception\NotFoundException;
22 22
 use Cake\ORM\Entity;
23
-use Cake\ORM\Query;
24
-use Saito\App\Registry;
25 23
 use Saito\Exception\SaitoForbiddenException;
26 24
 
27 25
 /**
Please login to merge, or discard this patch.
plugins/Admin/tests/TestCase/Controller/CategoriesControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $this->_loginUser(1);
43 43
         $source = 2;
44 44
 
45
-        $readPostings = function () use ($source) {
45
+        $readPostings = function() use ($source) {
46 46
             $read = [];
47 47
             $read['all'] = $this->Entries->find()->all()->count();
48 48
             $read['source'] = $this->Entries->find()
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $source = 2;
79 79
         $target = 4;
80 80
 
81
-        $readPostings = function () use ($source, $target) {
81
+        $readPostings = function() use ($source, $target) {
82 82
             $read = [];
83 83
             $read['all'] = $this->Entries->find()->all()->count();
84 84
             $read['source'] = $this->Entries->find()
Please login to merge, or discard this patch.
plugins/Admin/config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 Router::scope(
9 9
     '/admin',
10 10
     ['plugin' => 'Admin'],
11
-    function ($routes) {
11
+    function($routes) {
12 12
         $routes->connect(
13 13
             '/',
14 14
             ['controller' => 'Admins', 'action' => 'index']
Please login to merge, or discard this patch.
plugins/Admin/src/View/Helper/SettingHelper.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
         $anchors = '';
52 52
         foreach ($settingNames as $name) {
53 53
             $out .= $this->tableRow($name, $Settings);
54
-            $anchors .= '<a name="' . $name . '"></a>';
54
+            $anchors .= '<a name="'.$name.'"></a>';
55 55
         }
56 56
         $key = $this->addHeader($options['nav-title']);
57
-        $out = '<table class="table table-striped table-bordered table-condensed">' .
58
-            $out . '</table>';
57
+        $out = '<table class="table table-striped table-bordered table-condensed">'.
58
+            $out.'</table>';
59 59
 
60 60
         $sh = '';
61 61
         if (!empty($options['sh'])) {
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
             );
66 66
         }
67 67
 
68
-        $out = '<div id="navHeaderAnchor' . $key . '"></div>' .
69
-            $sh .
70
-            $anchors .
71
-            '<h2 >' . $tableName . '</h2>' .
68
+        $out = '<div id="navHeaderAnchor'.$key.'"></div>'.
69
+            $sh.
70
+            $anchors.
71
+            '<h2 >'.$tableName.'</h2>'.
72 72
             $out;
73 73
 
74 74
         return $out;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             [
112 112
                 __d('nondynamic', $name),
113 113
                 $Settings[$name],
114
-                "<p>" . __d('nondynamic', $name . '_exp') . "</p>",
114
+                "<p>".__d('nondynamic', $name.'_exp')."</p>",
115 115
                 $this->Html->link(
116 116
                     __('edit'),
117 117
                     ['controller' => 'settings', 'action' => 'edit', $name],
Please login to merge, or discard this patch.
plugins/Detectors/src/Controller/Component/DetectorsComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         if ($this->_isBot === null) {
104 104
             $agent = env('HTTP_USER_AGENT');
105 105
             $imploded = implode('|', $this->_bots);
106
-            $this->_isBot = (bool)preg_match('/' . $imploded . '/i', $agent);
106
+            $this->_isBot = (bool) preg_match('/'.$imploded.'/i', $agent);
107 107
         }
108 108
 
109 109
         return $this->_isBot;
Please login to merge, or discard this patch.