@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getType() |
85 | 85 | { |
86 | - return _t(__CLASS__ . '.BlockType', 'Blog Posts'); |
|
86 | + return _t(__CLASS__.'.BlockType', 'Blog Posts'); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function getCMSFields() |
93 | 93 | { |
94 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
94 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
95 | 95 | $fields->dataFieldByName('Content') |
96 | 96 | ->setRows(8); |
97 | 97 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'Limit' |
106 | 106 | ); |
107 | 107 | |
108 | - $dataSource = function ($val) { |
|
108 | + $dataSource = function($val) { |
|
109 | 109 | if ($val) { |
110 | 110 | return Blog::get()->byID($val)->Categories()->map('ID', 'Title'); |
111 | 111 | } |