mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-04 08:28:57 +02:00
PHPStorm refactoring.
This commit is contained in:
+3
-3
@@ -42,18 +42,18 @@ class Compiler
|
||||
/** @var \SplFileInfo $path */
|
||||
foreach ($iterator as $path) {
|
||||
if ($path->isFile()) {
|
||||
$phar->addFromString(str_replace(dirname(__DIR__).'/', '', $path->getPathname()), file_get_contents($path));
|
||||
$phar->addFromString(str_replace(dirname(__DIR__) . '/', '', $path->getPathname()), file_get_contents($path));
|
||||
}
|
||||
}
|
||||
|
||||
$binary = file(__DIR__.'/../bin/mage');
|
||||
$binary = file(__DIR__ . '/../bin/mage');
|
||||
unset($binary[0]);
|
||||
$binary = implode(PHP_EOL, $binary);
|
||||
|
||||
$phar->addFromString('mage', str_replace(
|
||||
'$baseDir = dirname(dirname(__FILE__));',
|
||||
'$baseDir = __DIR__;',
|
||||
$binary
|
||||
$binary
|
||||
));
|
||||
|
||||
$phar->setStub("#!/usr/bin/env php\n<?php Phar::mapPhar('mage.phar'); require 'phar://mage.phar/mage'; __HALT_COMPILER();");
|
||||
|
||||
Reference in New Issue
Block a user