@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return $this->db->setQuery( |
65 | 65 | $this->db->getQuery(true) |
66 | 66 | ->select('*') |
67 | - ->from($this->db->quoteName('#__jstats_counter_' . $column)) |
|
67 | + ->from($this->db->quoteName('#__jstats_counter_'.$column)) |
|
68 | 68 | )->loadAssocList(); |
69 | 69 | } |
70 | 70 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $return[$column] = $this->db->setQuery( |
76 | 76 | $this->db->getQuery(true) |
77 | 77 | ->select('*') |
78 | - ->from($this->db->quoteName('#__jstats_counter_' . $column)) |
|
78 | + ->from($this->db->quoteName('#__jstats_counter_'.$column)) |
|
79 | 79 | )->loadAssocList(); |
80 | 80 | } |
81 | 81 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $return[$column] = $this->db->setQuery( |
99 | 99 | $this->db->getQuery(true) |
100 | 100 | ->select($column) |
101 | - ->select('COUNT(' . $column . ') AS count') |
|
101 | + ->select('COUNT('.$column.') AS count') |
|
102 | 102 | ->from($this->db->quoteName('#__jstats')) |
103 | 103 | ->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()') |
104 | 104 | ->group($column) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $level = strtoupper($config->get('log.application', $config->get('log.level', 'error'))); |
91 | 91 | |
92 | - return new StreamHandler(APPROOT . '/logs/stats.log', \constant('\\Monolog\\Logger::' . $level)); |
|
92 | + return new StreamHandler(APPROOT.'/logs/stats.log', \constant('\\Monolog\\Logger::'.$level)); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | $level = strtoupper($config->get('log.database', $config->get('log.level', 'error'))); |
108 | 108 | |
109 | - return new StreamHandler(APPROOT . '/logs/stats.log', \constant('\\Monolog\\Logger::' . $level)); |
|
109 | + return new StreamHandler(APPROOT.'/logs/stats.log', \constant('\\Monolog\\Logger::'.$level)); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -135,7 +135,7 @@ |
||
135 | 135 | '/:source', |
136 | 136 | DisplayStatisticsController::class, |
137 | 137 | [ |
138 | - 'source' => '(' . implode('|', StatisticsRepository::ALLOWED_SOURCES) . ')', |
|
138 | + 'source' => '('.implode('|', StatisticsRepository::ALLOWED_SOURCES).')', |
|
139 | 139 | ] |
140 | 140 | ); |
141 | 141 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function getMigrationsFilesystemService(Container $container): Filesystem |
43 | 43 | { |
44 | - return new Filesystem(new Local(APPROOT . '/etc/migrations')); |
|
44 | + return new Filesystem(new Local(APPROOT.'/etc/migrations')); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function getSnapshotFilesystemService(Container $container): Filesystem |
55 | 55 | { |
56 | - return new Filesystem(new Local(APPROOT . '/snapshots')); |
|
56 | + return new Filesystem(new Local(APPROOT.'/snapshots')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -65,6 +65,6 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getVersionsFilesystemService(Container $container): Filesystem |
67 | 67 | { |
68 | - return new Filesystem(new Local(APPROOT . '/versions')); |
|
68 | + return new Filesystem(new Local(APPROOT.'/versions')); |
|
69 | 69 | } |
70 | 70 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | case 'cms_php_version': |
148 | 148 | if ((isset($item['cms_version']) && $item['cms_version'] !== null) && (isset($item['php_version']) && $item['php_version'] !== null)) |
149 | 149 | { |
150 | - $index = $item['cms_version'] . ' - ' . $item['php_version']; |
|
150 | + $index = $item['cms_version'].' - '.$item['php_version']; |
|
151 | 151 | $cms_php_version[$index] = $item['count']; |
152 | 152 | $this->totalItems += $item['count']; |
153 | 153 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | case 'db_type_version': |
157 | 157 | if ((isset($item['db_type']) && $item['db_type'] !== null) && (isset($item['db_version']) && $item['db_version'] !== null)) |
158 | 158 | { |
159 | - $index = $item['db_type'] . ' - ' . $item['db_version']; |
|
159 | + $index = $item['db_type'].' - '.$item['db_version']; |
|
160 | 160 | $db_type_version[$index] = $item['count']; |
161 | 161 | $this->totalItems += $item['count']; |
162 | 162 | } |
@@ -268,12 +268,12 @@ discard block |
||
268 | 268 | break; |
269 | 269 | |
270 | 270 | case 'cms_php_version': |
271 | - $index = $item['cms_version'] . ' - ' . $item['php_version']; |
|
271 | + $index = $item['cms_version'].' - '.$item['php_version']; |
|
272 | 272 | $data[$this->source][$index] = $item['count']; |
273 | 273 | break; |
274 | 274 | |
275 | 275 | case 'db_type_version': |
276 | - $index = $item['db_type'] . ' - ' . $item['db_version']; |
|
276 | + $index = $item['db_type'].' - '.$item['db_version']; |
|
277 | 277 | $data[$this->source][$index] = $item['count']; |
278 | 278 | break; |
279 | 279 | |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | foreach ($dataGroup as $row) |
317 | 317 | { |
318 | 318 | $exploded = explode('.', $row['name']); |
319 | - $version = $exploded[0] . '.' . ($exploded[1] ?? '0'); |
|
319 | + $version = $exploded[0].'.'.($exploded[1] ?? '0'); |
|
320 | 320 | |
321 | 321 | // If the container does not exist, add it |
322 | 322 | if (!isset($counts[$version])) |
@@ -115,14 +115,14 @@ |
||
115 | 115 | $explodedVersion = explode('.', $version); |
116 | 116 | |
117 | 117 | $nextPatch = $explodedVersion[2] + 1; |
118 | - $versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch; |
|
118 | + $versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | // Use $branch from the previous loop to allow the next minor version (PHP's master branch) |
122 | 122 | $explodedVersion = explode('.', $branch); |
123 | 123 | |
124 | 124 | $nextMinor = $explodedVersion[1] + 1; |
125 | - $nextRelease = $explodedVersion[0] . '.' . $nextMinor . '.0'; |
|
125 | + $nextRelease = $explodedVersion[0].'.'.$nextMinor.'.0'; |
|
126 | 126 | |
127 | 127 | // There won't be a PHP 7.5, change next release to 8.0 if needed |
128 | 128 | if ($nextRelease === '7.5.0') |