@@ -50,17 +50,17 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function getPackageFilename($identifier, $sha, $repositoryDir, DeploynautLogFile $log) { |
| 52 | 52 | // Fetch through the cache |
| 53 | - if($this->cache) { |
|
| 53 | + if ($this->cache) { |
|
| 54 | 54 | if (!$this->cache->getBaseDir()) { |
| 55 | 55 | $this->cache->setBaseDir("/var/www/mysite/deploynaut-resources/build-cache"); |
| 56 | 56 | } |
| 57 | - $identifier .= '-' . get_class($this) . '-' . $this->getIdentifier(); |
|
| 57 | + $identifier .= '-'.get_class($this).'-'.$this->getIdentifier(); |
|
| 58 | 58 | return $this->cache->getPackageFilename($this, $identifier, $sha, $repositoryDir, $log); |
| 59 | 59 | |
| 60 | 60 | // Default, cacheless implementation |
| 61 | 61 | } else { |
| 62 | - $filename = TEMP_FOLDER . '/' . $sha . '.tar.gz'; |
|
| 63 | - if($this->generatePackage($sha, $repositoryDir, $filename, $log)) { |
|
| 62 | + $filename = TEMP_FOLDER.'/'.$sha.'.tar.gz'; |
|
| 63 | + if ($this->generatePackage($sha, $repositoryDir, $filename, $log)) { |
|
| 64 | 64 | return $filename; |
| 65 | 65 | } |
| 66 | 66 | } |