Passed
Push — master ( 2b22d6...008816 )
by Andreas von
43:16
created

Toolbar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 16
c 1
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toOptionArray() 0 17 1
1
<?php
2
3
declare(strict_types=1);
4
5
 /**
6
 * integer_net Magento Module
7
 *
8
 * @category   IntegerNet\ConfigurableWysiwyg\Model\Config\Source
9
 * @package    Toolbar
10
 * @copyright  Copyright (c) 2020 integer_net GmbH (http://www.integer-net.de/)
11
 * @author     Andreas von Studnitz <[email protected]>
12
 */
13
14
namespace IntegerNet\ConfigurableWysiwyg\Model\Config\Source;
15
16
class Toolbar implements \Magento\Framework\Option\ArrayInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Magento\Framework\Option\ArrayInterface has been deprecated: 102.0.1 please use \Magento\Framework\Data\OptionSourceInterface instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

16
class Toolbar implements /** @scrutinizer ignore-deprecated */ \Magento\Framework\Option\ArrayInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
17
{
18
    public function toOptionArray()
19
    {
20
        return [
21
            ['value' => 'undo', 'label' => __('Undo')],
22
            ['value' => 'redo', 'label' => __('Redo')],
23
            ['value' => 'formatselect', 'label' => __('Format Select')],
24
            ['value' => 'bold', 'label' => __('Bold')],
25
            ['value' => 'italic', 'label' => __('Italic')],
26
            ['value' => 'underline', 'label' => __('Underline')],
27
            ['value' => 'alignleft', 'label' => __('Align Left')],
28
            ['value' => 'aligncenter', 'label' => __('Align Center')],
29
            ['value' => 'alignright', 'label' => __('Align Right')],
30
            ['value' => 'bullist', 'label' => __('Bullet List')],
31
            ['value' => 'numlist', 'label' => __('Numbered List')],
32
            ['value' => 'link', 'label' => __('Link')],
33
            ['value' => 'table', 'label' => __('Table')],
34
            ['value' => 'charmap', 'label' => __('Character Map')],
35
        ];
36
    }
37
}
38