Skip to content
Permalink
Browse files

Merge pull request #5 from helpfulrobot/convert-to-psr-2

Converted to PSR-2
  • Loading branch information...
dhensby committed Nov 25, 2015
2 parents 641573c + 04f94ef commit d47e41dffc80c6ba9d18ccee15e1a3e44b92b199
Showing with 30 additions and 28 deletions.
  1. +30 −28 code/ContentWidget.php
@@ -5,38 +5,40 @@
*
* @package silverstripe-content-widget
*/
class ContentWidget extends Widget {
/**
* @var array
*/
public static $db = array(
"HTML" => "HTMLText"
);
class ContentWidget extends Widget
{
/**
* @var array
*/
public static $db = array(
"HTML" => "HTMLText"
);
/**
* @var string
*/
private static $title = "HTML Content";
/**
* @var string
*/
private static $title = "HTML Content";
/**
* @var string
*/
private static $cmsTitle = "HTML Content";
/**
* @var string
*/
private static $cmsTitle = "HTML Content";
/**
* @var string
*/
private static $description = "Custom HTML content widget.";
/**
* @var string
*/
private static $description = "Custom HTML content widget.";
/**
* @return FieldList
*/
public function getCMSFields() {
$fields = parent::getCMSFields();
/**
* @return FieldList
*/
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->push(TextField::create("Title"));
$fields->push(HtmlEditorField::create("HTML", "Content"));
$fields->push(TextField::create("Title"));
$fields->push(HtmlEditorField::create("HTML", "Content"));
return $fields;
}
return $fields;
}
}

0 comments on commit d47e41d

Please sign in to comment.
You can’t perform that action at this time.