From 9bd7ce265fffda9759427fbada7c0443de5f6a48 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Tue, 25 Aug 2020 03:42:14 +0300 Subject: [PATCH] Drop debugging statements and fix CS --- src/Restarter.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Restarter.php b/src/Restarter.php index 7960e4a..ec74fb0 100644 --- a/src/Restarter.php +++ b/src/Restarter.php @@ -11,8 +11,11 @@ protected function restart($command) { assert(null !== $this->tmpIni); $contents = file_get_contents($this->tmpIni); - $contents = preg_replace('/^auto_prepend_file="' . preg_quote(__DIR__ . '/prepend.php', '/') . '"/m', '', $contents, -1, $count); - var_dump($count); + $contents = preg_replace( + '/^auto_prepend_file="' . preg_quote(__DIR__ . '/prepend.php', '/') . '"/m', + '', + $contents + ); file_put_contents($this->tmpIni, $contents); parent::restart($command); }