/** * @param RequirementCollection $collection * @param TableRenderer $notFulfilledTable * @param TableRenderer $helpTable * @param mixed $verbose */ private function checkRequirementsInCollection(RequirementCollection $collection, TableRenderer $notFulfilledTable, TableRenderer $helpTable, $verbose) { /** @var Requirement $requirement */ foreach ($collection as $requirement) { $label = $requirement->getLabel(); if ($requirement->isFulfilled()) { $notFulfilledTable->addRow([$label, '<info>OK!</info>']); continue; } $notFulfilledTable->addRow([$label, $this->getRequirementRequiredMessage($requirement)]); $helpTable->addRow([$label, sprintf('<comment>%s</comment>', $requirement->getHelp())]); } if ($verbose || !$this->fulfilled) { $notFulfilledTable->setLabel($collection->getLabel()); $notFulfilledTable->render(); } }