declare strict types in markup scripts

This commit is contained in:
maxpozdeev 2022-08-08 01:21:58 +03:00
parent 0e30339615
commit 4d481d6013
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/*
This file is a part of myTinyTodo.
@ -40,7 +40,7 @@ class MTTCommonmarkWrapper implements MTTMarkdownInterface
$mention->setUrl(\sprintf(get_mttinfo('url'). "?task=%d", $mention->getIdentifier()));
if (!$this->toExternal) {
$mention->data->append('attributes/class', 'mtt-link-to-task');
$mention->data->append('attributes/data-target-id', $attrs['target-id'] = $mention->getIdentifier());
$mention->data->append('attributes/data-target-id', $mention->getIdentifier());
}
return $mention;
},

View file

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/*
This file is a part of myTinyTodo.

View file

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/*
This file is a part of myTinyTodo.