Mercurial > hg > isophonics-drupal-site
diff vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php Mon Apr 23 09:46:53 2018 +0100 @@ -1,6 +1,6 @@ <?php /* - * This file is part of the PHP_TokenStream package. + * This file is part of php-token-stream. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * @@ -10,22 +10,17 @@ /** * A caching factory for token stream objects. - * - * @author Sebastian Bergmann <sebastian@phpunit.de> - * @copyright Sebastian Bergmann <sebastian@phpunit.de> - * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License - * @link http://github.com/sebastianbergmann/php-token-stream/tree - * @since Class available since Release 1.0.0 */ class PHP_Token_Stream_CachingFactory { /** * @var array */ - protected static $cache = array(); + protected static $cache = []; /** - * @param string $filename + * @param string $filename + * * @return PHP_Token_Stream */ public static function get($filename) @@ -45,7 +40,7 @@ if (is_string($filename)) { unset(self::$cache[$filename]); } else { - self::$cache = array(); + self::$cache = []; } } }