protected function getProjectIdFromCommandLine($commandLine) { if (preg_match('/\\W(\\-\\-project|\\-p|get) ?=? ?[\'"]?([0-9a-z]+)[\'"]?/', $commandLine, $matches)) { return $matches[2]; } return false; }