Completed
Push — master ( 0adf57...cd9ffe )
by Julito
10:56
created

TitleAsHtml::getConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 11
nc 1
nop 0
dl 0
loc 27
rs 9.9
c 1
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
5
6
/**
7
 * Toolbar used to allow titles to have an HTML format.
8
 *
9
 * @package Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar
10
 */
11
class TitleAsHtml extends Basic
12
{
13
    /**
14
     * @return mixed
15
     */
16
    public function getConfig()
17
    {
18
        $config['toolbar'] = [
0 ignored issues
show
Comprehensibility Best Practice introduced by
$config was never initialized. Although not strictly required by PHP, it is generally a good practice to add $config = array(); before regardless.
Loading history...
19
            [
20
                'name' => 'clipboard',
21
                'groups' => ['clipboard', 'undo'],
22
                'items' => ['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo'],
23
            ],
24
            [
25
                'name' => 'basicstyles',
26
                'groups' => ['basicstyles', 'cleanup'],
27
                'items' => ['Bold', 'Italic', 'Underline', 'Strike', 'TextColor', 'BGColor'],
28
            ],
29
//            [
30
//                'name' => 'paragraph',
31
//                'groups' => ['list', 'indent', 'blocks', 'align', 'bidi'],
32
//                'items' => ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent'],
33
//            ],
34
            [
35
                'name' => 'links',
36
                'items' => ['Link', 'Unlink', 'Source'],
37
            ],
38
        ];
39
40
        $config['height'] = '100';
41
42
        return $config;
43
    }
44
}
45