From 5611cce3b77bfbdd7899cc2e8bd917f81cd5a87a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 6 Oct 2019 17:50:12 +0200 Subject: [PATCH] phpcs fixes --- Models/Editor.js | 8 ++++---- Models/EditorDoc.php | 6 ++++++ Theme/Backend/Lang/Navigation.en.lang.php | 4 +++- Theme/Backend/Lang/api.en.lang.php | 4 +++- Theme/Backend/Lang/en.lang.php | 4 +++- Theme/Backend/editor-create.tpl.php | 4 +++- Theme/Backend/editor-list.tpl.php | 4 +++- Theme/Backend/editor-single.tpl.php | 4 +++- 8 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Models/Editor.js b/Models/Editor.js index 21d1efa..7fec348 100644 --- a/Models/Editor.js +++ b/Models/Editor.js @@ -11,10 +11,10 @@ export class Editor { bind () { - const editorButtons = document.querySelectorAll('#' + this.id + '-tools .editor-button'), - editorPreview = this.editor.getElementsByTagName('article')[0], - length = editorButtons.length, - self = this; + const editorButtons = document.querySelectorAll('#' + this.id + '-tools .editor-button'); + const editorPreview = this.editor.getElementsByTagName('article')[0]; + const length = editorButtons.length; + const self = this; this.editorContent = this.editor.getElementsByTagName('textarea')[0]; diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index fb7d3e6..3099d90 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -221,6 +221,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable $this->path = $path; } + /** + * {@inheritdoc} + */ public function toArray() : array { return [ @@ -233,6 +236,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable ]; } + /** + * {@inheritdoc} + */ public function __toString() { return (string) \json_encode($this->toArray()); diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 04b70b1..c225fb1 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'Create' => 'Create', 'Editor' => 'Editor', diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php index 2edd01a..3bac9f8 100644 --- a/Theme/Backend/Lang/api.en.lang.php +++ b/Theme/Backend/Lang/api.en.lang.php @@ -1,4 +1,4 @@ - [ ]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 8760de5..4a51f3d 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,4 +1,4 @@ - [ 'Created' => 'Created', 'Creator' => 'Creator', diff --git a/Theme/Backend/editor-create.tpl.php b/Theme/Backend/editor-create.tpl.php index 90a243c..8868f73 100644 --- a/Theme/Backend/editor-create.tpl.php +++ b/Theme/Backend/editor-create.tpl.php @@ -1,4 +1,4 @@ -