diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-09-02 14:42:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 14:42:51 +0200 |
commit | 5ff5424d8c81c7123d8656a787af2ff85b3dec21 (patch) | |
tree | 322929ee01d892bb3c927e7fe1238369c647f820 /inc/Cache/CacheInstructions.php | |
parent | 0613df3287b82a98b1e97cf86ed9d4c8fbd16f1c (diff) | |
parent | 91560755291852b8302767d454183a7662666f7e (diff) | |
download | dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.tar.gz dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.zip |
Merge pull request #4045 from dokuwiki/autofix
Use Rector to autofix code smell
Diffstat (limited to 'inc/Cache/CacheInstructions.php')
-rw-r--r-- | inc/Cache/CacheInstructions.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/Cache/CacheInstructions.php b/inc/Cache/CacheInstructions.php index acd02abae..8bc72d976 100644 --- a/inc/Cache/CacheInstructions.php +++ b/inc/Cache/CacheInstructions.php @@ -5,9 +5,8 @@ namespace dokuwiki\Cache; /** * Caching of parser instructions */ -class CacheInstructions extends \dokuwiki\Cache\CacheParser +class CacheInstructions extends CacheParser { - /** * @param string $id page id * @param string $file source file for cache @@ -26,7 +25,7 @@ class CacheInstructions extends \dokuwiki\Cache\CacheParser public function retrieveCache($clean = true) { $contents = io_readFile($this->cache, false); - return !empty($contents) ? unserialize($contents) : array(); + return empty($contents) ? [] : unserialize($contents); } /** |