@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * Constants being needed |
41 | 41 | */ |
42 | 42 | const AUTO_SELF_CHECK_TIMESTAMP_FILE = 'last_auto_selfcheck_timestamp'; |
43 | - const AUTO_SELF_CHECK_DELAY = 24*60*60; |
|
43 | + const AUTO_SELF_CHECK_DELAY = 24 * 60 * 60; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Makes an auto-self check but buffers for a certain amount of time |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | public static function autoCheck(Application $application) |
55 | 55 | { |
56 | 56 | $storage = StorageFactory::getStorage(); |
57 | - $lastCheckTimestampFilepath = dirname($storage->getLogFilePath()) . |
|
58 | - DIRECTORY_SEPARATOR . |
|
57 | + $lastCheckTimestampFilepath = dirname($storage->getLogFilePath()). |
|
58 | + DIRECTORY_SEPARATOR. |
|
59 | 59 | static::AUTO_SELF_CHECK_TIMESTAMP_FILE; |
60 | 60 | $lastCheckTimestamp = (int) file_get_contents($lastCheckTimestampFilepath); |
61 | 61 | if ($lastCheckTimestamp < time() - static::AUTO_SELF_CHECK_DELAY) { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | { |
85 | 85 | try { |
86 | 86 | $client = new PackagistClient(); |
87 | - $package = $client->get(static::PACKAGE_VENDOR . '/' . strtolower($this->getApplication()->getName())); |
|
87 | + $package = $client->get(static::PACKAGE_VENDOR.'/'.strtolower($this->getApplication()->getName())); |
|
88 | 88 | } catch (ConnectException $e) { |
89 | 89 | $output->writeln('<comment>Could not check for available new versions. Are you offline?.</comment>'); |
90 | 90 | return 1; |