Completed
Push — master ( 7b7e84...05865c )
by Michael
03:27
created
src/Commands/Snapshot/RecentCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	public function __construct(StatsJsonView $view)
36 36
 	{
37
-		$this->view  = $view;
37
+		$this->view = $view;
38 38
 	}
39 39
 
40 40
 	/**
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 		$this->view->isAuthorizedRaw(true);
51 51
 		$this->view->isRecent(true);
52 52
 
53
-		$file = APPROOT . '/snapshots/' . date('YmdHis') . '_recent';
53
+		$file = APPROOT.'/snapshots/'.date('YmdHis').'_recent';
54 54
 
55 55
 		if (!file_put_contents($file, $this->view->render()))
56 56
 		{
57
-			throw new \RuntimeException('Failed writing snapshot to the filesystem at ' . $file);
57
+			throw new \RuntimeException('Failed writing snapshot to the filesystem at '.$file);
58 58
 		}
59 59
 
60 60
 		$this->getApplication()->out('<info>Snapshot successfully recorded.</info>');
Please login to merge, or discard this patch.
src/Models/StatsModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 			return $db->setQuery(
59 59
 				$query
60 60
 					->select('*')
61
-					->from($db->quoteName('#__jstats_counter_' . $column))
61
+					->from($db->quoteName('#__jstats_counter_'.$column))
62 62
 			)->loadAssocList();
63 63
 		}
64 64
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			$return[$column] = $db->setQuery(
76 76
 				$query->clear()
77 77
 					->select('*')
78
-					->from($db->quoteName('#__jstats_counter_' . $column))
78
+					->from($db->quoteName('#__jstats_counter_'.$column))
79 79
 			)->loadAssocList();
80 80
 		}
81 81
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			$return[$column] = $db->setQuery(
110 110
 				$query->select($column)
111
-					->select('COUNT(' . $column . ') AS count')
111
+					->select('COUNT('.$column.') AS count')
112 112
 					->from($db->quoteName('#__jstats'))
113 113
 					->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()')
114 114
 					->group($column)
Please login to merge, or discard this patch.