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 dbc89e4 commit 28323bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/Lapse.php
Expand Up @@ -154,8 +154,10 @@ public function keyFromObject($key): string
$modified = '';
// lookup modified zero-cost...
if ($this->option('autoid') && $key->autoid()->isNotEmpty()) {
// @CoverageIgnoreStart
$autoid = autoid()->filterBy('autoid', $key->autoid())->first();
$modified = $autoid['modified'];
$modified = $autoid && is_array($autoid) ? \Kirby\Toolkit\A::get($autoid, 'modified') : $key->modified();
// @CoverageIgnoreEnd
} else {
// ... or check file on disk now
$modified = $key->modified();
Expand Down

0 comments on commit 28323bb

Please sign in to comment.