Completed
Push — master ( 55ea86...34c5f6 )
by Michael
01:51
created
src/Database/Mysql/MysqlDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	 * @param   string  $column  An optional column name. Instead of the whole row, only this column value will be in
28 28
 	 *                           the result array.
29 29
 	 *
30
-	 * @return  \Generator|null  A Generator with the result set or null if the query failed.
30
+	 * @return  \Generator  A Generator with the result set or null if the query failed.
31 31
 	 *
32 32
 	 * @since   1.0
33 33
 	 * @throws  \RuntimeException
Please login to merge, or discard this patch.
src/Models/StatsModel.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace Joomla\StatsServer\Models;
10 10
 
11 11
 use Joomla\Database\DatabaseDriver;
12
-use Joomla\Database\Query\LimitableInterface;
13 12
 use Joomla\Model\{
14 13
 	DatabaseModelInterface, DatabaseModelTrait
15 14
 };
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 			$query = $db->getQuery(true)
66 66
 				->select($column);
67
-		}
68
-		else
67
+		} else
69 68
 		{
70 69
 			$query = $db->getQuery(true)
71 70
 				->select(['php_version', 'db_type', 'db_version', 'cms_version', 'server_os']);
@@ -105,8 +104,7 @@  discard block
 block discarded – undo
105 104
 		if ($recordExists)
106 105
 		{
107 106
 			$db->updateObject('#__jstats', $data, ['unique_id']);
108
-		}
109
-		else
107
+		} else
110 108
 		{
111 109
 			$db->insertObject('#__jstats', $data, ['unique_id']);
112 110
 		}
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
@@ -107,8 +107,7 @@  discard block
 block discarded – undo
107 107
 						}
108 108
 
109 109
 						${$source}['unknown']++;
110
-					}
111
-					else
110
+					} else
112 111
 					{
113 112
 						if (!isset(${$source}[$item[$source]]))
114 113
 						{
@@ -215,8 +214,7 @@  discard block
 block discarded – undo
215 214
 						}
216 215
 
217 216
 						$data[$source]['unknown']++;
218
-					}
219
-					else
217
+					} else
220 218
 					{
221 219
 						if (!isset($data[$source][$item[$source]]))
222 220
 						{
Please login to merge, or discard this patch.