Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / Command / ListCommand.php
index 2e65895e8326cf5fac6c3d3663af6bdddf19a818..67f4e041e8e494cdf55757bb152e2c9f3486f829 100644 (file)
@@ -178,8 +178,8 @@ HELP
         }
 
         foreach ($result as $label => $items) {
-            $names = array_map([$this, 'formatItemName'], $items);
-            $output->writeln(sprintf('<strong>%s</strong>: %s', $label, implode(', ', $names)));
+            $names = \array_map([$this, 'formatItemName'], $items);
+            $output->writeln(\sprintf('<strong>%s</strong>: %s', $label, \implode(', ', $names)));
         }
     }
 
@@ -201,7 +201,7 @@ HELP
 
         foreach ($result as $label => $items) {
             $output->writeln('');
-            $output->writeln(sprintf('<strong>%s:</strong>', $label));
+            $output->writeln(\sprintf('<strong>%s:</strong>', $label));
 
             $table->setRows([]);
             foreach ($items as $item) {
@@ -225,7 +225,7 @@ HELP
      */
     private function formatItemName($item)
     {
-        return sprintf('<%s>%s</%s>', $item['style'], OutputFormatter::escape($item['name']), $item['style']);
+        return \sprintf('<%s>%s</%s>', $item['style'], OutputFormatter::escape($item['name']), $item['style']);
     }
 
     /**