/**
* @var DescriptorInterface[]
*/
- private $descriptors = array();
+ private $descriptors = [];
/**
* Constructor.
*/
*
* @throws \InvalidArgumentException when the given format is not supported
*/
- public function describe(OutputInterface $output, $object, array $options = array())
+ public function describe(OutputInterface $output, $object, array $options = [])
{
$options = array_merge(
- array(
+ [
'raw_text' => false,
'format' => 'txt',
- ), $options
+ ], $options
);
if (!isset($this->descriptors[$options['format']])) {
throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));