Skip to content

Commit 39072b2

Browse files
committed
Whoops!
1 parent 0bd82f1 commit 39072b2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/MakePlugin.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class MakePlugin
2121
*/
2222
public static function makePlugin($sourcePath, $pharOutputLocation, $options)
2323
{
24-
//TODO: Check Plugin
25-
2624
/* Removes Leading '/' */
2725
$sourcePath = rtrim(str_replace("\\", "/", realpath($sourcePath)), "/") . "/";
2826

@@ -61,9 +59,6 @@ public static function makePlugin($sourcePath, $pharOutputLocation, $options)
6159

6260
$phar->startBuffering();
6361

64-
/*$file = NULL;
65-
$path = NULL;*///Reset variables for foreach?
66-
6762
foreach(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($sourcePath)) as $file)
6863
{
6964
$path = ltrim(str_replace(["\\", $sourcePath], ["/", ""], $file), "/");
@@ -72,7 +67,6 @@ public static function makePlugin($sourcePath, $pharOutputLocation, $options)
7267
continue;
7368
}
7469
$phar->addFile($file, $path);
75-
echo("[DevTools] Adding $path\n");
7670
}
7771

7872
if($options * self::MAKEPLUGIN_COMPRESS)
@@ -82,8 +76,6 @@ public static function makePlugin($sourcePath, $pharOutputLocation, $options)
8276

8377
$phar->stopBuffering();
8478

85-
echo("Phar plugin " . $description->getName() . " v" . $description->getVersion() . " has been created on " . $pharPath . "\n");
86-
8779
return true;
8880
}
8981

0 commit comments

Comments
 (0)