Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / Command / Command.php
similarity index 96%
rename from vendor/psy/psysh/src/Psy/Command/Command.php
rename to vendor/psy/psysh/src/Command/Command.php
index c8aaedeeedcae3a97742db4d5785113940c55578..83e1dcead53c6b0b07bd0f5901c9717fdc97f609 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.
@@ -34,7 +34,7 @@ abstract class Command extends BaseCommand
     public function setApplication(Application $application = null)
     {
         if ($application !== null && !$application instanceof Shell) {
-            throw new \InvalidArgumentException('PsySH Commands require an instance of Psy\Shell.');
+            throw new \InvalidArgumentException('PsySH Commands require an instance of Psy\Shell');
         }
 
         return parent::setApplication($application);
@@ -45,11 +45,11 @@ abstract class Command extends BaseCommand
      */
     public function asText()
     {
-        $messages = array(
+        $messages = [
             '<comment>Usage:</comment>',
             ' ' . $this->getSynopsis(),
             '',
-        );
+        ];
 
         if ($this->getAliases()) {
             $messages[] = $this->aliasesAsText();
@@ -90,7 +90,7 @@ abstract class Command extends BaseCommand
      */
     protected function getHiddenArguments()
     {
-        return array('command');
+        return ['command'];
     }
 
     /**
@@ -112,7 +112,7 @@ abstract class Command extends BaseCommand
      */
     protected function getHiddenOptions()
     {
-        return array('verbose');
+        return ['verbose'];
     }
 
     /**
@@ -133,7 +133,7 @@ abstract class Command extends BaseCommand
     private function argumentsAsText()
     {
         $max = $this->getMaxWidth();
-        $messages = array();
+        $messages = [];
 
         $arguments = $this->getArguments();
         if (!empty($arguments)) {
@@ -164,7 +164,7 @@ abstract class Command extends BaseCommand
     private function optionsAsText()
     {
         $max = $this->getMaxWidth();
-        $messages = array();
+        $messages = [];
 
         $options = $this->getOptions();
         if ($options) {
@@ -260,7 +260,7 @@ abstract class Command extends BaseCommand
         $table = new Table($output);
 
         return $table
-            ->setRows(array())
+            ->setRows([])
             ->setStyle($style);
     }
 
@@ -274,7 +274,7 @@ abstract class Command extends BaseCommand
         $table = $this->getApplication()->getHelperSet()->get('table');
 
         return $table
-            ->setRows(array())
+            ->setRows([])
             ->setLayout(TableHelper::LAYOUT_BORDERLESS)
             ->setHorizontalBorderChar('')
             ->setCrossingChar('');