@@ -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), |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $container->alias(WebApplication::class, JoomlaApplication\AbstractWebApplication::class) |
| 76 | 76 | ->share( |
| 77 | 77 | JoomlaApplication\AbstractWebApplication::class, |
| 78 | - function (Container $container) |
|
| 78 | + function(Container $container) |
|
| 79 | 79 | { |
| 80 | 80 | $application = new WebApplication($container->get(Input::class), $container->get('config')); |
| 81 | 81 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | $container->share( |
| 93 | 93 | Input::class, |
| 94 | - function () |
|
| 94 | + function() |
|
| 95 | 95 | { |
| 96 | 96 | return new Input($_REQUEST); |
| 97 | 97 | }, |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $container->share( |
| 102 | 102 | Cli::class, |
| 103 | - function () |
|
| 103 | + function() |
|
| 104 | 104 | { |
| 105 | 105 | return new Cli; |
| 106 | 106 | }, |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $container->share( |
| 111 | 111 | Console::class, |
| 112 | - function (Container $container) |
|
| 112 | + function(Container $container) |
|
| 113 | 113 | { |
| 114 | 114 | $console = new Console; |
| 115 | 115 | $console->setContainer($container); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $container->share( |
| 122 | 122 | JoomlaApplication\Cli\Output\Processor\ColorProcessor::class, |
| 123 | - function (Container $container) |
|
| 123 | + function(Container $container) |
|
| 124 | 124 | { |
| 125 | 125 | $processor = new JoomlaApplication\Cli\Output\Processor\ColorProcessor; |
| 126 | 126 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | $container->share( |
| 143 | 143 | JoomlaApplication\Cli\CliInput::class, |
| 144 | - function (Container $container) |
|
| 144 | + function(Container $container) |
|
| 145 | 145 | { |
| 146 | 146 | return new JoomlaApplication\Cli\CliInput; |
| 147 | 147 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $container->alias(JoomlaApplication\Cli\CliOutput::class, JoomlaApplication\Cli\Output\Stdout::class) |
| 151 | 151 | ->share( |
| 152 | 152 | JoomlaApplication\Cli\Output\Stdout::class, |
| 153 | - function (Container $container) |
|
| 153 | + function(Container $container) |
|
| 154 | 154 | { |
| 155 | 155 | return new JoomlaApplication\Cli\Output\Stdout($container->get(JoomlaApplication\Cli\Output\Processor\ColorProcessor::class)); |
| 156 | 156 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | $container->share( |
| 160 | 160 | Analytics::class, |
| 161 | - function () |
|
| 161 | + function() |
|
| 162 | 162 | { |
| 163 | 163 | return new Analytics(true); |
| 164 | 164 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | $container->share( |
| 168 | 168 | Router::class, |
| 169 | - function (Container $container) |
|
| 169 | + function(Container $container) |
|
| 170 | 170 | { |
| 171 | 171 | $router = (new Router($container->get(Input::class))) |
| 172 | 172 | ->setContainer($container) |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | $container->share( |
| 184 | 184 | HelpCommand::class, |
| 185 | - function (Container $container) |
|
| 185 | + function(Container $container) |
|
| 186 | 186 | { |
| 187 | 187 | $command = new HelpCommand; |
| 188 | 188 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | $container->share( |
| 198 | 198 | InstallCommand::class, |
| 199 | - function (Container $container) |
|
| 199 | + function(Container $container) |
|
| 200 | 200 | { |
| 201 | 201 | $command = new InstallCommand($container->get(DatabaseDriver::class)); |
| 202 | 202 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | $container->share( |
| 212 | 212 | SnapshotCommand::class, |
| 213 | - function (Container $container) |
|
| 213 | + function(Container $container) |
|
| 214 | 214 | { |
| 215 | 215 | $command = new SnapshotCommand($container->get(StatsJsonView::class)); |
| 216 | 216 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | $container->share( |
| 226 | 226 | UpdateCommand::class, |
| 227 | - function (Container $container) |
|
| 227 | + function(Container $container) |
|
| 228 | 228 | { |
| 229 | 229 | $command = new UpdateCommand; |
| 230 | 230 | |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | |
| 239 | 239 | $container->share( |
| 240 | 240 | ClearCommand::class, |
| 241 | - function (Container $container) |
|
| 241 | + function(Container $container) |
|
| 242 | 242 | { |
| 243 | 243 | $command = new ClearCommand($container->get(Cache::class)); |
| 244 | 244 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | |
| 253 | 253 | $container->share( |
| 254 | 254 | MigrateCommand::class, |
| 255 | - function (Container $container) |
|
| 255 | + function(Container $container) |
|
| 256 | 256 | { |
| 257 | 257 | $command = new MigrateCommand($container->get(Migrations::class)); |
| 258 | 258 | |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | |
| 268 | 268 | $container->share( |
| 269 | 269 | StatusCommand::class, |
| 270 | - function (Container $container) |
|
| 270 | + function(Container $container) |
|
| 271 | 271 | { |
| 272 | 272 | $command = new StatusCommand($container->get(Migrations::class)); |
| 273 | 273 | |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | $container->share( |
| 283 | 283 | JoomlaCommand::class, |
| 284 | - function (Container $container) |
|
| 284 | + function(Container $container) |
|
| 285 | 285 | { |
| 286 | 286 | $command = new JoomlaCommand($container->get(GitHub::class)); |
| 287 | 287 | |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | |
| 296 | 296 | $container->share( |
| 297 | 297 | PhpCommand::class, |
| 298 | - function (Container $container) |
|
| 298 | + function(Container $container) |
|
| 299 | 299 | { |
| 300 | 300 | $command = new PhpCommand($container->get(GitHub::class)); |
| 301 | 301 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | $container->share( |
| 311 | 311 | DisplayControllerGet::class, |
| 312 | - function (Container $container) |
|
| 312 | + function(Container $container) |
|
| 313 | 313 | { |
| 314 | 314 | $controller = new DisplayControllerGet( |
| 315 | 315 | $container->get(StatsJsonView::class), |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | |
| 327 | 327 | $container->share( |
| 328 | 328 | SubmitControllerCreate::class, |
| 329 | - function (Container $container) |
|
| 329 | + function(Container $container) |
|
| 330 | 330 | { |
| 331 | 331 | $controller = new SubmitControllerCreate( |
| 332 | 332 | $container->get(StatsModel::class) |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | $container->share( |
| 344 | 344 | SubmitControllerGet::class, |
| 345 | - function (Container $container) |
|
| 345 | + function(Container $container) |
|
| 346 | 346 | { |
| 347 | 347 | $controller = new SubmitControllerGet; |
| 348 | 348 | |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | |
| 357 | 357 | $container->share( |
| 358 | 358 | StatsModel::class, |
| 359 | - function (Container $container) |
|
| 359 | + function(Container $container) |
|
| 360 | 360 | { |
| 361 | 361 | return new StatsModel( |
| 362 | 362 | $container->get(DatabaseDriver::class) |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | |
| 368 | 368 | $container->share( |
| 369 | 369 | StatsJsonView::class, |
| 370 | - function (Container $container) |
|
| 370 | + function(Container $container) |
|
| 371 | 371 | { |
| 372 | 372 | return new StatsJsonView( |
| 373 | 373 | $container->get(StatsModel::class) |