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 ()
{
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];

View File

@ -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());

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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