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

SilverstrapSelectionGroup   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A FieldHolder() 0 5 2
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