diff --git a/.github/workflows/phpCS.yml b/.github/workflows/phpCS.yml index ade21b8..ec30cc9 100644 --- a/.github/workflows/phpCS.yml +++ b/.github/workflows/phpCS.yml @@ -1,6 +1,6 @@ name: PHP Code Style -on: [ push, workflow_dispatch ] +on: [ push, workflow_dispatch, pull_request ] jobs: phpcs: diff --git a/action.php b/action.php index 60d11db..2f378b8 100644 --- a/action.php +++ b/action.php @@ -1,8 +1,8 @@ @@ -19,6 +19,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + /** * DokuWiki Plugin geotag (Action Component). * @@ -108,7 +109,13 @@ final public function handleMetaheaderOutput(Event $event): void */ final public function insertButton(Event $event, array $param): void { - $event->data [] = ['type' => 'format', 'title' => $this->getLang('toolbar_desc'), 'icon' => '../../plugins/geotag/images/geotag.png', 'open' => '{{geotag>lat:', 'sample' => '52.2345', 'close' => ', lon:7.521, alt: , placename: , country: , region: }}']; + $event->data [] = [ + 'type' => 'format', + 'title' => $this->getLang('toolbar_desc'), + 'icon' => '../../plugins/geotag/images/geotag.png', + 'open' => '{{geotag>lat:', 'sample' => '52.2345', + 'close' => ', lon:7.521, alt: , placename: , country: , region: }}' + ]; } /**