Completed
Push — mysql_improvements ( 013528...7b45c6 )
by George
04:40 queued 02:17
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/Controllers/DisplayControllerGet.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,15 +72,13 @@
 block discarded – undo
72 72
 			if ($this->cache->contains($key))
73 73
 			{
74 74
 				$body = $this->cache->fetch($key);
75
-			}
76
-			else
75
+			} else
77 76
 			{
78 77
 				$body = $this->view->render();
79 78
 
80 79
 				$this->cache->save($key, $body, $this->getApplication()->get('cache.lifetime', 900));
81 80
 			}
82
-		}
83
-		else
81
+		} else
84 82
 		{
85 83
 			$body = $this->view->render();
86 84
 		}
Please login to merge, or discard this patch.
src/CliApplication.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	/**
30 30
 	 * CliApplication constructor.
31 31
 	 *
32
-	 * @param   Input\Cli  $input    The application's input object.
32
+	 * @param   Cli  $input    The application's input object.
33 33
 	 * @param   Registry   $config   The application's configuration.
34 34
 	 * @param   CliOutput  $output   The application's output object.
35 35
 	 * @param   Console    $console  The application's console object.
Please login to merge, or discard this patch.
src/WebApplication.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 		{
41 41
 			$controller = $this->router->getController($this->get('uri.route'));
42 42
 			$controller->execute();
43
-		}
44
-		catch (\Exception $e)
43
+		} catch (\Exception $e)
45 44
 		{
46 45
 			// Log the error for reference
47 46
 			$this->getLogger()->error(
Please login to merge, or discard this patch.
src/Views/Stats/StatsJsonView.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 	/**
194 194
 	 * Process the response for a single data source.
195 195
 	 *
196
-	 * @param   array  $items  The source items to process.
196
+	 * @param   \array[]  $items  The source items to process.
197 197
 	 *
198 198
 	 * @return  string  The rendered view.
199 199
 	 *
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,8 +105,7 @@
 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
 							{
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,15 +72,13 @@
 block discarded – undo
72 72
 			if ($this->cache->contains($key))
73 73
 			{
74 74
 				$body = $this->cache->fetch($key);
75
-			}
76
-			else
75
+			} else
77 76
 			{
78 77
 				$body = $this->view->render();
79 78
 
80 79
 				$this->cache->save($key, $body, $this->getApplication()->get('cache.lifetime', 900));
81 80
 			}
82
-		}
83
-		else
81
+		} else
84 82
 		{
85 83
 			$body = $this->view->render();
86 84
 		}
Please login to merge, or discard this patch.