Test Setup Failed
Push — master ( 6d6991...a81a2e )
by Gabriel
02:14
created

Nip_Form_Model::getDataFromModel()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
ccs 0
cts 7
cp 0
rs 9.9
cc 4
nc 4
nop 0
crap 20
1
<?php
2
/**
3
 * Class Nip_Form_Model
4
 */
5
class Nip_Form_Model extends Nip_Form
0 ignored issues
show
Deprecated Code introduced by
The class Nip_Form has been deprecated with message: Use Nip\Form\Form

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

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

Loading history...
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
{
7
    use \Nip\Form\Traits\HasModelTrait;
8
}
9