Skip to content

Commit

Permalink
tiny coverage ignore for external autoid plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 22, 2019
1 parent 28323bb commit e20d2fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/Lapse.php
Expand Up @@ -154,10 +154,10 @@ public function keyFromObject($key): string
$modified = '';
// lookup modified zero-cost...
if ($this->option('autoid') && $key->autoid()->isNotEmpty()) {
// @CoverageIgnoreStart
// @codeCoverageIgnoreStart
$autoid = autoid()->filterBy('autoid', $key->autoid())->first();
$modified = $autoid && is_array($autoid) ? \Kirby\Toolkit\A::get($autoid, 'modified') : $key->modified();
// @CoverageIgnoreEnd
// @codeCoverageIgnoreEnd
} else {
// ... or check file on disk now
$modified = $key->modified();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-lapse",
"type": "kirby-plugin",
"version": "2.0.0",
"version": "2.0.1",
"description": "Cache any data until set expiration time",
"license": "MIT",
"authors": [
Expand Down

0 comments on commit e20d2fb

Please sign in to comment.