@@ -27,7 +27,7 @@ |
||
27 | 27 | $container->alias('db', DatabaseDriver::class) |
28 | 28 | ->share( |
29 | 29 | DatabaseDriver::class, |
30 | - function (Container $container) |
|
30 | + function(Container $container) |
|
31 | 31 | { |
32 | 32 | $config = $container->get('config'); |
33 | 33 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $container->alias(CliApplication::class, JoomlaApplication\AbstractCliApplication::class) |
45 | 45 | ->share( |
46 | 46 | JoomlaApplication\AbstractCliApplication::class, |
47 | - function (Container $container) |
|
47 | + function(Container $container) |
|
48 | 48 | { |
49 | 49 | $application = new CliApplication( |
50 | 50 | $container->get(Cli::class), |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $container->alias(WebApplication::class, JoomlaApplication\AbstractWebApplication::class) |
66 | 66 | ->share( |
67 | 67 | JoomlaApplication\AbstractWebApplication::class, |
68 | - function (Container $container) |
|
68 | + function(Container $container) |
|
69 | 69 | { |
70 | 70 | $application = new WebApplication($container->get(Input::class), $container->get('config')); |
71 | 71 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $container->share( |
82 | 82 | Input::class, |
83 | - function () |
|
83 | + function() |
|
84 | 84 | { |
85 | 85 | return new Input($_REQUEST); |
86 | 86 | }, |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $container->share( |
91 | 91 | Cli::class, |
92 | - function () |
|
92 | + function() |
|
93 | 93 | { |
94 | 94 | return new Cli; |
95 | 95 | }, |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $container->share( |
100 | 100 | Console::class, |
101 | - function (Container $container) |
|
101 | + function(Container $container) |
|
102 | 102 | { |
103 | 103 | $console = new Console; |
104 | 104 | $console->setContainer($container); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $container->share( |
111 | 111 | JoomlaApplication\Cli\Output\Processor\ColorProcessor::class, |
112 | - function (Container $container) |
|
112 | + function(Container $container) |
|
113 | 113 | { |
114 | 114 | $processor = new JoomlaApplication\Cli\Output\Processor\ColorProcessor; |
115 | 115 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $container->alias(JoomlaApplication\Cli\CliOutput::class, JoomlaApplication\Cli\Output\Stdout::class) |
132 | 132 | ->share( |
133 | 133 | JoomlaApplication\Cli\Output\Stdout::class, |
134 | - function (Container $container) |
|
134 | + function(Container $container) |
|
135 | 135 | { |
136 | 136 | return new JoomlaApplication\Cli\Output\Stdout($container->get(JoomlaApplication\Cli\Output\Processor\ColorProcessor::class)); |
137 | 137 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | $container->share( |
141 | 141 | Router::class, |
142 | - function (Container $container) |
|
142 | + function(Container $container) |
|
143 | 143 | { |
144 | 144 | $router = (new Router($container->get(Input::class))) |
145 | 145 | ->setContainer($container) |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | $container->share( |
157 | 157 | HelpCommand::class, |
158 | - function (Container $container) |
|
158 | + function(Container $container) |
|
159 | 159 | { |
160 | 160 | $command = new HelpCommand; |
161 | 161 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $container->share( |
171 | 171 | JoomlaTagsCommand::class, |
172 | - function (Container $container) |
|
172 | + function(Container $container) |
|
173 | 173 | { |
174 | 174 | $command = new JoomlaTagsCommand($container->get(GitHub::class)); |
175 | 175 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | $container->share( |
185 | 185 | SnapshotCommand::class, |
186 | - function (Container $container) |
|
186 | + function(Container $container) |
|
187 | 187 | { |
188 | 188 | $command = new SnapshotCommand($container->get(StatsJsonView::class)); |
189 | 189 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | $container->share( |
199 | 199 | DisplayControllerGet::class, |
200 | - function (Container $container) |
|
200 | + function(Container $container) |
|
201 | 201 | { |
202 | 202 | $controller = new DisplayControllerGet( |
203 | 203 | $container->get(StatsJsonView::class), |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | $container->share( |
216 | 216 | SubmitControllerCreate::class, |
217 | - function (Container $container) |
|
217 | + function(Container $container) |
|
218 | 218 | { |
219 | 219 | $controller = new SubmitControllerCreate( |
220 | 220 | $container->get(StatsModel::class) |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | |
231 | 231 | $container->share( |
232 | 232 | SubmitControllerGet::class, |
233 | - function (Container $container) |
|
233 | + function(Container $container) |
|
234 | 234 | { |
235 | 235 | $controller = new SubmitControllerGet; |
236 | 236 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | $container->share( |
246 | 246 | StatsModel::class, |
247 | - function (Container $container) |
|
247 | + function(Container $container) |
|
248 | 248 | { |
249 | 249 | return new StatsModel( |
250 | 250 | $container->get(DatabaseDriver::class) |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | |
256 | 256 | $container->share( |
257 | 257 | StatsJsonView::class, |
258 | - function (Container $container) |
|
258 | + function(Container $container) |
|
259 | 259 | { |
260 | 260 | return new StatsJsonView( |
261 | 261 | $container->get(StatsModel::class) |
@@ -87,15 +87,15 @@ |
||
87 | 87 | |
88 | 88 | // Allow the next patch release after this one |
89 | 89 | $nextPatch = $explodedVersion[2] + 1; |
90 | - $versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch; |
|
90 | + $versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch; |
|
91 | 91 | |
92 | 92 | // And allow the next minor release after this one |
93 | 93 | $nextMinor = $explodedVersion[1] + 1; |
94 | - $versions[] = $explodedVersion[0] . '.' . $nextMinor . '.0'; |
|
94 | + $versions[] = $explodedVersion[0].'.'.$nextMinor.'.0'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | // Store the version data now |
98 | - $path = APPROOT . '/versions/joomla.json'; |
|
98 | + $path = APPROOT.'/versions/joomla.json'; |
|
99 | 99 | |
100 | 100 | if (file_put_contents($path, json_encode($versions)) === false) |
101 | 101 | { |
@@ -155,7 +155,7 @@ |
||
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 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function __get($name) |
27 | 27 | { |
28 | - $class = __NAMESPACE__ . '\\Package\\' . ucfirst($name); |
|
28 | + $class = __NAMESPACE__.'\\Package\\'.ucfirst($name); |
|
29 | 29 | |
30 | 30 | if (class_exists($class)) |
31 | 31 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function __get($name) |
25 | 25 | { |
26 | - $class = __NAMESPACE__ . '\\' . $this->package . '\\' . ucfirst($name); |
|
26 | + $class = __NAMESPACE__.'\\'.$this->package.'\\'.ucfirst($name); |
|
27 | 27 | |
28 | 28 | if (class_exists($class)) |
29 | 29 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | public function getTags($owner, $repo, $page = 0) |
50 | 50 | { |
51 | 51 | // Build the request path. |
52 | - $path = '/repos/' . $owner . '/' . $repo . '/tags'; |
|
52 | + $path = '/repos/'.$owner.'/'.$repo.'/tags'; |
|
53 | 53 | |
54 | 54 | // Send the request. |
55 | 55 | $this->apiResponse = $this->client->get($this->fetchUrl($path, $page)); |