#!/usr/bin/env php str_starts_with($arg, '--config=') || str_starts_with($arg, '--c')); // Config option is not set, so use default rector config if (!$hasConfigArg) { $args[] = '--config="'.__DIR__.'/../rector.php'.'"'; } // Build the final command $command = escapeshellcmd($target) . ' ' . implode(' ', $args); // Run the command and passthrough output passthru($command, $exitCode); exit($exitCode);