@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function getCMSFields() |
| 57 | 57 | { |
| 58 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
| 58 | + $this->beforeUpdateCMSFields(function($fields) { |
|
| 59 | 59 | $fields->removeByName(array( |
| 60 | 60 | 'ElementFeaturesID', |
| 61 | 61 | 'Sort', |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function testGetSummary() |
| 41 | 41 | { |
| 42 | 42 | $object = $this->objFromFixture(ElementFeatures::class, 'one'); |
| 43 | - $result = $object->Features()->count() . ' feature'; |
|
| 43 | + $result = $object->Features()->count().' feature'; |
|
| 44 | 44 | $this->assertEquals($object->getSummary(), $result); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | $labels = parent::fieldLabels($includerelations); |
| 62 | 62 | |
| 63 | 63 | $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Description'); |
| 64 | - $labels['Alternate'] = _t(__CLASS__ . '.AlternateLabel', 'Alternate'); |
|
| 65 | - $labels['Features'] = _t(__CLASS__ . '.FeaturesLabel', 'Features'); |
|
| 64 | + $labels['Alternate'] = _t(__CLASS__.'.AlternateLabel', 'Alternate'); |
|
| 65 | + $labels['Features'] = _t(__CLASS__.'.FeaturesLabel', 'Features'); |
|
| 66 | 66 | |
| 67 | 67 | return $labels; |
| 68 | 68 | } |
@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function getCMSFields() |
| 74 | 74 | { |
| 75 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 75 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 76 | 76 | $fields->dataFieldByName('Content') |
| 77 | 77 | ->setRows(8); |
| 78 | 78 | $fields->dataFieldByName('Alternate') |
| 79 | 79 | ->setDescription(_t( |
| 80 | - __CLASS__ . '.AlternateDescription', |
|
| 80 | + __CLASS__.'.AlternateDescription', |
|
| 81 | 81 | 'Alternate image and text alignment' |
| 82 | 82 | )); |
| 83 | 83 | |
@@ -116,9 +116,9 @@ discard block |
||
| 116 | 116 | { |
| 117 | 117 | $count = $this->Features()->count(); |
| 118 | 118 | $label = _t( |
| 119 | - FeatureObject::class . '.PLURALS', |
|
| 119 | + FeatureObject::class.'.PLURALS', |
|
| 120 | 120 | 'A Feature|{count} Features', |
| 121 | - [ 'count' => $count ] |
|
| 121 | + ['count' => $count] |
|
| 122 | 122 | ); |
| 123 | 123 | return DBField::create_field('HTMLText', $label)->Summary(20); |
| 124 | 124 | } |