diff vendor/symfony/console/Formatter/OutputFormatterStyleStack.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php	Thu Feb 28 13:21:36 2019 +0000
@@ -36,7 +36,7 @@
      */
     public function reset()
     {
-        $this->styles = array();
+        $this->styles = [];
     }
 
     /**
@@ -66,7 +66,7 @@
 
         foreach (array_reverse($this->styles, true) as $index => $stackedStyle) {
             if ($style->apply('') === $stackedStyle->apply('')) {
-                $this->styles = array_slice($this->styles, 0, $index);
+                $this->styles = \array_slice($this->styles, 0, $index);
 
                 return $stackedStyle;
             }
@@ -86,7 +86,7 @@
             return $this->emptyStyle;
         }
 
-        return $this->styles[count($this->styles) - 1];
+        return $this->styles[\count($this->styles) - 1];
     }
 
     /**