@@ -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)); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | \define('APPROOT', \dirname(__DIR__)); |
| 11 | 11 | |
| 12 | 12 | // Ensure we've initialized Composer |
| 13 | -if (!file_exists(APPROOT . '/vendor/autoload.php')) |
|
| 13 | +if (!file_exists(APPROOT.'/vendor/autoload.php')) |
|
| 14 | 14 | { |
| 15 | 15 | header('HTTP/1.1 500 Internal Server Error', null, 500); |
| 16 | 16 | header('Content-Type: application/json; charset=utf-8'); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | exit; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -require APPROOT . '/vendor/autoload.php'; |
|
| 29 | +require APPROOT.'/vendor/autoload.php'; |
|
| 30 | 30 | |
| 31 | 31 | try |
| 32 | 32 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | echo \json_encode( |
| 46 | 46 | [ |
| 47 | 47 | 'code' => $throwable->getCode(), |
| 48 | - 'message' => 'An error occurred while executing the application: ' . $throwable->getMessage(), |
|
| 48 | + 'message' => 'An error occurred while executing the application: '.$throwable->getMessage(), |
|
| 49 | 49 | 'error' => true, |
| 50 | 50 | ] |
| 51 | 51 | ); |
@@ -105,11 +105,11 @@ |
||
| 105 | 105 | |
| 106 | 106 | // Allow the next patch release after this one |
| 107 | 107 | $nextPatch = $explodedVersion[2] + 1; |
| 108 | - $versions[] = $explodedVersion[0] . '.' . $explodedVersion[1] . '.' . $nextPatch; |
|
| 108 | + $versions[] = $explodedVersion[0].'.'.$explodedVersion[1].'.'.$nextPatch; |
|
| 109 | 109 | |
| 110 | 110 | // And allow the next minor release after this one |
| 111 | 111 | $nextMinor = $explodedVersion[1] + 1; |
| 112 | - $versions[] = $explodedVersion[0] . '.' . $nextMinor . '.0'; |
|
| 112 | + $versions[] = $explodedVersion[0].'.'.$nextMinor.'.0'; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | if (!$this->filesystem->put('joomla.json', json_encode($versions))) |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | $this->view->setSource($source); |
| 96 | 96 | |
| 97 | - $filename .= '_' . $source; |
|
| 97 | + $filename .= '_'.$source; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | if (!$this->filesystem->write($filename, $this->view->render())) |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $source = $input->getOption('source'); |
| 80 | 80 | |
| 81 | - $filename = date('YmdHis') . '_recent'; |
|
| 81 | + $filename = date('YmdHis').'_recent'; |
|
| 82 | 82 | |
| 83 | 83 | if ($source) |
| 84 | 84 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | $this->view->setSource($source); |
| 97 | 97 | |
| 98 | - $filename .= '_' . $source; |
|
| 98 | + $filename .= '_'.$source; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | if (!$this->filesystem->write($filename, $this->view->render())) |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $this->getApplication()->getLogger()->error('Could not execute `git pull`', ['exception' => $e]); |
| 52 | 52 | |
| 53 | - $symfonyStyle->error('Error running `git pull`: ' . $e->getMessage()); |
|
| 53 | + $symfonyStyle->error('Error running `git pull`: '.$e->getMessage()); |
|
| 54 | 54 | |
| 55 | 55 | return 1; |
| 56 | 56 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $this->getApplication()->getLogger()->error('Could not update Composer resources', ['exception' => $e]); |
| 68 | 68 | |
| 69 | - $symfonyStyle->error('Error updating Composer resources: ' . $e->getMessage()); |
|
| 69 | + $symfonyStyle->error('Error updating Composer resources: '.$e->getMessage()); |
|
| 70 | 70 | |
| 71 | 71 | return 1; |
| 72 | 72 | } |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | */ |
| 197 | 197 | private function doMigration(string $version): void |
| 198 | 198 | { |
| 199 | - $sqlFile = $version . '.sql'; |
|
| 199 | + $sqlFile = $version.'.sql'; |
|
| 200 | 200 | |
| 201 | 201 | if (!$this->filesystem->has($sqlFile)) |
| 202 | 202 | { |