X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FHelper%2FDescriptorHelper.php;h=a77510f64debf631fa59c69b87be0e2da8a49f1f;hp=40e7f0ceed2832e079e2ef67814e13e005451858;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drupal/console-core/src/Helper/DescriptorHelper.php b/vendor/drupal/console-core/src/Helper/DescriptorHelper.php index 40e7f0cee..a77510f64 100644 --- a/vendor/drupal/console-core/src/Helper/DescriptorHelper.php +++ b/vendor/drupal/console-core/src/Helper/DescriptorHelper.php @@ -22,7 +22,7 @@ class DescriptorHelper extends BaseHelper /** * @var DescriptorInterface[] */ - private $descriptors = array(); + private $descriptors = []; /** * Constructor. */ @@ -47,13 +47,13 @@ class DescriptorHelper extends BaseHelper * * @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']));