Completed
Push — master ( f75982...df2064 )
by Michael
04:58
created
www/index.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 {
26 26
 	$app = $container->get(Application::class);
27 27
 	$app->execute();
28
-}
29
-catch (\Exception $e)
28
+} catch (\Exception $e)
30 29
 {
31 30
 	if (!headers_sent())
32 31
 	{
Please login to merge, or discard this patch.
src/Views/Stats/StatsJsonView.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,8 +105,7 @@  discard block
 block discarded – undo
105 105
 							}
106 106
 
107 107
 							${$source}['unknown']++;
108
-						}
109
-						else
108
+						} else
110 109
 						{
111 110
 							if (!isset(${$source}[$item[$source]]))
112 111
 							{
@@ -224,8 +223,7 @@  discard block
 block discarded – undo
224 223
 							}
225 224
 
226 225
 							$data[$source]['unknown']++;
227
-						}
228
-						else
226
+						} else
229 227
 						{
230 228
 							if (!isset($data[$source][$item[$source]]))
231 229
 							{
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
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
 			try
62 62
 			{
63 63
 				$this->analytics->sendPageview();
64
-			}
65
-			catch (\Exception $e)
64
+			} catch (\Exception $e)
66 65
 			{
67 66
 				// Log the error for reference
68 67
 				$this->getLogger()->error(
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
 		try
76 75
 		{
77 76
 			$this->router->getController($this->get('uri.route'))->execute();
78
-		}
79
-		catch (\Exception $e)
77
+		} catch (\Exception $e)
80 78
 		{
81 79
 			// Log the error for reference
82 80
 			$this->getLogger()->error(
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 			$query = $db->getQuery(true)
56 56
 				->select($column);
57
-		}
58
-		else
57
+		} else
59 58
 		{
60 59
 			$query = $db->getQuery(true)
61 60
 				->select(['php_version', 'db_type', 'db_version', 'cms_version', 'server_os']);
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
 				$query->setLimit($this->batchSize, $offset);
75 74
 
76 75
 				$db->setQuery($query);
77
-			}
78
-			else
76
+			} else
79 77
 			{
80 78
 				$db->setQuery($query, $offset, $this->batchSize);
81 79
 			}
@@ -119,8 +117,7 @@  discard block
 block discarded – undo
119 117
 		if ($recordExists)
120 118
 		{
121 119
 			$db->updateObject('#__jstats', $data, ['unique_id']);
122
-		}
123
-		else
120
+		} else
124 121
 		{
125 122
 			$db->insertObject('#__jstats', $data, ['unique_id']);
126 123
 		}
Please login to merge, or discard this patch.
src/Commands/Database/StatusCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
 		if ($recordExists)
58 58
 		{
59 59
 			$db->updateObject('#__jstats', $data, ['unique_id']);
60
-		}
61
-		else
60
+		} else
62 61
 		{
63 62
 			$db->insertObject('#__jstats', $data, ['unique_id']);
64 63
 		}
Please login to merge, or discard this patch.
src/Commands/Database/MigrateCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
 		try
58 58
 		{
59 59
 			$this->migrations->migrateDatabase($version);
60
-		}
61
-		catch (\Exception $exception)
60
+		} catch (\Exception $exception)
62 61
 		{
63 62
 			$this->logger->critical(
64 63
 				'Error migrating database',
Please login to merge, or discard this patch.
src/Console.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,7 @@
 block discarded – undo
84 84
 		
85 85
 					$commands[strtolower("$namespace:" . str_replace('Command', '', $command))] = $this->getContainer()->get($className);
86 86
 				}
87
-			}
88
-			else
87
+			} else
89 88
 			{
90 89
 				$command   = $fileInfo->getBasename('.php');
91 90
 				$className = __NAMESPACE__ . "\\Commands\\$command";
Please login to merge, or discard this patch.
src/Commands/InstallCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
 			}
76 76
 
77 77
 			$this->cleanDatabase($tables);
78
-		}
79
-		catch (\RuntimeException $e)
78
+		} catch (\RuntimeException $e)
80 79
 		{
81 80
 			// Check if the message is "Could not connect to database."  Odds are, this means the DB isn't there or the server is down.
82 81
 			if (strpos($e->getMessage(), 'Could not connect to database.') !== false)
@@ -90,8 +89,7 @@  discard block
 block discarded – undo
90 89
 				$this->db->select($this->getApplication()->get('database.name'));
91 90
 
92 91
 				$this->out('<info>Database created.</info>');
93
-			}
94
-			else
92
+			} else
95 93
 			{
96 94
 				throw $e;
97 95
 			}
Please login to merge, or discard this patch.
src/Controllers/DisplayControllerGet.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,22 +78,19 @@
 block discarded – undo
78 78
 				if ($item->isHit())
79 79
 				{
80 80
 					$body = $item->get();
81
-				}
82
-				else
81
+				} else
83 82
 				{
84 83
 					$body = $this->view->render();
85 84
 
86 85
 					$this->cacheData($key, $body);
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$body = $this->view->render();
92 90
 
93 91
 				$this->cacheData($key, $body);
94 92
 			}
95
-		}
96
-		else
93
+		} else
97 94
 		{
98 95
 			$body = $this->view->render();
99 96
 		}
Please login to merge, or discard this patch.