/** * @param FixtureData $f * @param string $path * @param bool $newLine * * @return int */ private function removeFileItem(FixtureData $f, $path, $newLine = false) { $this->ioVerbose(function (StyleInterface $io) use($path, $newLine) { $io->comment(sprintf('Removing "%s"', $path), $newLine); }); if (false === @unlink($path)) { $this->io()->error(sprintf('Could not remove "%s"', $path)); return 1; } $f->setEnabled(false); return 2; }