@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getCMSFields() |
50 | 50 | { |
51 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
51 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
52 | 52 | $recipe = $fields->dataFieldByName('RecipeID'); |
53 | 53 | $fields->replaceField('RecipeID', $recipe->performReadonlyTransformation()); |
54 | 54 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @param array $context |
83 | 83 | * @return bool |
84 | 84 | */ |
85 | - public function canCreate($member = null, $context = []) |
|
85 | + public function canCreate($member = null, $context = [ ]) |
|
86 | 86 | { |
87 | 87 | return true; |
88 | 88 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getCMSFields() |
65 | 65 | { |
66 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
66 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
67 | 67 | $recipe = $fields->dataFieldByName('RecipeID'); |
68 | 68 | $fields->replaceField('RecipeID', $recipe->performReadonlyTransformation()); |
69 | 69 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param array $context |
92 | 92 | * @return bool |
93 | 93 | */ |
94 | - public function canCreate($member = null, $context = []) |
|
94 | + public function canCreate($member = null, $context = [ ]) |
|
95 | 95 | { |
96 | 96 | return true; |
97 | 97 | } |