@@ -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) |
@@ -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])) |
@@ -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 |
@@ -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)); |
@@ -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 | } |
@@ -161,7 +161,7 @@ |
||
161 | 161 | */ |
162 | 162 | private function doMigration($version) |
163 | 163 | { |
164 | - $sqlFile = 'migrations/' . $version . '.sql'; |
|
164 | + $sqlFile = 'migrations/'.$version.'.sql'; |
|
165 | 165 | |
166 | 166 | if (!$this->filesystem->has($sqlFile)) |
167 | 167 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $container->alias('db', DatabaseDriver::class) |
31 | 31 | ->share( |
32 | 32 | DatabaseDriver::class, |
33 | - function (Container $container) |
|
33 | + function(Container $container) |
|
34 | 34 | { |
35 | 35 | /** @var \Joomla\Registry\Registry $config */ |
36 | 36 | $config = $container->get('config'); |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | |
47 | 47 | $container->alias('db.migrations', Migrations::class) |
48 | 48 | ->set(Migrations::class, |
49 | - function (Container $container) |
|
49 | + function(Container $container) |
|
50 | 50 | { |
51 | 51 | return new Migrations( |
52 | 52 | $container->get('db'), |
53 | - new Filesystem(new Local(APPROOT . '/etc')) |
|
53 | + new Filesystem(new Local(APPROOT.'/etc')) |
|
54 | 54 | ); |
55 | 55 | }, true, true |
56 | 56 | ); |