| @@ -26,7 +26,7 @@ | ||
| 26 | 26 |      { | 
| 27 | 27 | $fields = parent::getCMSFields(); | 
| 28 | 28 | |
| 29 | -        $source = function(){ | |
| 29 | +        $source = function() { | |
| 30 | 30 | return SilverStripeYouTubeVideo::get()->map()->toArray(); | 
| 31 | 31 | }; | 
| 32 | 32 | |
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | */ | 
| 25 | 25 | public function getCMSFields() | 
| 26 | 26 |      { | 
| 27 | -        $this->beforeUpdateCMSFields(function ($fields) { | |
| 27 | +        $this->beforeUpdateCMSFields(function($fields) { | |
| 28 | 28 | $fields->addFieldToTab( | 
| 29 | 29 | 'Root.Main', | 
| 30 | 30 |                  LinkField::create('BlockLinkID', 'Link') | 
| @@ -67,10 +67,10 @@ | ||
| 67 | 67 | public function init() | 
| 68 | 68 |      { | 
| 69 | 69 | $class = $this->AccordionClass(); | 
| 70 | - Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/jquery-ui.js'); | |
| 70 | + Requirements::javascript(THIRDPARTY_DIR.'/jquery-ui/jquery-ui.js'); | |
| 71 | 71 |          Requirements::customScript(' | 
| 72 | 72 |              $(function() { | 
| 73 | -                $( ".' . $class . '" ).accordion({ | |
| 73 | +                $( ".' . $class.'" ).accordion({ | |
| 74 | 74 | header: ".accord-header", | 
| 75 | 75 | collapsible: true, heightStyle: "content" | 
| 76 | 76 | }); | 
| @@ -72,7 +72,7 @@ | ||
| 72 | 72 | */ | 
| 73 | 73 | public function getCMSFields() | 
| 74 | 74 |      { | 
| 75 | -        $this->beforeUpdateCMSFields(function ($fields) { | |
| 75 | +        $this->beforeUpdateCMSFields(function($fields) { | |
| 76 | 76 | $fields->addFieldToTab( | 
| 77 | 77 | 'Root.Main', | 
| 78 | 78 |                  LinkField::create('BlockLinkID', 'Link'), | 
| @@ -72,7 +72,7 @@ | ||
| 72 | 72 | */ | 
| 73 | 73 | public function getCMSFields() | 
| 74 | 74 |      { | 
| 75 | -        $this->beforeUpdateCMSFields(function ($fields) { | |
| 75 | +        $this->beforeUpdateCMSFields(function($fields) { | |
| 76 | 76 | $fields->addFieldToTab( | 
| 77 | 77 | 'Root.Main', | 
| 78 | 78 |                  LinkField::create('BlockLinkID', 'Link'), | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | /** | 
| 29 | 29 | * @return FieldList | 
| 30 | 30 | */ | 
| 31 | -    public function getCMSFields(){ | |
| 31 | +    public function getCMSFields() { | |
| 32 | 32 | $fields = parent::getCMSFields(); | 
| 33 | 33 | |
| 34 | 34 | $fields->removeByName([ | 
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 |      { | 
| 36 | 36 | $fields = parent::getCMSFields(); | 
| 37 | 37 | |
| 38 | - $self =& $this; | |
| 38 | + $self = & $this; | |
| 39 | 39 | |
| 40 | -        $this->beforeUpdateCMSFields(function ($fields) use ($self) { | |
| 40 | +        $this->beforeUpdateCMSFields(function($fields) use ($self) { | |
| 41 | 41 |              $fields->dataFieldByName('Title') | 
| 42 | 42 |                  ->setTitle('Name'); | 
| 43 | 43 | |