Completed
Push — develop ( fd1ec4...9ebe7a )
by Schlaefer
02:36
created
src/View/Helper/JsDataHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 'version' => Configure::read('Saito.v'),
64 64
                 'settings' => [
65 65
                     'autoPageReload' => (isset($View->viewVars['autoPageReload']) ? $View->viewVars['autoPageReload'] : 0),
66
-                    'editPeriod' => (int)Configure::read(
66
+                    'editPeriod' => (int) Configure::read(
67 67
                         'Saito.Settings.edit_period'
68 68
                     ),
69 69
                     'language' => Configure::read('Saito.language'),
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     'quote_symbol' => $settings['quote_symbol'],
78 78
                     'subject_maxlength' => $settings['subject_maxlength'],
79 79
                     'theme' => $View->getTheme(),
80
-                    'apiroot' => $request->getAttribute('webroot') . 'api/v2/',
80
+                    'apiroot' => $request->getAttribute('webroot').'api/v2/',
81 81
                     'webroot' => $request->getAttribute('webroot')
82 82
                 ]
83 83
             ],
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 'csrf' => $this->_getCsrf($View)
90 90
             ],
91 91
             'currentUser' => [
92
-                'id' => (int)$CurrentUser->get('id'),
92
+                'id' => (int) $CurrentUser->get('id'),
93 93
                 'username' => $CurrentUser->get('username'),
94 94
                 'user_show_inline' => $CurrentUser->get('inline_view_on_click') || false,
95 95
                 'user_show_thread_collapsed' => $CurrentUser->get('user_show_thread_collapsed') || false
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 'afterViewInit' => []
101 101
             ]
102 102
         ];
103
-        $out = 'var SaitoApp = ' . json_encode($js);
103
+        $out = 'var SaitoApp = '.json_encode($js);
104 104
         $out .= '; SaitoApp.timeAppStart = new Date().getTime();';
105 105
 
106 106
         return $out;
Please login to merge, or discard this patch.
config/saito_config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
          * Is the forum installed? Runs installer if not. Default: run installer.
10 10
          */
11 11
         'installed' => filter_var(
12
-            env('INSTALLED', !file_exists(CONFIG . '/installer')),
12
+            env('INSTALLED', !file_exists(CONFIG.'/installer')),
13 13
             FILTER_VALIDATE_BOOLEAN
14 14
         ),
15 15
         /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             /**
40 40
              * Upload directory root with trailing slash
41 41
              */
42
-            'uploadDirectory' => WWW_ROOT . 'useruploads' . DIRECTORY_SEPARATOR
42
+            'uploadDirectory' => WWW_ROOT.'useruploads'.DIRECTORY_SEPARATOR
43 43
         ],
44 44
 
45 45
         /**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     ->addType('audio/mp4')
109 109
     ->addType('audio/webm')
110 110
     ->addType('image/jpeg', '19MB')
111
-    ->addType('image/png',  '19MB')
111
+    ->addType('image/png', '19MB')
112 112
     ->addType('image/svg+xml')
113 113
     ->addType('text/plain')
114 114
     ->addType('video/mp4')
Please login to merge, or discard this patch.