GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 39ed76...b8da4b )
by Steeven
04:42
created
src/Models/Sql/Traits/RecordTrait.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -99,64 +99,64 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $timestamp = $this->unixTimestamp === true ? strtotime(date('Y-m-d H:i:s')) : date('Y-m-d H:i:s');
101 101
 
102
-        if(is_null($this->recordUser)) {
103
-            if(globals()->offsetExists('account')) {
102
+        if (is_null($this->recordUser)) {
103
+            if (globals()->offsetExists('account')) {
104 104
                 $this->setRecordUser(globals()->account->id);
105 105
             }
106 106
         }
107 107
 
108
-        if ( ! isset($sets[ 'record_status' ])) {
109
-            $sets[ 'record_status' ] = $this->recordStatus;
108
+        if ( ! isset($sets['record_status'])) {
109
+            $sets['record_status'] = $this->recordStatus;
110 110
         }
111 111
 
112 112
         if (empty($this->primaryKeys)) {
113 113
             $primaryKey = isset($this->primaryKey) ? $this->primaryKey : 'id';
114 114
 
115
-            if (isset($sets[ $primaryKey ])) {
116
-                if (empty($sets[ $primaryKey ])) {
117
-                    unset($sets[ $primaryKey ]);
115
+            if (isset($sets[$primaryKey])) {
116
+                if (empty($sets[$primaryKey])) {
117
+                    unset($sets[$primaryKey]);
118 118
                 }
119 119
             }
120 120
 
121
-            if (empty($sets[ $primaryKey ])) {
122
-                if ( ! isset($sets[ 'record_create_user' ])) {
123
-                    $sets[ 'record_create_user' ] = $this->recordUser;
121
+            if (empty($sets[$primaryKey])) {
122
+                if ( ! isset($sets['record_create_user'])) {
123
+                    $sets['record_create_user'] = $this->recordUser;
124 124
                 }
125 125
 
126
-                if ( ! isset($sets[ 'record_create_timestamp' ])) {
127
-                    $sets[ 'record_create_timestamp' ] = $timestamp;
126
+                if ( ! isset($sets['record_create_timestamp'])) {
127
+                    $sets['record_create_timestamp'] = $timestamp;
128 128
                 } elseif ($this->unixTimestamp) {
129
-                    $sets[ 'record_create_timestamp' ] = strtotime($sets[ 'record_create_timestamp' ]);
129
+                    $sets['record_create_timestamp'] = strtotime($sets['record_create_timestamp']);
130 130
                 }
131 131
             }
132 132
         } else {
133 133
             foreach ($this->primaryKeys as $primaryKey) {
134
-                if (empty($sets[ $primaryKey ])) {
135
-                    if ( ! isset($sets[ 'record_create_user' ])) {
136
-                        $sets[ 'record_create_user' ] = $this->recordUser;
134
+                if (empty($sets[$primaryKey])) {
135
+                    if ( ! isset($sets['record_create_user'])) {
136
+                        $sets['record_create_user'] = $this->recordUser;
137 137
                     }
138 138
 
139
-                    if ( ! isset($sets[ 'record_create_timestamp' ])) {
140
-                        $sets[ 'record_create_timestamp' ] = $timestamp;
139
+                    if ( ! isset($sets['record_create_timestamp'])) {
140
+                        $sets['record_create_timestamp'] = $timestamp;
141 141
                     } elseif ($this->unixTimestamp) {
142
-                        $sets[ 'record_create_timestamp' ] = strtotime($sets[ 'record_create_timestamp' ]);
142
+                        $sets['record_create_timestamp'] = strtotime($sets['record_create_timestamp']);
143 143
                     }
144 144
                 }
145 145
             }
146 146
         }
147 147
 
148
-        if ( ! isset($sets[ 'record_update_user' ])) {
149
-            $sets[ 'record_update_user' ] = $this->recordUser;
148
+        if ( ! isset($sets['record_update_user'])) {
149
+            $sets['record_update_user'] = $this->recordUser;
150 150
         }
151 151
 
152
-        if ( ! isset($sets[ 'record_update_timestamp' ])) {
153
-            $sets[ 'record_update_timestamp' ] = $timestamp;
152
+        if ( ! isset($sets['record_update_timestamp'])) {
153
+            $sets['record_update_timestamp'] = $timestamp;
154 154
         } elseif ($this->unixTimestamp) {
155
-            $sets[ 'record_update_timestamp' ] = strtotime($sets[ 'record_update_timestamp' ]);
155
+            $sets['record_update_timestamp'] = strtotime($sets['record_update_timestamp']);
156 156
         }
157 157
 
158
-        if ( ! isset($sets[ 'record_ordering' ]) && $this->recordOrdering === true) {
159
-            $sets[ 'record_ordering' ] = $this->getRecordOrdering();
158
+        if ( ! isset($sets['record_ordering']) && $this->recordOrdering === true) {
159
+            $sets['record_ordering'] = $this->getRecordOrdering();
160 160
         }
161 161
     }
162 162
 
@@ -169,24 +169,24 @@  discard block
 block discarded – undo
169 169
      */
170 170
     protected function updateRecordSets(array &$sets)
171 171
     {
172
-        if(is_null($this->recordUser)) {
173
-            if(globals()->offsetExists('account')) {
172
+        if (is_null($this->recordUser)) {
173
+            if (globals()->offsetExists('account')) {
174 174
                 $this->setRecordUser(globals()->account->id);
175 175
             }
176 176
         }
177 177
 
178
-        if ( ! isset($sets[ 'record_status' ])) {
179
-            $sets[ 'record_status' ] = $this->recordStatus;
178
+        if ( ! isset($sets['record_status'])) {
179
+            $sets['record_status'] = $this->recordStatus;
180 180
         }
181 181
 
182
-        if ( ! isset($sets[ 'record_update_user' ])) {
183
-            $sets[ 'record_update_user' ] = $this->recordUser;
182
+        if ( ! isset($sets['record_update_user'])) {
183
+            $sets['record_update_user'] = $this->recordUser;
184 184
         }
185 185
 
186 186
         $timestamp = $this->unixTimestamp === true ? strtotime(date('Y-m-d H:i:s')) : date('Y-m-d H:i:s');
187 187
 
188
-        if ( ! isset($sets[ 'record_update_timestamp' ])) {
189
-            $sets[ 'record_update_timestamp' ] = $timestamp;
188
+        if ( ! isset($sets['record_update_timestamp'])) {
189
+            $sets['record_update_timestamp'] = $timestamp;
190 190
         }
191 191
     }
192 192
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function getRecordOrdering()
201 201
     {
202
-        if($this->recordOrdering === true) {
202
+        if ($this->recordOrdering === true) {
203 203
             return $this->qb->countAllResults($this->table) + 1;
204 204
         }
205 205
 
Please login to merge, or discard this patch.
src/Libraries/AccessControl/User.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
             if (isset($account)) {
78 78
                 foreach ($account as $key => $value) {
79 79
                     if (strpos($key, 'record') !== false) {
80
-                        unset($account[ $key ]);
80
+                        unset($account[$key]);
81 81
                     } elseif (in_array($key,
82 82
                         ['password', 'pin', 'token', 'sso', 'id_sys_user', 'id_sys_module', 'id_sys_module_role'])) {
83
-                        unset($account[ $key ]);
83
+                        unset($account[$key]);
84 84
                     }
85 85
                 }
86 86
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $column = 'id';
110 110
         } elseif (filter_var($username, FILTER_VALIDATE_EMAIL)) {
111 111
             $column = 'email';
112
-        } elseif (preg_match($this->config[ 'msisdnRegex' ], $username)) {
112
+        } elseif (preg_match($this->config['msisdnRegex'], $username)) {
113 113
             $column = 'msisdn';
114 114
         }
115 115
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     public function loggedIn()
132 132
     {
133 133
         if (parent::loggedIn()) {
134
-            $account = new Account($_SESSION[ 'account' ]);
134
+            $account = new Account($_SESSION['account']);
135 135
 
136 136
             if ($user = models('users')->findWhere(['username' => $account->username], 1)) {
137 137
                 // Store Account Profile
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $column = 'id';
181 181
         } elseif (filter_var($username, FILTER_VALIDATE_EMAIL)) {
182 182
             $column = 'email';
183
-        } elseif (preg_match($this->config[ 'msisdnRegex' ], $username)) {
183
+        } elseif (preg_match($this->config['msisdnRegex'], $username)) {
184 184
             $column = 'msisdn';
185 185
         } elseif (strpos($username, 'token-') !== false) {
186 186
             $username = str_replace('token-', '', $username);
@@ -195,15 +195,15 @@  discard block
 block discarded – undo
195 195
 
196 196
             foreach ($account as $key => $value) {
197 197
                 if (strpos($key, 'record') !== false) {
198
-                    unset($account[ $key ]);
198
+                    unset($account[$key]);
199 199
                 } elseif (in_array($key, ['password', 'pin', 'token', 'sso'])) {
200
-                    unset($account[ $key ]);
200
+                    unset($account[$key]);
201 201
                 }
202 202
             }
203 203
 
204 204
             if ($column === 'token') {
205 205
                 models('users')->update([
206
-                    'id'    => $account[ 'id' ],
206
+                    'id'    => $account['id'],
207 207
                     'token' => null,
208 208
                 ]);
209 209
             }
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function authorize(ServerRequest $request)
229 229
     {
230
-        if (isset($GLOBALS[ 'account' ][ 'role' ])) {
230
+        if (isset($GLOBALS['account']['role'])) {
231 231
             $uriSegments = $request->getUri()->getSegments()->getString();
232
-            $role = $GLOBALS[ 'account' ][ 'role' ];
232
+            $role = $GLOBALS['account']['role'];
233 233
             if (in_array($role->code, ['DEVELOPER', 'ADMINISTRATOR'])) {
234 234
                 globals()->store('authority', new Authority([
235 235
                     'permission' => 'GRANTED',
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     public function getIframeCode()
270 270
     {
271 271
         if ($this->signedOn() && $this->loggedIn() === false) {
272
-            return '<iframe id="sign-on-iframe" width="1" height="1" src="' . rtrim($this->config[ 'sso' ][ 'server' ],
272
+            return '<iframe id="sign-on-iframe" width="1" height="1" src="' . rtrim($this->config['sso']['server'],
273 273
                     '/') . '" style="display: none; visibility: hidden;"></iframe>';
274 274
         }
275 275
 
Please login to merge, or discard this patch.
src/Http/Controllers/ServiceWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function index()
30 30
     {
31
-        if($javascript = file_get_contents(PATH_PUBLIC . 'assets/sw.js')) {
31
+        if ($javascript = file_get_contents(PATH_PUBLIC . 'assets/sw.js')) {
32 32
             $javascript = str_replace(['{{$theme}}', '{{ $theme }}'], 'default', $javascript);
33 33
 
34 34
             header("Content-type: application/x-javascript");
Please login to merge, or discard this patch.
src/Models/Sql/Traits/HierarchicalTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                         ]);
86 86
                 }
87 87
 
88
-                $update[ 'id' ] = $child->id;
88
+                $update['id'] = $child->id;
89 89
 
90 90
                 if ($this->qb
91 91
                     ->table($this->table)
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                         ->update($update = [
101 101
                             'record_right' => $right,
102 102
                         ]);
103
-                    $update[ 'id' ] = $child->id;
103
+                    $update['id'] = $child->id;
104 104
                 }
105 105
 
106 106
                 $i++;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function getNumOfParents($id)
217 217
     {
218
-        if($parents = $this->getParents($id)) {
218
+        if ($parents = $this->getParents($id)) {
219 219
             return $parents->count();
220 220
         }
221 221
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     public function getNumOfChilds($idParent, $direct = true)
283 283
     {
284
-        if($childs = $this->getChilds($idParent)) {
284
+        if ($childs = $this->getChilds($idParent)) {
285 285
             return $childs->count();
286 286
         }
287 287
 
Please login to merge, or discard this patch.
src/Containers/Modules.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
 
189 189
         if (isset($config) AND is_array($config)) {
190 190
             // Set default timezone
191
-            if (isset($config[ 'datetime' ][ 'timezone' ])) {
192
-                date_default_timezone_set($config[ 'datetime' ][ 'timezone' ]);
191
+            if (isset($config['datetime']['timezone'])) {
192
+                date_default_timezone_set($config['datetime']['timezone']);
193 193
             }
194 194
 
195 195
             // Setup Language Ideom and Locale
196
-            if (isset($config[ 'language' ])) {
197
-                language()->setDefault($config[ 'language' ]);
196
+            if (isset($config['language'])) {
197
+                language()->setDefault($config['language']);
198 198
             }
199 199
 
200 200
             config()->merge($config);
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
                 $packageJsonFile = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $packageJsonFile);
425 425
                 $packageJsonFileInfo = pathinfo($packageJsonFile);
426 426
 
427
-                if ($packageJsonFileInfo[ 'filename' ] === 'widget' or
428
-                    $packageJsonFileInfo[ 'filename' ] === 'language' or
427
+                if ($packageJsonFileInfo['filename'] === 'widget' or
428
+                    $packageJsonFileInfo['filename'] === 'language' or
429 429
                     strpos($packageJsonFile, '.svn') !== false // subversion properties file conflict.
430 430
                 ) {
431 431
                     continue;
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
                 }
456 456
 
457 457
                 if (strpos($packageJsonFile,
458
-                        $modularType = ucfirst(plural($packageJsonFileInfo[ 'filename' ])) . DIRECTORY_SEPARATOR) === false) {
459
-                    $modularType = ucfirst($packageJsonFileInfo[ 'filename' ]) . DIRECTORY_SEPARATOR;
458
+                        $modularType = ucfirst(plural($packageJsonFileInfo['filename'])) . DIRECTORY_SEPARATOR) === false) {
459
+                    $modularType = ucfirst($packageJsonFileInfo['filename']) . DIRECTORY_SEPARATOR;
460 460
                 }
461 461
 
462 462
                 $modularType = strtolower(rtrim($modularType, DIRECTORY_SEPARATOR));
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
                                 PATH_PUBLIC,
472 472
                                 PATH_RESOURCES,
473 473
                                 PATH_APP,
474
-                                $packageJsonFileInfo[ 'basename' ],
474
+                                $packageJsonFileInfo['basename'],
475 475
                                 ucfirst($modularType) . DIRECTORY_SEPARATOR,
476 476
                                 ucfirst($modularType . 's') . DIRECTORY_SEPARATOR, // manual plural
477 477
                             ],
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                     )
483 483
                 );
484 484
 
485
-                $moduleSegments = array_map(function ($string) {
485
+                $moduleSegments = array_map(function($string) {
486 486
                     return dash(snakecase($string));
487 487
                 }, $moduleSegments);
488 488
 
@@ -490,14 +490,14 @@  discard block
 block discarded – undo
490 490
                     str_replace(
491 491
                         PATH_ROOT,
492 492
                         '',
493
-                        $packageJsonFileInfo[ 'dirname' ]
493
+                        $packageJsonFileInfo['dirname']
494 494
                     ),
495 495
                     false
496 496
                 );
497 497
 
498
-                if (isset($packageJsonMetadata[ 'namespace' ])) {
499
-                    $moduleNamespace = $packageJsonMetadata[ 'namespace' ];
500
-                    unset($packageJsonMetadata[ 'namespace' ]);
498
+                if (isset($packageJsonMetadata['namespace'])) {
499
+                    $moduleNamespace = $packageJsonMetadata['namespace'];
500
+                    unset($packageJsonMetadata['namespace']);
501 501
                 }
502 502
 
503 503
                 $moduleParentSegments = [];
@@ -511,16 +511,16 @@  discard block
 block discarded – undo
511 511
                 $registryKey = implode('/', $moduleSegments);
512 512
 
513 513
                 if ($registryKey === '') {
514
-                    if ($packageJsonFileInfo[ 'dirname' ] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
514
+                    if ($packageJsonFileInfo['dirname'] . DIRECTORY_SEPARATOR !== PATH_APP and $modularType === 'app') {
515 515
                         $registryKey = dash(snakecase(
516
-                            pathinfo($packageJsonFileInfo[ 'dirname' ], PATHINFO_FILENAME)));
516
+                            pathinfo($packageJsonFileInfo['dirname'], PATHINFO_FILENAME)));
517 517
                     }
518 518
                 }
519 519
 
520
-                $registry[ $registryKey ] = (new DataStructures\Module(
521
-                    $packageJsonFileInfo[ 'dirname' ]
520
+                $registry[$registryKey] = (new DataStructures\Module(
521
+                    $packageJsonFileInfo['dirname']
522 522
                 ))
523
-                    ->setType($packageJsonFileInfo[ 'filename' ])
523
+                    ->setType($packageJsonFileInfo['filename'])
524 524
                     ->setNamespace($moduleNamespace)
525 525
                     ->setSegments($moduleSegments)
526 526
                     ->setParentSegments($moduleParentSegments)
@@ -682,8 +682,8 @@  discard block
 block discarded – undo
682 682
         $segment = dash($segment);
683 683
 
684 684
         if ($this->exists($segment)) {
685
-            if ($this->registry[ $segment ] instanceof DataStructures\Module) {
686
-                return $this->registry[ $segment ];
685
+            if ($this->registry[$segment] instanceof DataStructures\Module) {
686
+                return $this->registry[$segment];
687 687
             }
688 688
         }
689 689
 
@@ -719,8 +719,8 @@  discard block
 block discarded – undo
719 719
      */
720 720
     public function first()
721 721
     {
722
-        if (isset($this->registry[ '' ])) {
723
-            return $this->registry[ '' ];
722
+        if (isset($this->registry[''])) {
723
+            return $this->registry[''];
724 724
         } elseif (reset($this->registry)->type === 'APP') {
725 725
             return reset($this->registry);
726 726
         }
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
         $segments = (is_array($segments) ? implode('/', array_map('dash', $segments)) : $segments);
743 743
 
744 744
         if ($this->exists($segments)) {
745
-            return $this->registry[ $segments ];
745
+            return $this->registry[$segments];
746 746
         }
747 747
 
748 748
         return false;
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
 
764 764
         foreach ($this as $key => $module) {
765 765
             if ($module instanceof DataStructures\Module) {
766
-                $namespaces[ $key ] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
766
+                $namespaces[$key] = new SplNamespaceInfo($module->getNamespace(), $module->getRealPath());
767 767
             }
768 768
         }
769 769
 
Please login to merge, or discard this patch.
src/Containers/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@
 block discarded – undo
156 156
      */
157 157
     public function reload()
158 158
     {
159
-        if(count($this->loaded)) {
160
-            foreach($this->loaded as $filename) {
159
+        if (count($this->loaded)) {
160
+            foreach ($this->loaded as $filename) {
161 161
                 $this->loadFile($filename);
162 162
             }
163 163
         }
Please login to merge, or discard this patch.
src/Http/Presenter.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
         }
106 106
 
107 107
         // autoload presenter assets
108
-        if (isset($config[ 'assets' ])) {
109
-            $this->assets->autoload($config[ 'assets' ]);
108
+        if (isset($config['assets'])) {
109
+            $this->assets->autoload($config['assets']);
110 110
         }
111 111
 
112 112
         // autoload presenter theme
113
-        if(isset($config['theme'])) {
113
+        if (isset($config['theme'])) {
114 114
             $this->setTheme($config['theme']);
115 115
         }
116 116
 
@@ -128,19 +128,19 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function setTheme($theme)
130 130
     {
131
-        if($this->theme instanceof Theme) {
131
+        if ($this->theme instanceof Theme) {
132 132
             $this->assets->removeFilePath($this->theme->getRealPath());
133 133
         }
134 134
 
135 135
         if (is_bool($theme)) {
136 136
             $this->theme = false;
137
-        } elseif(($moduleTheme = modules()->top()->getTheme($theme, true)) instanceof Theme) {
137
+        } elseif (($moduleTheme = modules()->top()->getTheme($theme, true)) instanceof Theme) {
138 138
             $this->theme = $moduleTheme;
139
-        } elseif(($appTheme = modules()->first()->getTheme($theme, true)) instanceof Theme) {
139
+        } elseif (($appTheme = modules()->first()->getTheme($theme, true)) instanceof Theme) {
140 140
             $this->theme = $appTheme;
141 141
         }
142 142
 
143
-        if($this->theme) {
143
+        if ($this->theme) {
144 144
             if ( ! defined('PATH_THEME')) {
145 145
                 define('PATH_THEME', $this->theme->getRealPath());
146 146
             }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             // add theme assets directory
149 149
             $this->assets->pushFilePath($this->theme->getRealPath());
150 150
 
151
-            if(is_dir($themeViewPath = $this->theme->getRealPath() . 'views' . DIRECTORY_SEPARATOR)) {
151
+            if (is_dir($themeViewPath = $this->theme->getRealPath() . 'views' . DIRECTORY_SEPARATOR)) {
152 152
 
153 153
                 // add theme view directory
154 154
                 view()->addFilePath($this->theme->getRealPath());
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
 
159 159
                 $modules = modules()->getArrayCopy();
160 160
 
161
-                foreach($modules as $module) {
161
+                foreach ($modules as $module) {
162 162
                     if ( ! in_array($module->getType(), ['KERNEL', 'FRAMEWORK', 'APP'])) {
163 163
                         $moduleResourcesPath = str_replace(PATH_RESOURCES, '', $module->getResourcesDir());
164 164
 
165
-                        if(is_dir($themeViewPath . $moduleResourcesPath)) {
165
+                        if (is_dir($themeViewPath . $moduleResourcesPath)) {
166 166
                             view()->pushFilePath($themeViewPath . $moduleResourcesPath);
167 167
                         }
168 168
                     }
@@ -203,25 +203,25 @@  discard block
 block discarded – undo
203 203
         $storage = $this->storage;
204 204
 
205 205
         // Add Properties
206
-        $storage[ 'meta' ] = $this->meta;
207
-        $storage[ 'page' ] = $this->page;
208
-        $storage[ 'assets' ] = new SplArrayObject([
206
+        $storage['meta'] = $this->meta;
207
+        $storage['page'] = $this->page;
208
+        $storage['assets'] = new SplArrayObject([
209 209
             'head' => $this->assets->getHead(),
210 210
             'body' => $this->assets->getBody(),
211 211
         ]);
212
-        $storage[ 'partials' ] = $this->partials;
213
-        $storage[ 'widgets' ] = $this->widgets;
214
-        $storage[ 'theme' ] = $this->theme;
212
+        $storage['partials'] = $this->partials;
213
+        $storage['widgets'] = $this->widgets;
214
+        $storage['theme'] = $this->theme;
215 215
 
216 216
         // Add Services
217
-        $storage[ 'config' ] = config();
218
-        $storage[ 'language' ] = language();
219
-        $storage[ 'session' ] = session();
220
-        $storage[ 'presenter' ] = presenter();
221
-        $storage[ 'input' ] = input();
217
+        $storage['config'] = config();
218
+        $storage['language'] = language();
219
+        $storage['session'] = session();
220
+        $storage['presenter'] = presenter();
221
+        $storage['input'] = input();
222 222
 
223 223
         if (services()->has('csrfProtection')) {
224
-            $storage[ 'csrfToken' ] = services()->get('csrfProtection')->getToken();
224
+            $storage['csrfToken'] = services()->get('csrfProtection')->getToken();
225 225
         }
226 226
 
227 227
         return $storage;
Please login to merge, or discard this patch.