Passed
Push — develop ( f46262...cc5787 )
by Nikolay
07:20 queued 11s
created

SystemDiagnosticForm::findFilesInDir()   A

Complexity

Conditions 6
Paths 4

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 12
rs 9.2222
c 1
b 0
f 0
cc 6
nc 4
nop 2
1
<?php
2
/**
3
 * Copyright © MIKO LLC - All Rights Reserved
4
 * Unauthorized copying of this file, via any medium is strictly prohibited
5
 * Proprietary and confidential
6
 * Written by Alexey Portnov, 8 2020
7
 */
8
9
namespace MikoPBX\AdminCabinet\Forms;
10
11
use Phalcon\Forms\Element\Numeric;
12
use Phalcon\Forms\Element\Select;
13
use Phalcon\Forms\Element\Text;
14
use Phalcon\Forms\Form;
15
16
/**
17
 * Class SystemDiagnosticForm
18
 *
19
 * @package MikoPBX\AdminCabinet\Forms
20
 * @property \MikoPBX\Common\Providers\TranslationProvider translation
21
 */
22
class SystemDiagnosticForm extends Form
23
{
24
25
    public function initialize(): void
26
    {
27
        // Filenames dropdown
28
        $filenames = new Select(
29
            'filenames', [], ['class'    => 'ui fluid selection search dropdown filenames-select']
30
        );
31
32
        $this->add($filenames);
33
34
        $this->add(new Text('filter', ['value' => '']));
35
        $this->add(new Numeric('lines',  ['value' => '500']));
36
37
    }
38
}