@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * @param $form |
| 21 | 21 | */ |
| 22 | - public function updateCollectionForm(Form &$form) |
|
| 22 | + public function updateCollectionForm(Form & $form) |
|
| 23 | 23 | { |
| 24 | 24 | $fields = $form->Fields(); |
| 25 | 25 | //$fields->dataFieldByName('Categories__ID') |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function updateCollectionItems(&$collection) |
| 33 | 33 | { |
| 34 | - $collection = $collection->filterByCallback(function ($item) { |
|
| 34 | + $collection = $collection->filterByCallback(function($item) { |
|
| 35 | 35 | return ( |
| 36 | 36 | $item->PostDate <= DBDatetime::now() && |
| 37 | 37 | $item->EndPostDate >= DBDatetime::now() |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | $fields = parent::getCMSFields(); |
| 69 | 69 | |
| 70 | 70 | $app = new UploadField('Application', 'Application Form'); |
| 71 | - $app->allowedExtensions = array('pdf','PDF'); |
|
| 71 | + $app->allowedExtensions = array('pdf', 'PDF'); |
|
| 72 | 72 | $fields->addFieldToTab('Root.ApplicationFile', $app); |
| 73 | 73 | |
| 74 | 74 | $fields->addFieldsToTab('Root.Configuration', array( |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | public function getName() |
| 96 | 96 | { |
| 97 | 97 | if ($this->FirstName) { |
| 98 | - return $this->FirstName . ' ' . $this->LastName; |
|
| 98 | + return $this->FirstName.' '.$this->LastName; |
|
| 99 | 99 | } else { |
| 100 | 100 | return 'No Name'; |
| 101 | 101 | } |