Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / Command / HelpCommand.php
similarity index 92%
rename from vendor/psy/psysh/src/Psy/Command/HelpCommand.php
rename to vendor/psy/psysh/src/Command/HelpCommand.php
index fd32ddefa694d8749589b3676db8991277362e39..a50f2562451ef51fb9f61a8abd42cb6a0fa85648 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * This file is part of Psy Shell.
  *
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -32,10 +32,10 @@ class HelpCommand extends Command
     {
         $this
             ->setName('help')
-            ->setAliases(array('?'))
-            ->setDefinition(array(
-                new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name', null),
-            ))
+            ->setAliases(['?'])
+            ->setDefinition([
+                new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name.', null),
+            ])
             ->setDescription('Show a list of commands. Type `help [foo]` for information about [foo].')
             ->setHelp('My. How meta.');
     }
@@ -79,11 +79,11 @@ class HelpCommand extends Command
                     $aliases = '';
                 }
 
-                $table->addRow(array(
+                $table->addRow([
                     sprintf('<info>%s</info>', $name),
                     $command->getDescription(),
                     $aliases,
-                ));
+                ]);
             }
 
             $output->startPaging();