phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 17:50:12 +02:00
parent 20f6426d0c
commit 5611cce3b7
8 changed files with 28 additions and 10 deletions

View File

@ -11,10 +11,10 @@ export class Editor {
bind () bind ()
{ {
const editorButtons = document.querySelectorAll('#' + this.id + '-tools .editor-button'), const editorButtons = document.querySelectorAll('#' + this.id + '-tools .editor-button');
editorPreview = this.editor.getElementsByTagName('article')[0], const editorPreview = this.editor.getElementsByTagName('article')[0];
length = editorButtons.length, const length = editorButtons.length;
self = this; const self = this;
this.editorContent = this.editor.getElementsByTagName('textarea')[0]; this.editorContent = this.editor.getElementsByTagName('textarea')[0];

View File

@ -221,6 +221,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
$this->path = $path; $this->path = $path;
} }
/**
* {@inheritdoc}
*/
public function toArray() : array public function toArray() : array
{ {
return [ return [
@ -233,6 +236,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
]; ];
} }
/**
* {@inheritdoc}
*/
public function __toString() public function __toString()
{ {
return (string) \json_encode($this->toArray()); return (string) \json_encode($this->toArray());

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
return ['Navigation' => [ return ['Navigation' => [
'Create' => 'Create', 'Create' => 'Create',
'Editor' => 'Editor', 'Editor' => 'Editor',

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,5 +10,7 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
return ['Navigation' => [ return ['Navigation' => [
]]; ]];

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
return ['Editor' => [ return ['Editor' => [
'Created' => 'Created', 'Created' => 'Created',
'Creator' => 'Creator', 'Creator' => 'Creator',

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */