Completed
Push — master ( 7161cd...80db05 )
by Schlaefer
14s
created
plugins/Sitemap/config/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 Router::scope(
9 9
     '/sitemap',
10 10
     ['plugin' => 'Sitemap'],
11
-    function ($routes) {
11
+    function($routes) {
12 12
         $routes->setExtensions(['xml']);
13 13
         $routes->connect('/', ['controller' => 'Sitemaps']);
14 14
         $routes->connect('/:action/*', ['controller' => 'Sitemaps']);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 Router::prefix(
22 22
     'admin',
23
-    function ($routes) {
23
+    function($routes) {
24 24
         $routes->connect(
25 25
             '/plugins/sitemap',
26 26
             ['plugin' => 'Sitemap', 'controller' => 'Sitemaps', 'action' => 'index']
Please login to merge, or discard this patch.
plugins/Sitemap/config/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  */
8 8
 SaitoEventManager::getInstance()->attach(
9 9
     'Request.Saito.View.Admin.plugins',
10
-    function () {
10
+    function() {
11 11
         $url = '/admin/plugins/sitemap';
12 12
         $title = 'Sitemap';
13 13
 
Please login to merge, or discard this patch.
plugins/Sitemap/src/View/Helper/SitemapHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function sitemapUrl()
17 17
     {
18
-        return $this->baseUrl() . 'sitemap.xml';
18
+        return $this->baseUrl().'sitemap.xml';
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
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/tests/TestCase/Controller/ThumbnailControllerTest.php 1 patch
Spacing   +5 added lines, -5 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
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $Uploads = TableRegistry::get('ImageUploader.Uploads');
33 33
         $upload = $Uploads->get(1);
34 34
 
35
-        $file = new File(Configure::read('Saito.Settings.uploadDirectory') . $upload->get('name'));
35
+        $file = new File(Configure::read('Saito.Settings.uploadDirectory').$upload->get('name'));
36 36
         $raw = (new SimpleImage())
37 37
             ->fromNew(500, 500, 'blue')
38 38
             ->toString($upload->get('type'));
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->assertFalse(Cache::read($upload->get('id'), 'uploadsThumbnails'));
44 44
 
45
-        $this->get('/api/v2/uploads/thumb/1?h=' . $upload->get('hash'));
45
+        $this->get('/api/v2/uploads/thumb/1?h='.$upload->get('hash'));
46 46
 
47 47
         $cache = Cache::read($upload->get('id'), 'uploadsThumbnails');
48 48
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $this->assertSame(300, imagesx($image));
51 51
         $this->assertSame(300, imagesy($image));
52 52
         $this->assertSame($upload->get('type'), $cache['type']);
53
-        $this->assertResponseEquals($cache['raw'], (string)$this->_response->getBody());
53
+        $this->assertResponseEquals($cache['raw'], (string) $this->_response->getBody());
54 54
         $this->assertHeader('content-type', 'image/png');
55 55
 
56 56
         //// cleanup
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $Uploads = TableRegistry::get('ImageUploader.Uploads');
70 70
         $upload = $Uploads->get(1);
71 71
 
72
-        $file = new File(Configure::read('Saito.Settings.uploadDirectory') . $upload->get('name'));
72
+        $file = new File(Configure::read('Saito.Settings.uploadDirectory').$upload->get('name'));
73 73
         $raw = (new SimpleImage())
74 74
             ->fromNew(100, 100, 'blue')
75 75
             ->toString($upload->get('type'));
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.