Completed
Push — master ( c5d644...a435b5 )
by Guillaume
02:45
created

TestCommand::treatment()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: DIEU
5
 * Date: 07/02/2017
6
 * Time: 00:40
7
 */
8
9
namespace Starkerxp\StructureBundle\Command;
10
11
use Starkerxp\LeadBundle\Form\Type\LeadType;
12
13
//I'm includng the yml dumper. Then :
14
15
class TestCommand extends LockCommand
16
{
17
18
    public function treatment()
19
    {
20
21
22
23
24
        $r = $this->getContainer()->get('form.registry');
25
            $r = $r->getType("");
26
        dump($r);
0 ignored issues
show
Bug introduced by
The call to dump() misses a required argument $valid.

This check looks for function calls that miss required arguments.

Loading history...
27
        //exit;
28
29
        //$form = $this->getContainer()->get('form.factory')->create(LeadType::class, null, ['formId' => 1]);
0 ignored issues
show
Unused Code Comprehensibility introduced by
65% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
30
31
    }
32
33
    protected function configure()
34
    {
35
        $this->setName('test');
36
    }
37
38
39
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
40