@@ -39,14 +39,14 @@ discard block |
||
39 | 39 | if ($object->canCreate(Security::getCurrentUser())) { |
40 | 40 | |
41 | 41 | $form = $this->ManageableDataObjectForm(); |
42 | - if($object->config()->get('add_form_cancel_button')){ |
|
42 | + if ($object->config()->get('add_form_cancel_button')) { |
|
43 | 43 | $form->Actions()->push(new CancelFormAction($this->owner->Link(), 'Cancel')); |
44 | 44 | } |
45 | 45 | |
46 | 46 | return $this->owner->customise([ |
47 | 47 | 'Title' => ($this->owner->config()->get('add_item_title')) |
48 | 48 | ? $this->owner->config()->get('add_item_title') |
49 | - : 'Add new ' . $object->singular_name(), |
|
49 | + : 'Add new '.$object->singular_name(), |
|
50 | 50 | 'ManageableDataObjectForm' => $form, |
51 | 51 | ]); |
52 | 52 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $form = $this->ManageableDataObjectForm($item); |
72 | 72 | |
73 | 73 | return $this->owner->customise([ |
74 | - 'Title' => 'Edit ' . $item->singular_name(), |
|
74 | + 'Title' => 'Edit '.$item->singular_name(), |
|
75 | 75 | 'ManageableDataObjectForm' => $form, |
76 | 76 | 'Item' => $item, |
77 | 77 | ]); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $this->assertEquals(200, $response->getStatusCode()); |
83 | 83 | $this->logOut(); |
84 | 84 | |
85 | - $response2 = $this->get('/SampleManageableObjectPageController/edit/' . 0); |
|
85 | + $response2 = $this->get('/SampleManageableObjectPageController/edit/'.0); |
|
86 | 86 | $this->assertEquals(404, $response2->getStatusCode()); |
87 | 87 | } |
88 | 88 |