Completed
Push — master ( f736fb...561485 )
by Michael
06:11
created
src/Providers/CacheServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 				// If the path is relative, make it absolute... Sorry Windows users, this breaks support for your environment
70 70
 				if (substr($path, 0, 1) !== '/')
71 71
 				{
72
-					$path = APPROOT . '/' . $path;
72
+					$path = APPROOT.'/'.$path;
73 73
 				}
74 74
 
75 75
 				$options = [
Please login to merge, or discard this patch.
src/Providers/MonologServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 		$level = strtoupper($config->get('log.application', $config->get('log.level', 'error')));
95 95
 
96
-		return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level));
96
+		return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level));
97 97
 	}
98 98
 
99 99
 	/**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 		// If database debugging is enabled then force the logger's error level to DEBUG, otherwise use the level defined in the app config
114 114
 		$level = $config->get('database.debug', false) ? 'DEBUG' : strtoupper($config->get('log.database', $config->get('log.level', 'error')));
115 115
 
116
-		return new StreamHandler(APPROOT . '/logs/stats.log', constant('\\Monolog\\Logger::' . $level));
116
+		return new StreamHandler(APPROOT.'/logs/stats.log', constant('\\Monolog\\Logger::'.$level));
117 117
 	}
118 118
 
119 119
 	/**
Please login to merge, or discard this patch.
www/index.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 try
40 40
 {
41 41
 	$container->get(WebApplication::class)->execute();
42
-}
43
-catch (\Throwable $e)
42
+} catch (\Throwable $e)
44 43
 {
45 44
 	if (!headers_sent())
46 45
 	{
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require dirname(__DIR__) . '/boot.php';
3
+require dirname(__DIR__).'/boot.php';
4 4
 
5 5
 use Joomla\Application\AbstractApplication;
6 6
 use Joomla\Application\AbstractWebApplication;
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $container = (new Container)
20 20
 	->registerServiceProvider(new ApplicationServiceProvider)
21 21
 	->registerServiceProvider(new CacheServiceProvider)
22
-	->registerServiceProvider(new ConfigServiceProvider(APPROOT . '/etc/config.json'))
22
+	->registerServiceProvider(new ConfigServiceProvider(APPROOT.'/etc/config.json'))
23 23
 	->registerServiceProvider(new DatabaseServiceProvider)
24 24
 	->registerServiceProvider(new GitHubServiceProvider)
25 25
 	->registerServiceProvider(new MonologServiceProvider);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	$response = [
56 56
 		'error' => true,
57
-		'message' => 'An error occurred while executing the application: ' . $e->getMessage()
57
+		'message' => 'An error occurred while executing the application: '.$e->getMessage()
58 58
 	];
59 59
 
60 60
 	echo json_encode($response);
Please login to merge, or discard this patch.
src/WebApplication.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
 			try
64 64
 			{
65 65
 				$this->analytics->sendPageview();
66
-			}
67
-			catch (\Exception $e)
66
+			} catch (\Exception $e)
68 67
 			{
69 68
 				// Log the error for reference
70 69
 				$this->getLogger()->error(
@@ -77,8 +76,7 @@  discard block
 block discarded – undo
77 76
 		try
78 77
 		{
79 78
 			$this->router->getController($this->get('uri.route'))->execute();
80
-		}
81
-		catch (\Throwable $e)
79
+		} catch (\Throwable $e)
82 80
 		{
83 81
 			// Log the error for reference
84 82
 			$this->getLogger()->error(
Please login to merge, or discard this patch.
src/Database/Migrations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 	 */
162 162
 	private function doMigration(string $version)
163 163
 	{
164
-		$sqlFile = 'migrations/' . $version . '.sql';
164
+		$sqlFile = 'migrations/'.$version.'.sql';
165 165
 
166 166
 		if (!$this->filesystem->has($sqlFile))
167 167
 		{
Please login to merge, or discard this patch.