From b8e86ae26183634faa4ad2c96a7b729dc605c207 Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Thu, 12 Apr 2012 19:23:20 +1200 Subject: [PATCH] MINOR Add newline to end of files without one --- code/batchactions/CMSBatchActions.php | 2 +- code/controllers/CMSPageAddController.php | 2 +- code/controllers/CMSPageEditController.php | 2 +- code/controllers/CMSPageHistoryController.php | 2 +- code/controllers/CMSPageSettingsController.php | 2 +- code/controllers/CMSPagesController.php | 2 +- code/controllers/CMSSiteTreeFilter.php | 2 +- code/forms/FolderUnusedAssetsField.php | 2 +- code/forms/SiteTreeURLSegmentField.php | 3 ++- code/model/SiteTreeDecorator.php | 2 +- code/model/SiteTreeExtension.php | 2 +- code/search/ContentControllerSearchExtension.php | 2 +- tasks/FilesystemSyncTask.php | 2 +- tasks/MigrateSiteTreeLinkingTask.php | 2 +- tests/controller/CMSPageHistoryControllerTest.php | 2 +- tests/controller/CMSSiteTreeFilterTest.php | 2 +- tests/controller/ContentControllerPermissionsTest.php | 2 +- tests/controller/ContentControllerSearchExtensionTest.php | 2 +- tests/controller/ContentControllerTest.php | 2 +- tests/controller/ModelAsControllerTest.php | 2 +- tests/controller/RootURLControllerTest.php | 2 +- tests/controller/SilverStripeNavigatorTest.php | 2 +- tests/model/RedirectorPageTest.php | 2 +- tests/model/SiteTreeTest.php | 2 +- tests/reports/ReportTest.php | 2 +- tests/reports/SideReportTest.php | 2 +- tests/search/CMSMainSearchFormTest.php | 2 +- tests/staticpublisher/FilesystemPublisherTest.php | 2 +- tests/tasks/MigrateSiteTreeLinkingTaskTest.php | 2 +- tests/widgets/WidgetControllerTestPage.php | 2 +- 30 files changed, 31 insertions(+), 30 deletions(-) diff --git a/code/batchactions/CMSBatchActions.php b/code/batchactions/CMSBatchActions.php index 9c323406..cbc09a31 100644 --- a/code/batchactions/CMSBatchActions.php +++ b/code/batchactions/CMSBatchActions.php @@ -129,4 +129,4 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction { function applicablePages($ids) { return $this->applicablePagesHelper($ids, 'canDelete', false, true); } -} \ No newline at end of file +} diff --git a/code/controllers/CMSPageAddController.php b/code/controllers/CMSPageAddController.php index 2caa06a0..832861f1 100644 --- a/code/controllers/CMSPageAddController.php +++ b/code/controllers/CMSPageAddController.php @@ -141,4 +141,4 @@ class CMSPageAddController extends CMSPageEditController { return $this->redirect(Controller::join_links(singleton('CMSPageEditController')->Link('show'), $record->ID)); } -} \ No newline at end of file +} diff --git a/code/controllers/CMSPageEditController.php b/code/controllers/CMSPageEditController.php index 24657a4e..5acb5650 100644 --- a/code/controllers/CMSPageEditController.php +++ b/code/controllers/CMSPageEditController.php @@ -16,4 +16,4 @@ class CMSPageEditController extends CMSMain { $crumbs->shift(); return $crumbs; } -} \ No newline at end of file +} diff --git a/code/controllers/CMSPageHistoryController.php b/code/controllers/CMSPageHistoryController.php index aaaafe1c..3994da77 100644 --- a/code/controllers/CMSPageHistoryController.php +++ b/code/controllers/CMSPageHistoryController.php @@ -376,4 +376,4 @@ class CMSPageHistoryController extends CMSMain { $crumbs->shift(); return $crumbs; } -} \ No newline at end of file +} diff --git a/code/controllers/CMSPageSettingsController.php b/code/controllers/CMSPageSettingsController.php index b4a0a71b..5a9c82b1 100644 --- a/code/controllers/CMSPageSettingsController.php +++ b/code/controllers/CMSPageSettingsController.php @@ -22,4 +22,4 @@ class CMSPageSettingsController extends CMSMain { $crumbs->shift(); return $crumbs; } -} \ No newline at end of file +} diff --git a/code/controllers/CMSPagesController.php b/code/controllers/CMSPagesController.php index 32957e09..7a1d0a37 100644 --- a/code/controllers/CMSPagesController.php +++ b/code/controllers/CMSPagesController.php @@ -46,4 +46,4 @@ class CMSPagesController extends CMSMain { public function currentPageID() { return false; } -} \ No newline at end of file +} diff --git a/code/controllers/CMSSiteTreeFilter.php b/code/controllers/CMSSiteTreeFilter.php index 9df361e9..80d79905 100644 --- a/code/controllers/CMSSiteTreeFilter.php +++ b/code/controllers/CMSSiteTreeFilter.php @@ -215,4 +215,4 @@ class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter { return $ids; } -} \ No newline at end of file +} diff --git a/code/forms/FolderUnusedAssetsField.php b/code/forms/FolderUnusedAssetsField.php index f9b0f05a..35ff707b 100644 --- a/code/forms/FolderUnusedAssetsField.php +++ b/code/forms/FolderUnusedAssetsField.php @@ -49,4 +49,4 @@ class Folder_UnusedAssetsField extends CompositeField { $field = new GridField('AssetList', false, $files); return $field; } -} \ No newline at end of file +} diff --git a/code/forms/SiteTreeURLSegmentField.php b/code/forms/SiteTreeURLSegmentField.php index 504dc68c..6fcac58c 100644 --- a/code/forms/SiteTreeURLSegmentField.php +++ b/code/forms/SiteTreeURLSegmentField.php @@ -78,4 +78,5 @@ class SiteTreeURLSegmentField extends TextField { function Type() { return 'text sitetreeurlsegment'; } -} \ No newline at end of file + +} diff --git a/code/model/SiteTreeDecorator.php b/code/model/SiteTreeDecorator.php index 3c5876bb..18c6f3e2 100644 --- a/code/model/SiteTreeDecorator.php +++ b/code/model/SiteTreeDecorator.php @@ -11,4 +11,4 @@ abstract class SiteTreeDecorator extends SiteTreeExtension { parent::__construct(); } -} \ No newline at end of file +} diff --git a/code/model/SiteTreeExtension.php b/code/model/SiteTreeExtension.php index a587626d..cb58074b 100644 --- a/code/model/SiteTreeExtension.php +++ b/code/model/SiteTreeExtension.php @@ -26,4 +26,4 @@ abstract class SiteTreeExtension extends DataExtension { } -} \ No newline at end of file +} diff --git a/code/search/ContentControllerSearchExtension.php b/code/search/ContentControllerSearchExtension.php index 7251ab72..4d63e80d 100644 --- a/code/search/ContentControllerSearchExtension.php +++ b/code/search/ContentControllerSearchExtension.php @@ -47,4 +47,4 @@ class ContentControllerSearchExtension extends Extension { ); return $this->owner->customise($data)->renderWith(array('Page_results', 'Page')); } -} \ No newline at end of file +} diff --git a/tasks/FilesystemSyncTask.php b/tasks/FilesystemSyncTask.php index 3f4b86c5..da3e4f70 100644 --- a/tasks/FilesystemSyncTask.php +++ b/tasks/FilesystemSyncTask.php @@ -22,4 +22,4 @@ class FilesystemSyncTask extends BuildTask { echo Filesystem::sync($folderID, !($request->getVar('skipSyncLinkTracking'))) . "\n"; } -} \ No newline at end of file +} diff --git a/tasks/MigrateSiteTreeLinkingTask.php b/tasks/MigrateSiteTreeLinkingTask.php index 5e43170a..ea7f17d6 100644 --- a/tasks/MigrateSiteTreeLinkingTask.php +++ b/tasks/MigrateSiteTreeLinkingTask.php @@ -44,4 +44,4 @@ class MigrateSiteTreeLinkingTask extends BuildTask { echo "Rewrote $links link(s) on $pages page(s) to use shortcodes.\n"; } -} \ No newline at end of file +} diff --git a/tests/controller/CMSPageHistoryControllerTest.php b/tests/controller/CMSPageHistoryControllerTest.php index 10b38cbf..8f0cc95b 100755 --- a/tests/controller/CMSPageHistoryControllerTest.php +++ b/tests/controller/CMSPageHistoryControllerTest.php @@ -142,4 +142,4 @@ class CMSPageHistoryControllerTest extends FunctionalTest { $this->assertThat($checkbox[0], $this->logicalNot($this->isNull())); $this->assertEquals('checked', (string) $checkbox[0]->attributes()->checked); } -} \ No newline at end of file +} diff --git a/tests/controller/CMSSiteTreeFilterTest.php b/tests/controller/CMSSiteTreeFilterTest.php index 73bdaefd..64547d5b 100644 --- a/tests/controller/CMSSiteTreeFilterTest.php +++ b/tests/controller/CMSSiteTreeFilterTest.php @@ -84,4 +84,4 @@ class CMSSiteTreeFilterTest extends SapphireTest { $this->assertTrue($f->isPageIncluded($deletedPage)); } -} \ No newline at end of file +} diff --git a/tests/controller/ContentControllerPermissionsTest.php b/tests/controller/ContentControllerPermissionsTest.php index be51646b..3d8edc21 100644 --- a/tests/controller/ContentControllerPermissionsTest.php +++ b/tests/controller/ContentControllerPermissionsTest.php @@ -33,4 +33,4 @@ class ContentControllerPermissionsTest extends FunctionalTest { } -} \ No newline at end of file +} diff --git a/tests/controller/ContentControllerSearchExtensionTest.php b/tests/controller/ContentControllerSearchExtensionTest.php index d89a55e6..bc89f40b 100644 --- a/tests/controller/ContentControllerSearchExtensionTest.php +++ b/tests/controller/ContentControllerSearchExtensionTest.php @@ -14,4 +14,4 @@ class ContentControllerSearchExtensionTest extends SapphireTest { if (get_class($form) == 'SearchForm') $this->assertEquals(array('File'), $form->getClassesToSearch()); } -} \ No newline at end of file +} diff --git a/tests/controller/ContentControllerTest.php b/tests/controller/ContentControllerTest.php index a9b237f7..2db39bd9 100644 --- a/tests/controller/ContentControllerTest.php +++ b/tests/controller/ContentControllerTest.php @@ -141,4 +141,4 @@ class ContentControllerTest_Page_Controller extends Page_Controller { return $this->index(); } -} \ No newline at end of file +} diff --git a/tests/controller/ModelAsControllerTest.php b/tests/controller/ModelAsControllerTest.php index 0260dd28..8ffd9ac9 100644 --- a/tests/controller/ModelAsControllerTest.php +++ b/tests/controller/ModelAsControllerTest.php @@ -234,4 +234,4 @@ class ModelAsControllerTest extends FunctionalTest { $this->assertEquals(false, $response ); } -} \ No newline at end of file +} diff --git a/tests/controller/RootURLControllerTest.php b/tests/controller/RootURLControllerTest.php index 13555459..de169983 100644 --- a/tests/controller/RootURLControllerTest.php +++ b/tests/controller/RootURLControllerTest.php @@ -15,4 +15,4 @@ class RootURLControllerTest extends SapphireTest { $this->assertEquals('home', RootURLController::get_homepage_link()); } -} \ No newline at end of file +} diff --git a/tests/controller/SilverStripeNavigatorTest.php b/tests/controller/SilverStripeNavigatorTest.php index 69cdc69f..a89e4ce9 100644 --- a/tests/controller/SilverStripeNavigatorTest.php +++ b/tests/controller/SilverStripeNavigatorTest.php @@ -51,4 +51,4 @@ class SilverStripeNavigatorTest_ProtectedTestItem extends SilverStripeNavigatorI if(!$member) $member = Member::currentUser(); return Permission::checkMember($member, 'ADMIN'); } -} \ No newline at end of file +} diff --git a/tests/model/RedirectorPageTest.php b/tests/model/RedirectorPageTest.php index bcb8d4ca..faa6be2f 100644 --- a/tests/model/RedirectorPageTest.php +++ b/tests/model/RedirectorPageTest.php @@ -50,4 +50,4 @@ class RedirectorPageTest extends FunctionalTest { $page->write(); $this->assertEquals($page->ExternalURL, 'http://google.com', 'onBeforeWrite will not double prefix if written again!'); } -} \ No newline at end of file +} diff --git a/tests/model/SiteTreeTest.php b/tests/model/SiteTreeTest.php index abc65192..6c51536f 100644 --- a/tests/model/SiteTreeTest.php +++ b/tests/model/SiteTreeTest.php @@ -945,4 +945,4 @@ class SiteTreeTest_StageStatusInherit extends SiteTree implements TestOnly { $flags['inherited-class'] = "InheritedTitle"; return $flags; } -} \ No newline at end of file +} diff --git a/tests/reports/ReportTest.php b/tests/reports/ReportTest.php index c668dc66..ea1435b2 100644 --- a/tests/reports/ReportTest.php +++ b/tests/reports/ReportTest.php @@ -82,4 +82,4 @@ class ReportTest_FakeTest2 extends SS_Report implements TestOnly { function sort() { return 98; } -} \ No newline at end of file +} diff --git a/tests/reports/SideReportTest.php b/tests/reports/SideReportTest.php index b457a970..5f02a9e3 100644 --- a/tests/reports/SideReportTest.php +++ b/tests/reports/SideReportTest.php @@ -39,4 +39,4 @@ class SideReportTest extends SapphireTest { SS_DateTime::clear_mock_now(); } -} \ No newline at end of file +} diff --git a/tests/search/CMSMainSearchFormTest.php b/tests/search/CMSMainSearchFormTest.php index fb917407..51fbd204 100644 --- a/tests/search/CMSMainSearchFormTest.php +++ b/tests/search/CMSMainSearchFormTest.php @@ -32,4 +32,4 @@ class CMSMainSearchFormTest extends FunctionalTest { } return $titles; } -} \ No newline at end of file +} diff --git a/tests/staticpublisher/FilesystemPublisherTest.php b/tests/staticpublisher/FilesystemPublisherTest.php index 45949af1..9c4ed779 100644 --- a/tests/staticpublisher/FilesystemPublisherTest.php +++ b/tests/staticpublisher/FilesystemPublisherTest.php @@ -157,4 +157,4 @@ class FilesystemPublisherTest extends SapphireTest { } -} \ No newline at end of file +} diff --git a/tests/tasks/MigrateSiteTreeLinkingTaskTest.php b/tests/tasks/MigrateSiteTreeLinkingTaskTest.php index 370e78be..d27967f7 100644 --- a/tests/tasks/MigrateSiteTreeLinkingTaskTest.php +++ b/tests/tasks/MigrateSiteTreeLinkingTaskTest.php @@ -77,4 +77,4 @@ class MigrateSiteTreeLinkingTaskTest extends SapphireTest { ); } -} \ No newline at end of file +} diff --git a/tests/widgets/WidgetControllerTestPage.php b/tests/widgets/WidgetControllerTestPage.php index b72ef07f..f8821ee7 100644 --- a/tests/widgets/WidgetControllerTestPage.php +++ b/tests/widgets/WidgetControllerTestPage.php @@ -24,4 +24,4 @@ class WidgetControllerTestPage_Controller extends Page_Controller implements Tes return new SSViewer($templates); } -} \ No newline at end of file +}