Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console-core / src / Helper / DescriptorHelper.php
index 40e7f0ceed2832e079e2ef67814e13e005451858..a77510f64debf631fa59c69b87be0e2da8a49f1f 100644 (file)
@@ -22,7 +22,7 @@ class DescriptorHelper extends BaseHelper
     /**
      * @var DescriptorInterface[]
      */
     /**
      * @var DescriptorInterface[]
      */
-    private $descriptors = array();
+    private $descriptors = [];
     /**
      * Constructor.
      */
     /**
      * Constructor.
      */
@@ -47,13 +47,13 @@ class DescriptorHelper extends BaseHelper
      *
      * @throws \InvalidArgumentException when the given format is not supported
      */
      *
      * @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(
     {
         $options = array_merge(
-            array(
+            [
             'raw_text' => false,
             'format' => 'txt',
             'raw_text' => false,
             'format' => 'txt',
-            ), $options
+            ], $options
         );
         if (!isset($this->descriptors[$options['format']])) {
             throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
         );
         if (!isset($this->descriptors[$options['format']])) {
             throw new \InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));