Skip to content

Commit

Permalink
Fix composer script handler to remove now unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
falvarez committed Jul 28, 2016
1 parent b798889 commit e43d161
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace Bitban\PhpCodeQualityTools\Composer;

use Composer\Script\Event;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process;

Expand All @@ -20,7 +18,7 @@ class ScriptHandler
*/
public static function checkHooks(Event $event)
{
// bin/php-cqtools hooks:check <sourcePath> <destinationPath> <projectPath>
// bin/php-cqtools hooks:check

$options = self::getOptions($event);

Expand All @@ -36,7 +34,7 @@ public static function checkHooks(Event $event)
$console .= ' --ansi';
}

$command = join(' ', [$console, $cmd, $projectPath, '--skip-ok']);
$command = join(' ', [$console, $cmd, '--skip-ok']);
$process = new Process($php . ($phpArgs ? ' ' . $phpArgs : '') . ' ' . $command, null, null, null, $timeout);
$process->run(function ($type, $buffer) use ($event) {
$event->getIO()->write($buffer, false);
Expand Down

0 comments on commit e43d161

Please sign in to comment.