@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if (!is_readable($searchFolder)) { |
195 | 195 | if (OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity()) { |
196 | 196 | $this->output->writeln( |
197 | - '<debug>Folder <info>' . $searchFolder . '</info> is not readable. Skip.</debug>' |
|
197 | + '<debug>Folder <info>'.$searchFolder.'</info> is not readable. Skip.</debug>' |
|
198 | 198 | ); |
199 | 199 | } |
200 | 200 | continue; |
@@ -212,16 +212,16 @@ discard block |
||
212 | 212 | |
213 | 213 | $count = $finder->count(); |
214 | 214 | if ($count > 0) { |
215 | - $baseFolderContent = trim(file_get_contents($searchFolder . DIRECTORY_SEPARATOR . '.basedir')); |
|
215 | + $baseFolderContent = trim(file_get_contents($searchFolder.DIRECTORY_SEPARATOR.'.basedir')); |
|
216 | 216 | if (OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity()) { |
217 | 217 | $this->output->writeln( |
218 | - '<debug>Found modman .basedir file with content <info>' . $baseFolderContent . '</info></debug>' |
|
218 | + '<debug>Found modman .basedir file with content <info>'.$baseFolderContent.'</info></debug>' |
|
219 | 219 | ); |
220 | 220 | } |
221 | 221 | |
222 | 222 | if (!empty($baseFolderContent)) { |
223 | 223 | array_push( |
224 | - $folders, $searchFolder . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . $baseFolderContent |
|
224 | + $folders, $searchFolder.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$baseFolderContent |
|
225 | 225 | ); |
226 | 226 | } |
227 | 227 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | continue; |
250 | 250 | } |
251 | - $stopFile = '.' . pathinfo($this->_customConfigFilename, PATHINFO_FILENAME); |
|
251 | + $stopFile = '.'.pathinfo($this->_customConfigFilename, PATHINFO_FILENAME); |
|
252 | 252 | $finder = Finder::create(); |
253 | 253 | $finder |
254 | 254 | ->files() |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | if ($count > 0) { |
264 | 264 | $this->_magerunStopFileFound = true; |
265 | 265 | $this->_magerunStopFileFolder = $searchFolder; |
266 | - $magerunFilePath = $searchFolder . DIRECTORY_SEPARATOR . $stopFile; |
|
266 | + $magerunFilePath = $searchFolder.DIRECTORY_SEPARATOR.$stopFile; |
|
267 | 267 | $magerunFileContent = trim(file_get_contents($magerunFilePath)); |
268 | 268 | if (OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity()) { |
269 | 269 | $message = sprintf( |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | $this->output->writeln($message); |
274 | 274 | } |
275 | 275 | |
276 | - array_push($folders, $searchFolder . DIRECTORY_SEPARATOR . $magerunFileContent); |
|
276 | + array_push($folders, $searchFolder.DIRECTORY_SEPARATOR.$magerunFileContent); |
|
277 | 277 | } |
278 | 278 | } |
279 | 279 | |
@@ -288,10 +288,10 @@ discard block |
||
288 | 288 | protected function _search($searchFolder) |
289 | 289 | { |
290 | 290 | if (OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity()) { |
291 | - $this->output->writeln('<debug>Search for Magento in folder <info>' . $searchFolder . '</info></debug>'); |
|
291 | + $this->output->writeln('<debug>Search for Magento in folder <info>'.$searchFolder.'</info></debug>'); |
|
292 | 292 | } |
293 | 293 | |
294 | - if (!is_dir($searchFolder . '/app')) { |
|
294 | + if (!is_dir($searchFolder.'/app')) { |
|
295 | 295 | return false; |
296 | 296 | } |
297 | 297 | |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | ->name('Mage.php') |
304 | 304 | ->name('bootstrap.php') |
305 | 305 | ->name('autoload.php') |
306 | - ->in($searchFolder . '/app'); |
|
306 | + ->in($searchFolder.'/app'); |
|
307 | 307 | |
308 | 308 | if ($finder->count() > 0) { |
309 | 309 | $files = iterator_to_array($finder, false); |
@@ -327,12 +327,12 @@ discard block |
||
327 | 327 | if (is_callable(array('\Mage', 'getEdition'))) { |
328 | 328 | $this->_magentoEnterprise = (\Mage::getEdition() == 'Enterprise'); |
329 | 329 | } else { |
330 | - $this->_magentoEnterprise = is_dir($this->_magentoRootFolder . '/app/code/core/Enterprise'); |
|
330 | + $this->_magentoEnterprise = is_dir($this->_magentoRootFolder.'/app/code/core/Enterprise'); |
|
331 | 331 | } |
332 | 332 | |
333 | 333 | if (OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity()) { |
334 | 334 | $this->output->writeln( |
335 | - '<debug>Found Magento in folder <info>' . $this->_magentoRootFolder . '</info></debug>' |
|
335 | + '<debug>Found Magento in folder <info>'.$this->_magentoRootFolder.'</info></debug>' |
|
336 | 336 | ); |
337 | 337 | } |
338 | 338 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | foreach ($storeManager->getStores($withDefaultStore) as $store) { |
73 | 73 | $stores[$i] = $store->getId(); |
74 | 74 | $question[] = sprintf( |
75 | - '<comment>[%d]</comment> %s - %s' . PHP_EOL, |
|
75 | + '<comment>[%d]</comment> %s - %s'.PHP_EOL, |
|
76 | 76 | ++$i, |
77 | 77 | $store->getCode(), |
78 | 78 | $store->getName() |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $position = $i + 1; |
167 | 167 | |
168 | 168 | $websites[$i] = $value; |
169 | - $question[$i] = sprintf('<comment>[%d]</comment> %s' . PHP_EOL, $position, $label); |
|
169 | + $question[$i] = sprintf('<comment>[%d]</comment> %s'.PHP_EOL, $position, $label); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | return array($websites, $question); |
@@ -256,13 +256,13 @@ discard block |
||
256 | 256 | if (strlen($value)) { |
257 | 257 | $errors = $this->validateValue($name, $value, $constraints); |
258 | 258 | if ($errors->count() > 0) { |
259 | - $output->writeln('<error>' . $errors[0]->getMessage() . '</error>'); |
|
259 | + $output->writeln('<error>'.$errors[0]->getMessage().'</error>'); |
|
260 | 260 | } else { |
261 | 261 | return $value; |
262 | 262 | } |
263 | 263 | } |
264 | 264 | |
265 | - $question = '<question>' . ucfirst($name) . ': </question>'; |
|
265 | + $question = '<question>'.ucfirst($name).': </question>'; |
|
266 | 266 | |
267 | 267 | $value = $this->askAndValidate( |
268 | 268 | $output, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $application = $this->getApplication(); |
56 | 56 | $application->detectMagento(); |
57 | 57 | |
58 | - $configFile = $application->getMagentoRootFolder() . '/app/etc/local.xml'; |
|
58 | + $configFile = $application->getMagentoRootFolder().'/app/etc/local.xml'; |
|
59 | 59 | |
60 | 60 | if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { |
61 | 61 | $output->writeln( |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | try { |
67 | 67 | $this->dbSettings = new DbSettings($configFile); |
68 | 68 | } catch (InvalidArgumentException $e) { |
69 | - $output->writeln('<error>' . $e->getMessage() . '</error>'); |
|
69 | + $output->writeln('<error>'.$e->getMessage().'</error>'); |
|
70 | 70 | throw new RuntimeException('Failed to load database settings from config file', 0, $e); |
71 | 71 | } |
72 | 72 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | $result = $statement->fetchAll(PDO::FETCH_COLUMN); |
113 | 113 | foreach ($result as $row) { |
114 | - if (preg_match('/^GRANT(.*)' . strtoupper($privilege) . '/', $row) |
|
114 | + if (preg_match('/^GRANT(.*)'.strtoupper($privilege).'/', $row) |
|
115 | 115 | || preg_match('/^GRANT(.*)ALL/', $row) |
116 | 116 | ) { |
117 | 117 | return true; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | ); |
180 | 180 | } |
181 | 181 | |
182 | - $quoted = '`' . strtr($name, array('`' => '``')) . '`'; |
|
182 | + $quoted = '`'.strtr($name, array('`' => '``')).'`'; |
|
183 | 183 | $query = "SELECT {$type}{$quoted};"; |
184 | 184 | |
185 | 185 | $connection = $this->getConnection(); |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | foreach ($tableGroups as $index => $definition) { |
213 | 213 | $description = isset($definition['description']) ? $definition['description'] : ''; |
214 | 214 | if (!isset($definition['id'])) { |
215 | - throw new RuntimeException('Invalid definition of table-groups (id missing) Index: ' . $index); |
|
215 | + throw new RuntimeException('Invalid definition of table-groups (id missing) Index: '.$index); |
|
216 | 216 | } |
217 | 217 | if (!isset($definition['tables'])) { |
218 | 218 | throw new RuntimeException('Invalid definition of table-groups (tables missing) Id: ' |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | if (substr($entry, 0, 1) == '@') { |
250 | 250 | $code = substr($entry, 1); |
251 | 251 | if (!isset($definitions[$code])) { |
252 | - throw new RuntimeException('Table-groups could not be resolved: ' . $entry); |
|
252 | + throw new RuntimeException('Table-groups could not be resolved: '.$entry); |
|
253 | 253 | } |
254 | 254 | if (!isset($resolved[$code])) { |
255 | 255 | $resolved[$code] = true; |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY) |
272 | 272 | ); |
273 | 273 | $sth->execute( |
274 | - array(':like' => str_replace('*', '%', $this->dbSettings['prefix'] . $entry)) |
|
274 | + array(':like' => str_replace('*', '%', $this->dbSettings['prefix'].$entry)) |
|
275 | 275 | ); |
276 | 276 | $rows = $sth->fetchAll(); |
277 | 277 | foreach ($rows as $row) { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | } |
282 | 282 | |
283 | 283 | if (in_array($entry, $this->_tables)) { |
284 | - $resolvedList[] = $this->dbSettings['prefix'] . $entry; |
|
284 | + $resolvedList[] = $this->dbSettings['prefix'].$entry; |
|
285 | 285 | } |
286 | 286 | } |
287 | 287 | |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | if ($length) { |
324 | 324 | $escape = '='; |
325 | 325 | $condition .= sprintf(" AND %s LIKE :like ESCAPE '%s'", $columnName, $escape); |
326 | - $input[':like'] = $this->quoteLike($prefix, $escape) . '%'; |
|
326 | + $input[':like'] = $this->quoteLike($prefix, $escape).'%'; |
|
327 | 327 | } |
328 | 328 | |
329 | 329 | $query = sprintf('SELECT %s FROM information_schema.tables WHERE %s;', $column, $condition); |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | $message = ''; |
364 | 364 | } |
365 | 365 | |
366 | - throw new RuntimeException($message . $reason); |
|
366 | + throw new RuntimeException($message.$reason); |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | /** |
@@ -377,9 +377,9 @@ discard block |
||
377 | 377 | private function quoteLike($string, $escape = '=') |
378 | 378 | { |
379 | 379 | $translation = array( |
380 | - $escape => $escape . $escape, |
|
381 | - '%' => $escape . '%', |
|
382 | - '_' => $escape . '_', |
|
380 | + $escape => $escape.$escape, |
|
381 | + '%' => $escape.'%', |
|
382 | + '_' => $escape.'_', |
|
383 | 383 | ); |
384 | 384 | |
385 | 385 | return strtr($string, $translation); |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | if (strlen($prefix) > 0) { |
400 | 400 | $statement = $db->prepare('SHOW TABLE STATUS LIKE :like', array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY)); |
401 | 401 | $statement->execute( |
402 | - array(':like' => $prefix . '%') |
|
402 | + array(':like' => $prefix.'%') |
|
403 | 403 | ); |
404 | 404 | } else { |
405 | 405 | $statement = $db->query('SHOW TABLE STATUS'); |
@@ -470,8 +470,8 @@ discard block |
||
470 | 470 | { |
471 | 471 | $this->detectDbSettings($output); |
472 | 472 | $db = $this->getConnection(); |
473 | - $db->query('DROP DATABASE `' . $this->dbSettings['dbname'] . '`'); |
|
474 | - $output->writeln('<info>Dropped database</info> <comment>' . $this->dbSettings['dbname'] . '</comment>'); |
|
473 | + $db->query('DROP DATABASE `'.$this->dbSettings['dbname'].'`'); |
|
474 | + $output->writeln('<info>Dropped database</info> <comment>'.$this->dbSettings['dbname'].'</comment>'); |
|
475 | 475 | } |
476 | 476 | |
477 | 477 | /** |
@@ -483,12 +483,12 @@ discard block |
||
483 | 483 | $query = 'SET FOREIGN_KEY_CHECKS = 0; '; |
484 | 484 | $count = 0; |
485 | 485 | foreach ($result as $tableName) { |
486 | - $query .= 'DROP TABLE IF EXISTS `' . $tableName . '`; '; |
|
486 | + $query .= 'DROP TABLE IF EXISTS `'.$tableName.'`; '; |
|
487 | 487 | $count++; |
488 | 488 | } |
489 | 489 | $query .= 'SET FOREIGN_KEY_CHECKS = 1;'; |
490 | 490 | $this->getConnection()->query($query); |
491 | - $output->writeln('<info>Dropped database tables</info> <comment>' . $count . ' tables dropped</comment>'); |
|
491 | + $output->writeln('<info>Dropped database tables</info> <comment>'.$count.' tables dropped</comment>'); |
|
492 | 492 | } |
493 | 493 | |
494 | 494 | /** |
@@ -498,8 +498,8 @@ discard block |
||
498 | 498 | { |
499 | 499 | $this->detectDbSettings($output); |
500 | 500 | $db = $this->getConnection(); |
501 | - $db->query('CREATE DATABASE IF NOT EXISTS `' . $this->dbSettings['dbname'] . '`'); |
|
502 | - $output->writeln('<info>Created database</info> <comment>' . $this->dbSettings['dbname'] . '</comment>'); |
|
501 | + $db->query('CREATE DATABASE IF NOT EXISTS `'.$this->dbSettings['dbname'].'`'); |
|
502 | + $output->writeln('<info>Created database</info> <comment>'.$this->dbSettings['dbname'].'</comment>'); |
|
503 | 503 | } |
504 | 504 | |
505 | 505 | /** |
@@ -514,14 +514,14 @@ discard block |
||
514 | 514 | |
515 | 515 | if (null !== $variable) { |
516 | 516 | $statement = $db->prepare( |
517 | - 'SHOW /*!50000 GLOBAL */ ' . $command . ' LIKE :like', |
|
517 | + 'SHOW /*!50000 GLOBAL */ '.$command.' LIKE :like', |
|
518 | 518 | array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY) |
519 | 519 | ); |
520 | 520 | $statement->execute( |
521 | 521 | array(':like' => $variable) |
522 | 522 | ); |
523 | 523 | } else { |
524 | - $statement = $db->query('SHOW /*!50000 GLOBAL */ ' . $command); |
|
524 | + $statement = $db->query('SHOW /*!50000 GLOBAL */ '.$command); |
|
525 | 525 | } |
526 | 526 | |
527 | 527 | if ($statement) { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | throw new RuntimeException($message); |
33 | 33 | } |
34 | 34 | |
35 | - $command = $command . self::REDIRECT_STDERR_TO_STDOUT; |
|
35 | + $command = $command.self::REDIRECT_STDERR_TO_STDOUT; |
|
36 | 36 | |
37 | 37 | exec($command, $outputArray, $returnCode); |
38 | 38 | $output = self::parseCommandOutput($outputArray); |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | */ |
61 | 61 | private static function parseCommandOutput(array $commandOutput) |
62 | 62 | { |
63 | - return implode(PHP_EOL, $commandOutput) . PHP_EOL; |
|
63 | + return implode(PHP_EOL, $commandOutput).PHP_EOL; |
|
64 | 64 | } |
65 | 65 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | while (feof($file) === false) { |
27 | 27 | $query[] = fgets($file); |
28 | 28 | |
29 | - if (preg_match('~' . preg_quote($delimiter, '~') . '\s*$~iS', end($query)) === 1) { |
|
29 | + if (preg_match('~'.preg_quote($delimiter, '~').'\s*$~iS', end($query)) === 1) { |
|
30 | 30 | $query = trim(implode('', $query)); |
31 | 31 | $pdo->query($query); |
32 | 32 |
@@ -29,12 +29,12 @@ |
||
29 | 29 | $seconds = $interval->format('%s'); |
30 | 30 | |
31 | 31 | $differenceString |
32 | - = ($years ? $years . 'Y ' : '') |
|
33 | - . ($months ? $months . 'M ' : '') |
|
34 | - . ($days ? $days . 'd ' : '') |
|
35 | - . ($hours ? $hours . 'h ' : '') |
|
36 | - . ($minutes ? $minutes . 'm ' : '') |
|
37 | - . ($seconds ? $seconds . 's ' : ''); |
|
32 | + = ($years ? $years.'Y ' : '') |
|
33 | + . ($months ? $months.'M ' : '') |
|
34 | + . ($days ? $days.'d ' : '') |
|
35 | + . ($hours ? $hours.'h ' : '') |
|
36 | + . ($minutes ? $minutes.'m ' : '') |
|
37 | + . ($seconds ? $seconds.'s ' : ''); |
|
38 | 38 | |
39 | 39 | return trim($differenceString); |
40 | 40 | } |
@@ -46,16 +46,16 @@ discard block |
||
46 | 46 | continue; |
47 | 47 | } |
48 | 48 | |
49 | - if (is_dir($src . '/' . $file)) { |
|
49 | + if (is_dir($src.'/'.$file)) { |
|
50 | 50 | $stack[] = $file; |
51 | 51 | } else { |
52 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
52 | + copy($src.'/'.$file, $dst.'/'.$file); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | closedir($handle); |
56 | 56 | |
57 | 57 | foreach ($stack as $file) { |
58 | - $this->recursiveCopy($src . '/' . $file, $dst . '/' . $file, $blacklist); |
|
58 | + $this->recursiveCopy($src.'/'.$file, $dst.'/'.$file, $blacklist); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | // we build the new path to delete |
101 | - $path = $directory . '/' . $file; |
|
101 | + $path = $directory.'/'.$file; |
|
102 | 102 | |
103 | 103 | // if the new path is a directory |
104 | 104 | // don't recursively delete symlinks - just remove the actual link |
@@ -34,13 +34,13 @@ |
||
34 | 34 | public static function getLoader() |
35 | 35 | { |
36 | 36 | if ( |
37 | - !($loader = self::includeIfExists(__DIR__ . '/../../vendor/autoload.php')) |
|
38 | - && !($loader = self::includeIfExists(__DIR__ . '/../../../../autoload.php')) |
|
37 | + !($loader = self::includeIfExists(__DIR__.'/../../vendor/autoload.php')) |
|
38 | + && !($loader = self::includeIfExists(__DIR__.'/../../../../autoload.php')) |
|
39 | 39 | ) { |
40 | 40 | throw new ErrorException( |
41 | - 'You must set up the project dependencies, run the following commands:' . PHP_EOL . |
|
42 | - 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . |
|
43 | - 'php composer.phar install' . PHP_EOL |
|
41 | + 'You must set up the project dependencies, run the following commands:'.PHP_EOL. |
|
42 | + 'curl -s http://getcomposer.org/installer | php'.PHP_EOL. |
|
43 | + 'php composer.phar install'.PHP_EOL |
|
44 | 44 | ); |
45 | 45 | } |
46 | 46 |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | try { |
271 | 271 | $this->log( |
272 | - 'Building package: ' . $this->destinationFile->__toString(), |
|
272 | + 'Building package: '.$this->destinationFile->__toString(), |
|
273 | 273 | Project::MSG_INFO |
274 | 274 | ); |
275 | 275 | |
@@ -278,12 +278,12 @@ discard block |
||
278 | 278 | try { |
279 | 279 | $this->compressAllFiles($this->initPhar(), $baseDirectory); |
280 | 280 | } catch (\RuntimeException $e) { |
281 | - $this->log('Most likely compression failed (known bug): ' . $e->getMessage()); |
|
281 | + $this->log('Most likely compression failed (known bug): '.$e->getMessage()); |
|
282 | 282 | $this->compressEachFile($this->initPhar(), $baseDirectory); |
283 | 283 | } |
284 | 284 | } catch (Exception $e) { |
285 | 285 | throw new BuildException( |
286 | - 'Problem creating package: ' . $e->getMessage(), |
|
286 | + 'Problem creating package: '.$e->getMessage(), |
|
287 | 287 | $e, |
288 | 288 | $this->getLocation() |
289 | 289 | ); |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | if (!is_null($this->baseDirectory)) { |
316 | 316 | if (!$this->baseDirectory->exists()) { |
317 | 317 | throw new BuildException( |
318 | - "basedir '" . (string) $this->baseDirectory . "' does not exist!", $this->getLocation() |
|
318 | + "basedir '".(string)$this->baseDirectory."' does not exist!", $this->getLocation() |
|
319 | 319 | ); |
320 | 320 | } |
321 | 321 | } |
@@ -332,11 +332,11 @@ discard block |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | if (!$this->key->exists()) { |
335 | - throw new BuildException("key '" . (string) $this->key . "' does not exist!", $this->getLocation()); |
|
335 | + throw new BuildException("key '".(string)$this->key."' does not exist!", $this->getLocation()); |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | if (!$this->key->canRead()) { |
339 | - throw new BuildException("key '" . (string) $this->key . "' cannot be read!", $this->getLocation()); |
|
339 | + throw new BuildException("key '".(string)$this->key."' cannot be read!", $this->getLocation()); |
|
340 | 340 | } |
341 | 341 | } |
342 | 342 | } |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | // Get the details so we can get the public key and write that out |
364 | 364 | // alongside the phar. |
365 | 365 | $details = openssl_pkey_get_details($private); |
366 | - file_put_contents($this->destinationFile . '.pubkey', $details['key']); |
|
366 | + file_put_contents($this->destinationFile.'.pubkey', $details['key']); |
|
367 | 367 | |
368 | 368 | } else { |
369 | 369 | $phar->setSignatureAlgorithm($this->signatureAlgorithm); |
@@ -428,14 +428,14 @@ discard block |
||
428 | 428 | |
429 | 429 | foreach ($this->filesets as $fileset) { |
430 | 430 | $this->log( |
431 | - 'Adding specified files in ' . $fileset->getDir($this->project) . ' to package', |
|
431 | + 'Adding specified files in '.$fileset->getDir($this->project).' to package', |
|
432 | 432 | Project::MSG_VERBOSE |
433 | 433 | ); |
434 | 434 | |
435 | 435 | if (Phar::NONE != $this->compression) { |
436 | 436 | foreach ($fileset as $file) { |
437 | 437 | $localName = substr($file, strlen($baseDirectory) + 1); |
438 | - $this->log($localName . "... ", Project::MSG_VERBOSE); |
|
438 | + $this->log($localName."... ", Project::MSG_VERBOSE); |
|
439 | 439 | $phar->addFile($file, $localName); |
440 | 440 | $phar[$localName]->compress($this->compression); |
441 | 441 | } |