@@ -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 | } |
@@ -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') |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | case 'cms_php_version': |
152 | 152 | if ((isset($item['cms_version']) && $item['cms_version'] !== null) && (isset($item['php_version']) && $item['php_version'] !== null)) |
153 | 153 | { |
154 | - $index = $item['cms_version'] . ' - ' . $item['php_version']; |
|
154 | + $index = $item['cms_version'].' - '.$item['php_version']; |
|
155 | 155 | $cms_php_version[$index] = $item['count']; |
156 | 156 | |
157 | 157 | $this->totalItems += $item['count']; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | case 'db_type_version': |
163 | 163 | if ((isset($item['db_type']) && $item['db_type'] !== null) && (isset($item['db_version']) && $item['db_version'] !== null)) |
164 | 164 | { |
165 | - $index = $item['db_type'] . ' - ' . $item['db_version']; |
|
165 | + $index = $item['db_type'].' - '.$item['db_version']; |
|
166 | 166 | $db_type_version[$index] = $item['count']; |
167 | 167 | |
168 | 168 | $this->totalItems += $item['count']; |
@@ -278,12 +278,12 @@ discard block |
||
278 | 278 | break; |
279 | 279 | |
280 | 280 | case 'cms_php_version': |
281 | - $index = $item['cms_version'] . ' - ' . $item['php_version']; |
|
281 | + $index = $item['cms_version'].' - '.$item['php_version']; |
|
282 | 282 | $data[$this->source][$index] = $item['count']; |
283 | 283 | break; |
284 | 284 | |
285 | 285 | case 'db_type_version': |
286 | - $index = $item['db_type'] . ' - ' . $item['db_version']; |
|
286 | + $index = $item['db_type'].' - '.$item['db_version']; |
|
287 | 287 | $data[$this->source][$index] = $item['count']; |
288 | 288 | break; |
289 | 289 | |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | foreach ($dataGroup as $row) |
327 | 327 | { |
328 | 328 | $exploded = explode('.', $row['name']); |
329 | - $version = $exploded[0] . '.' . ($exploded[1] ?? '0'); |
|
329 | + $version = $exploded[0].'.'.($exploded[1] ?? '0'); |
|
330 | 330 | |
331 | 331 | // If the container does not exist, add it |
332 | 332 | if (!isset($counts[$version])) |
@@ -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 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $return[$column] = $this->db->setQuery( |
101 | 101 | $this->db->getQuery(true) |
102 | 102 | ->select($column) |
103 | - ->select('COUNT(' . $column . ') AS count') |
|
103 | + ->select('COUNT('.$column.') AS count') |
|
104 | 104 | ->from($this->db->quoteName('#__jstats')) |
105 | 105 | ->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()') |
106 | 106 | ->group($column) |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | { |
113 | 113 | $return['cms_php_version'] = $this->db->setQuery( |
114 | 114 | $this->db->getQuery(true) |
115 | - ->select('CONCAT(' . $this->db->quoteName('cms_version') . ', ' . $this->db->quote(' - ') . ', ' . $this->db->quoteName('php_version') . ') AS cms_php_version') |
|
115 | + ->select('CONCAT('.$this->db->quoteName('cms_version').', '.$this->db->quote(' - ').', '.$this->db->quoteName('php_version').') AS cms_php_version') |
|
116 | 116 | ->select('COUNT(*) AS count') |
117 | 117 | ->from($this->db->quoteName('#__jstats')) |
118 | 118 | ->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()') |
119 | - ->group('CONCAT(' . $this->db->quoteName('cms_version') . ', ' . $this->db->quote(' - ') . ', ' . $this->db->quoteName('php_version') . ')') |
|
119 | + ->group('CONCAT('.$this->db->quoteName('cms_version').', '.$this->db->quote(' - ').', '.$this->db->quoteName('php_version').')') |
|
120 | 120 | )->loadAssocList(); |
121 | 121 | continue; |
122 | 122 | } |
@@ -125,11 +125,11 @@ discard block |
||
125 | 125 | { |
126 | 126 | $return['db_type_version'] = $this->db->setQuery( |
127 | 127 | $this->db->getQuery(true) |
128 | - ->select('CONCAT(' . $this->db->quoteName('db_type') . ', ' . $this->db->quote(' - ') . ', ' . $this->db->quoteName('db_version') . ') AS db_type_version') |
|
128 | + ->select('CONCAT('.$this->db->quoteName('db_type').', '.$this->db->quote(' - ').', '.$this->db->quoteName('db_version').') AS db_type_version') |
|
129 | 129 | ->select('COUNT(*) AS count') |
130 | 130 | ->from($this->db->quoteName('#__jstats')) |
131 | 131 | ->where('modified BETWEEN DATE_SUB(NOW(), INTERVAL 90 DAY) AND NOW()') |
132 | - ->group('CONCAT(' . $this->db->quoteName('db_type') . ', ' . $this->db->quote(' - ') . ', ' . $this->db->quoteName('db_version') . ')') |
|
132 | + ->group('CONCAT('.$this->db->quoteName('db_type').', '.$this->db->quote(' - ').', '.$this->db->quoteName('db_version').')') |
|
133 | 133 | )->loadAssocList(); |
134 | 134 | continue; |
135 | 135 | } |