Completed
Push — master ( ee0aed...da9ac8 )
by Michael
03:02
created
src/Commands/UpdateCommand.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Stats\Commands;
4 4
 
5 5
 use Joomla\Controller\AbstractController;
6
-use Joomla\Database\DatabaseDriver;
7 6
 use Stats\CommandInterface;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@
 block discarded – undo
30 30
 		$this->getApplication()->out('<info>Updating server to git HEAD</info>');
31 31
 
32 32
 		// Pull from remote repo
33
-		$this->runCommand('cd ' . APPROOT . ' && git pull 2>&1');
33
+		$this->runCommand('cd '.APPROOT.' && git pull 2>&1');
34 34
 
35 35
 		$this->getApplication()->out('<info>Updating Composer resources</info>');
36 36
 
37 37
 		// Run Composer install
38
-		$this->runCommand('cd ' . APPROOT . ' && composer install --no-dev -o 2>&1');
38
+		$this->runCommand('cd '.APPROOT.' && composer install --no-dev -o 2>&1');
39 39
 
40 40
 		$this->getApplication()->out('<info>Update complete</info>');
41 41
 
Please login to merge, or discard this patch.
src/Providers/ApplicationServiceProvider.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		$container->alias(CliApplication::class, JoomlaApplication\AbstractCliApplication::class)
51 51
 			->share(
52 52
 				JoomlaApplication\AbstractCliApplication::class,
53
-				function (Container $container)
53
+				function(Container $container)
54 54
 				{
55 55
 					$application = new CliApplication(
56 56
 						$container->get(Cli::class),
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$container->alias(WebApplication::class, JoomlaApplication\AbstractWebApplication::class)
72 72
 			->share(
73 73
 				JoomlaApplication\AbstractWebApplication::class,
74
-				function (Container $container)
74
+				function(Container $container)
75 75
 				{
76 76
 					$application = new WebApplication($container->get(Input::class), $container->get('config'));
77 77
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 		$container->share(
89 89
 			Input::class,
90
-			function ()
90
+			function()
91 91
 			{
92 92
 				return new Input($_REQUEST);
93 93
 			},
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
 		$container->share(
98 98
 			Cli::class,
99
-			function ()
99
+			function()
100 100
 			{
101 101
 				return new Cli;
102 102
 			},
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
 		$container->share(
107 107
 			Console::class,
108
-			function (Container $container)
108
+			function(Container $container)
109 109
 			{
110 110
 				$console = new Console;
111 111
 				$console->setContainer($container);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
 		$container->share(
118 118
 			JoomlaApplication\Cli\Output\Processor\ColorProcessor::class,
119
-			function (Container $container)
119
+			function(Container $container)
120 120
 			{
121 121
 				$processor = new JoomlaApplication\Cli\Output\Processor\ColorProcessor;
122 122
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 		$container->alias(JoomlaApplication\Cli\CliOutput::class, JoomlaApplication\Cli\Output\Stdout::class)
139 139
 			->share(
140 140
 				JoomlaApplication\Cli\Output\Stdout::class,
141
-				function (Container $container)
141
+				function(Container $container)
142 142
 				{
143 143
 					return new JoomlaApplication\Cli\Output\Stdout($container->get(JoomlaApplication\Cli\Output\Processor\ColorProcessor::class));
144 144
 				}
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
 		$container->share(
148 148
 			Analytics::class,
149
-			function ()
149
+			function()
150 150
 			{
151 151
 				return new Analytics(true);
152 152
 			}
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
 		$container->share(
156 156
 			Router::class,
157
-			function (Container $container)
157
+			function(Container $container)
158 158
 			{
159 159
 				$router = (new Router($container->get(Input::class)))
160 160
 					->setContainer($container)
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 		$container->share(
172 172
 			HelpCommand::class,
173
-			function (Container $container)
173
+			function(Container $container)
174 174
 			{
175 175
 				$command = new HelpCommand;
176 176
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
 		$container->share(
186 186
 			InstallCommand::class,
187
-			function (Container $container)
187
+			function(Container $container)
188 188
 			{
189 189
 				$command = new InstallCommand($container->get(DatabaseDriver::class));
190 190
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
 		$container->share(
200 200
 			SnapshotCommand::class,
201
-			function (Container $container)
201
+			function(Container $container)
202 202
 			{
203 203
 				$command = new SnapshotCommand($container->get(StatsJsonView::class));
204 204
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 		$container->share(
214 214
 			UpdateCommand::class,
215
-			function (Container $container)
215
+			function(Container $container)
216 216
 			{
217 217
 				$command = new UpdateCommand;
218 218
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
 		$container->share(
228 228
 			ClearCommand::class,
229
-			function (Container $container)
229
+			function(Container $container)
230 230
 			{
231 231
 				$command = new ClearCommand($container->get(Cache::class));
232 232
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
 		$container->share(
242 242
 			MigrateCommand::class,
243
-			function (Container $container)
243
+			function(Container $container)
244 244
 			{
245 245
 				$command = new MigrateCommand($container->get(Migrations::class));
246 246
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 
256 256
 		$container->share(
257 257
 			StatusCommand::class,
258
-			function (Container $container)
258
+			function(Container $container)
259 259
 			{
260 260
 				$command = new StatusCommand($container->get(Migrations::class));
261 261
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
 		$container->share(
271 271
 			DisplayControllerGet::class,
272
-			function (Container $container)
272
+			function(Container $container)
273 273
 			{
274 274
 				$controller = new DisplayControllerGet(
275 275
 					$container->get(StatsJsonView::class),
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
 		$container->share(
288 288
 			SubmitControllerCreate::class,
289
-			function (Container $container)
289
+			function(Container $container)
290 290
 			{
291 291
 				$controller = new SubmitControllerCreate(
292 292
 					$container->get(StatsModel::class)
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
 		$container->share(
304 304
 			SubmitControllerGet::class,
305
-			function (Container $container)
305
+			function(Container $container)
306 306
 			{
307 307
 				$controller = new SubmitControllerGet;
308 308
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
 		$container->share(
318 318
 			StatsModel::class,
319
-			function (Container $container)
319
+			function(Container $container)
320 320
 			{
321 321
 				return new StatsModel(
322 322
 					$container->get(DatabaseDriver::class)
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 		$container->share(
329 329
 			StatsJsonView::class,
330
-			function (Container $container)
330
+			function(Container $container)
331 331
 			{
332 332
 				return new StatsJsonView(
333 333
 					$container->get(StatsModel::class)
Please login to merge, or discard this patch.