@@ -92,7 +92,7 @@ |
||
92 | 92 | $db->getQuery(true) |
93 | 93 | ->select('unique_id') |
94 | 94 | ->from('#__jstats') |
95 | - ->where('unique_id = ' . $db->quote($data->unique_id)) |
|
95 | + ->where('unique_id = '.$db->quote($data->unique_id)) |
|
96 | 96 | )->loadResult(); |
97 | 97 | |
98 | 98 | if ($recordExists) |
@@ -54,8 +54,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -263,7 +263,7 @@ |
||
263 | 263 | foreach ($dataGroup as $row) |
264 | 264 | { |
265 | 265 | $exploded = explode('.', $row['name']); |
266 | - $version = $exploded[0] . '.' . (isset($exploded[1]) ? $exploded[1] : '0'); |
|
266 | + $version = $exploded[0].'.'.(isset($exploded[1]) ? $exploded[1] : '0'); |
|
267 | 267 | |
268 | 268 | // If the container does not exist, add it |
269 | 269 | if (!isset($counts[$version])) |
@@ -105,8 +105,7 @@ discard block |
||
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 |
||
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 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $container->alias('db', DatabaseDriver::class) |
28 | 28 | ->share( |
29 | 29 | DatabaseDriver::class, |
30 | - function (Container $container) |
|
30 | + function(Container $container) |
|
31 | 31 | { |
32 | 32 | $config = $container->get('config'); |
33 | 33 |
@@ -155,7 +155,7 @@ |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | // Import the valid release listing |
158 | - $path = APPROOT . '/versions/joomla.json'; |
|
158 | + $path = APPROOT.'/versions/joomla.json'; |
|
159 | 159 | |
160 | 160 | if (!file_exists($path)) |
161 | 161 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function __get($name) |
27 | 27 | { |
28 | - $class = __NAMESPACE__ . '\\Package\\' . ucfirst($name); |
|
28 | + $class = __NAMESPACE__.'\\Package\\'.ucfirst($name); |
|
29 | 29 | |
30 | 30 | if (class_exists($class)) |
31 | 31 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function __get($name) |
25 | 25 | { |
26 | - $class = __NAMESPACE__ . '\\' . $this->package . '\\' . ucfirst($name); |
|
26 | + $class = __NAMESPACE__.'\\'.$this->package.'\\'.ucfirst($name); |
|
27 | 27 | |
28 | 28 | if (class_exists($class)) |
29 | 29 | { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | public function getTags($owner, $repo, $page = 0) |
50 | 50 | { |
51 | 51 | // Build the request path. |
52 | - $path = '/repos/' . $owner . '/' . $repo . '/tags'; |
|
52 | + $path = '/repos/'.$owner.'/'.$repo.'/tags'; |
|
53 | 53 | |
54 | 54 | // Send the request. |
55 | 55 | $this->apiResponse = $this->client->get($this->fetchUrl($path, $page)); |
@@ -61,8 +61,7 @@ discard block |
||
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 |
||
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( |
@@ -56,11 +56,11 @@ |
||
56 | 56 | else |
57 | 57 | { |
58 | 58 | $this->getApplication()->out( |
59 | - '<comment>' . sprintf('Your database is not up-to-date. You are missing %d migrations.', $status['missingMigrations']) . '</comment>' |
|
59 | + '<comment>'.sprintf('Your database is not up-to-date. You are missing %d migrations.', $status['missingMigrations']).'</comment>' |
|
60 | 60 | ) |
61 | 61 | ->out() |
62 | - ->out('<comment>' . sprintf('Current Version: %1$s', $status['currentVersion']) . '</comment>') |
|
63 | - ->out('<comment>' . sprintf('Latest Version: %1$s', $status['latestVersion']) . '</comment>') |
|
62 | + ->out('<comment>'.sprintf('Current Version: %1$s', $status['currentVersion']).'</comment>') |
|
63 | + ->out('<comment>'.sprintf('Latest Version: %1$s', $status['latestVersion']).'</comment>') |
|
64 | 64 | ->out() |
65 | 65 | ->out(sprintf('To update, run the <fg=magenta>%1$s</fg=magenta> command.', 'database:migrate')); |
66 | 66 | } |
@@ -57,8 +57,7 @@ |
||
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 | } |