@@ -95,15 +95,15 @@ |
||
95 | 95 | |
96 | 96 | // Allow the next patch release after this one |
97 | 97 | $nextPatch = $explodedVersion[2] + 1; |
98 | - $versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch; |
|
98 | + $versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch; |
|
99 | 99 | |
100 | 100 | // And allow the next minor release after this one |
101 | 101 | $nextMinor = $explodedVersion[1] + 1; |
102 | - $versions[] = $explodedVersion[0] . '.' . $nextMinor . '.0'; |
|
102 | + $versions[] = $explodedVersion[0].'.'.$nextMinor.'.0'; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | // Store the version data now |
106 | - $path = APPROOT . '/versions/php.json'; |
|
106 | + $path = APPROOT.'/versions/php.json'; |
|
107 | 107 | |
108 | 108 | if (file_put_contents($path, json_encode($versions)) === false) |
109 | 109 | { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | // Import the valid release listing |
158 | - $path = APPROOT . '/versions/joomla.json'; |
|
158 | + $path = APPROOT.'/versions/joomla.json'; |
|
159 | 159 | |
160 | 160 | if (!file_exists($path)) |
161 | 161 | { |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | // Import the valid release listing |
223 | - $path = APPROOT . '/versions/php.json'; |
|
223 | + $path = APPROOT.'/versions/php.json'; |
|
224 | 224 | |
225 | 225 | if (!file_exists($path)) |
226 | 226 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $container->alias(CliApplication::class, JoomlaApplication\AbstractCliApplication::class) |
54 | 54 | ->share( |
55 | 55 | JoomlaApplication\AbstractCliApplication::class, |
56 | - function (Container $container) |
|
56 | + function(Container $container) |
|
57 | 57 | { |
58 | 58 | $application = new CliApplication( |
59 | 59 | $container->get(Cli::class), |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $container->alias(WebApplication::class, JoomlaApplication\AbstractWebApplication::class) |
75 | 75 | ->share( |
76 | 76 | JoomlaApplication\AbstractWebApplication::class, |
77 | - function (Container $container) |
|
77 | + function(Container $container) |
|
78 | 78 | { |
79 | 79 | $application = new WebApplication($container->get(Input::class), $container->get('config')); |
80 | 80 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $container->share( |
92 | 92 | Input::class, |
93 | - function () |
|
93 | + function() |
|
94 | 94 | { |
95 | 95 | return new Input($_REQUEST); |
96 | 96 | }, |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $container->share( |
101 | 101 | Cli::class, |
102 | - function () |
|
102 | + function() |
|
103 | 103 | { |
104 | 104 | return new Cli; |
105 | 105 | }, |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $container->share( |
110 | 110 | Console::class, |
111 | - function (Container $container) |
|
111 | + function(Container $container) |
|
112 | 112 | { |
113 | 113 | $console = new Console; |
114 | 114 | $console->setContainer($container); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | $container->share( |
121 | 121 | JoomlaApplication\Cli\Output\Processor\ColorProcessor::class, |
122 | - function (Container $container) |
|
122 | + function(Container $container) |
|
123 | 123 | { |
124 | 124 | $processor = new JoomlaApplication\Cli\Output\Processor\ColorProcessor; |
125 | 125 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $container->alias(JoomlaApplication\Cli\CliOutput::class, JoomlaApplication\Cli\Output\Stdout::class) |
142 | 142 | ->share( |
143 | 143 | JoomlaApplication\Cli\Output\Stdout::class, |
144 | - function (Container $container) |
|
144 | + function(Container $container) |
|
145 | 145 | { |
146 | 146 | return new JoomlaApplication\Cli\Output\Stdout($container->get(JoomlaApplication\Cli\Output\Processor\ColorProcessor::class)); |
147 | 147 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | $container->share( |
151 | 151 | Analytics::class, |
152 | - function () |
|
152 | + function() |
|
153 | 153 | { |
154 | 154 | return new Analytics(true); |
155 | 155 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $container->share( |
159 | 159 | Router::class, |
160 | - function (Container $container) |
|
160 | + function(Container $container) |
|
161 | 161 | { |
162 | 162 | $router = (new Router($container->get(Input::class))) |
163 | 163 | ->setContainer($container) |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | $container->share( |
175 | 175 | HelpCommand::class, |
176 | - function (Container $container) |
|
176 | + function(Container $container) |
|
177 | 177 | { |
178 | 178 | $command = new HelpCommand; |
179 | 179 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | $container->share( |
189 | 189 | InstallCommand::class, |
190 | - function (Container $container) |
|
190 | + function(Container $container) |
|
191 | 191 | { |
192 | 192 | $command = new InstallCommand($container->get(DatabaseDriver::class)); |
193 | 193 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | $container->share( |
203 | 203 | SnapshotCommand::class, |
204 | - function (Container $container) |
|
204 | + function(Container $container) |
|
205 | 205 | { |
206 | 206 | $command = new SnapshotCommand($container->get(StatsJsonView::class)); |
207 | 207 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | $container->share( |
217 | 217 | UpdateCommand::class, |
218 | - function (Container $container) |
|
218 | + function(Container $container) |
|
219 | 219 | { |
220 | 220 | $command = new UpdateCommand; |
221 | 221 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | |
230 | 230 | $container->share( |
231 | 231 | ClearCommand::class, |
232 | - function (Container $container) |
|
232 | + function(Container $container) |
|
233 | 233 | { |
234 | 234 | $command = new ClearCommand($container->get(Cache::class)); |
235 | 235 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | $container->share( |
245 | 245 | MigrateCommand::class, |
246 | - function (Container $container) |
|
246 | + function(Container $container) |
|
247 | 247 | { |
248 | 248 | $command = new MigrateCommand($container->get(Migrations::class)); |
249 | 249 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | |
259 | 259 | $container->share( |
260 | 260 | StatusCommand::class, |
261 | - function (Container $container) |
|
261 | + function(Container $container) |
|
262 | 262 | { |
263 | 263 | $command = new StatusCommand($container->get(Migrations::class)); |
264 | 264 | |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | |
273 | 273 | $container->share( |
274 | 274 | JoomlaCommand::class, |
275 | - function (Container $container) |
|
275 | + function(Container $container) |
|
276 | 276 | { |
277 | 277 | $command = new JoomlaCommand($container->get(GitHub::class)); |
278 | 278 | |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | |
287 | 287 | $container->share( |
288 | 288 | PhpCommand::class, |
289 | - function (Container $container) |
|
289 | + function(Container $container) |
|
290 | 290 | { |
291 | 291 | $command = new PhpCommand($container->get(GitHub::class)); |
292 | 292 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | |
301 | 301 | $container->share( |
302 | 302 | DisplayControllerGet::class, |
303 | - function (Container $container) |
|
303 | + function(Container $container) |
|
304 | 304 | { |
305 | 305 | $controller = new DisplayControllerGet( |
306 | 306 | $container->get(StatsJsonView::class), |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | |
318 | 318 | $container->share( |
319 | 319 | SubmitControllerCreate::class, |
320 | - function (Container $container) |
|
320 | + function(Container $container) |
|
321 | 321 | { |
322 | 322 | $controller = new SubmitControllerCreate( |
323 | 323 | $container->get(StatsModel::class) |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | |
334 | 334 | $container->share( |
335 | 335 | SubmitControllerGet::class, |
336 | - function (Container $container) |
|
336 | + function(Container $container) |
|
337 | 337 | { |
338 | 338 | $controller = new SubmitControllerGet; |
339 | 339 | |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | |
348 | 348 | $container->share( |
349 | 349 | StatsModel::class, |
350 | - function (Container $container) |
|
350 | + function(Container $container) |
|
351 | 351 | { |
352 | 352 | return new StatsModel( |
353 | 353 | $container->get(DatabaseDriver::class) |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | |
359 | 359 | $container->share( |
360 | 360 | StatsJsonView::class, |
361 | - function (Container $container) |
|
361 | + function(Container $container) |
|
362 | 362 | { |
363 | 363 | return new StatsJsonView( |
364 | 364 | $container->get(StatsModel::class) |