Completed
Branch develop (c03385)
by Schlaefer
04:24
created
plugins/Sitemap/src/Lib/SitemapEntries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 $changefreq = 'hourly';
103 103
             }
104 104
             $urls[] = [
105
-                    'loc' => 'entries/view/' . $entry['id'],
105
+                    'loc' => 'entries/view/'.$entry['id'],
106 106
                     'lastmod' => Date('c', $lastmod),
107 107
                     'changefreq' => $changefreq
108 108
             ];
Please login to merge, or discard this patch.
plugins/Sitemap/src/Lib/SitemapCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     protected function _add($name, Controller $Controller)
44 44
     {
45
-        $name = 'Sitemap\\Lib\\' . $name;
45
+        $name = 'Sitemap\\Lib\\'.$name;
46 46
         $this->_Generators[$name] = new $name($Controller);
47 47
     }
48 48
 
Please login to merge, or discard this patch.
plugins/ImageUploader/config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 Router::plugin(
7 7
     'ImageUploader',
8 8
     ['path' => '/api/v2'],
9
-    function (RouteBuilder $routes) {
9
+    function(RouteBuilder $routes) {
10 10
         $routes->get(
11 11
             '/uploads/thumb/:id',
12 12
             ['controller' => 'Thumbnail', 'action' => 'thumb'],
Please login to merge, or discard this patch.
plugins/ImageUploader/src/View/Helper/ImageUploaderHelper.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
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 'id' => $image->get('id'),
41 41
                 'name' => $image->get('name'),
42 42
                 'url' => $this->Url->assetUrl(
43
-                    'useruploads/' . $image->get('name'),
43
+                    'useruploads/'.$image->get('name'),
44 44
                     ['fullBase' => true]
45 45
                 ),
46 46
                 'thumbnail_url' => $this->Url->build(
Please login to merge, or discard this patch.
plugins/ImageUploader/src/Controller/UploadsController.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
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         }
58 58
         $data = [
59 59
             'document' => $submitted,
60
-            'name' => $this->CurrentUser->getId() . '_' . $submitted['name'],
60
+            'name' => $this->CurrentUser->getId().'_'.$submitted['name'],
61 61
             'size' => $submitted['size'],
62 62
             'type' => $submitted['type'],
63 63
             'user_id' => $this->CurrentUser->getId(),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             throw new GenericApiException($msg);
95 95
         }
96 96
 
97
-        Cache::delete((string)$imageId, 'uploadsThumbnails');
97
+        Cache::delete((string) $imageId, 'uploadsThumbnails');
98 98
 
99 99
         $this->autoRender = false;
100 100
         $this->response = $this->response->withStatus(204);
Please login to merge, or discard this patch.
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.