Completed
Push — master ( 2b11d0...1c115b )
by Nicola
02:41
created

SilverstrapSelectionGroup::FieldHolder()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
/**
4
 * A new SelectionGroup that does not pull in hardcoded javascript or CSS crap.
5
 *
6
 * @package silverstrap
7
 * @subpackage code
8
 */
9
class SilverstrapSelectionGroup extends SelectionGroup
0 ignored issues
show
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...
10
{
11
    /**
12
     * This is just a pristine copy of SelectionGroup::FieldHolder
13
     * without all the Requirements calls.
14
     */
15
    public function FieldHolder($properties = array())
16
    {
17
        $obj = $properties ? $this->customise($properties) : $this;
18
        return $obj->renderWith($this->getTemplates());
19
    }
20
}
21