Skip to content

Commit

Permalink
MINOR Add newline to end of files without one
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwelsh authored and halkyon committed Apr 14, 2012
1 parent dccde5f commit b8e86ae
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion code/batchactions/CMSBatchActions.php
Expand Up @@ -129,4 +129,4 @@ function run(SS_List $pages) {
function applicablePages($ids) {
return $this->applicablePagesHelper($ids, 'canDelete', false, true);
}
}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSPageAddController.php
Expand Up @@ -141,4 +141,4 @@ public function doAdd($data, $form) {
return $this->redirect(Controller::join_links(singleton('CMSPageEditController')->Link('show'), $record->ID));
}

}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSPageEditController.php
Expand Up @@ -16,4 +16,4 @@ public function Breadcrumbs($unlinked = false) {
$crumbs->shift();
return $crumbs;
}
}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSPageHistoryController.php
Expand Up @@ -376,4 +376,4 @@ public function Breadcrumbs($unlinked = false) {
$crumbs->shift();
return $crumbs;
}
}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSPageSettingsController.php
Expand Up @@ -22,4 +22,4 @@ public function Breadcrumbs($unlinked = false) {
$crumbs->shift();
return $crumbs;
}
}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSPagesController.php
Expand Up @@ -46,4 +46,4 @@ function AddLink() {
public function currentPageID() {
return false;
}
}
}
2 changes: 1 addition & 1 deletion code/controllers/CMSSiteTreeFilter.php
Expand Up @@ -215,4 +215,4 @@ function pagesIncluded() {

return $ids;
}
}
}
2 changes: 1 addition & 1 deletion code/forms/FolderUnusedAssetsField.php
Expand Up @@ -49,4 +49,4 @@ protected function getAssetList() {
$field = new GridField('AssetList', false, $files);
return $field;
}
}
}
3 changes: 2 additions & 1 deletion code/forms/SiteTreeURLSegmentField.php
Expand Up @@ -78,4 +78,5 @@ function getURLPrefix(){
function Type() {
return 'text sitetreeurlsegment';
}
}

}
2 changes: 1 addition & 1 deletion code/model/SiteTreeDecorator.php
Expand Up @@ -11,4 +11,4 @@ public function __construct() {
parent::__construct();
}

}
}
2 changes: 1 addition & 1 deletion code/model/SiteTreeExtension.php
Expand Up @@ -26,4 +26,4 @@ function canPublish($member) {

}

}
}
2 changes: 1 addition & 1 deletion code/search/ContentControllerSearchExtension.php
Expand Up @@ -47,4 +47,4 @@ function results($data, $form, $request) {
);
return $this->owner->customise($data)->renderWith(array('Page_results', 'Page'));
}
}
}
2 changes: 1 addition & 1 deletion tasks/FilesystemSyncTask.php
Expand Up @@ -22,4 +22,4 @@ function run($request) {
echo Filesystem::sync($folderID, !($request->getVar('skipSyncLinkTracking'))) . "\n";
}

}
}
2 changes: 1 addition & 1 deletion tasks/MigrateSiteTreeLinkingTask.php
Expand Up @@ -44,4 +44,4 @@ public function run($request) {
echo "Rewrote $links link(s) on $pages page(s) to use shortcodes.\n";
}

}
}
2 changes: 1 addition & 1 deletion tests/controller/CMSPageHistoryControllerTest.php
Expand Up @@ -142,4 +142,4 @@ function testVersionsFormSelectsUnpublishedCheckbox() {
$this->assertThat($checkbox[0], $this->logicalNot($this->isNull()));
$this->assertEquals('checked', (string) $checkbox[0]->attributes()->checked);
}
}
}
2 changes: 1 addition & 1 deletion tests/controller/CMSSiteTreeFilterTest.php
Expand Up @@ -84,4 +84,4 @@ function testDeletedPagesFilter() {

$this->assertTrue($f->isPageIncluded($deletedPage));
}
}
}
2 changes: 1 addition & 1 deletion tests/controller/ContentControllerPermissionsTest.php
Expand Up @@ -33,4 +33,4 @@ public function testCanViewStage() {
}


}
}
2 changes: 1 addition & 1 deletion tests/controller/ContentControllerSearchExtensionTest.php
Expand Up @@ -14,4 +14,4 @@ function testCustomSearchFormClassesToTest() {

if (get_class($form) == 'SearchForm') $this->assertEquals(array('File'), $form->getClassesToSearch());
}
}
}
2 changes: 1 addition & 1 deletion tests/controller/ContentControllerTest.php
Expand Up @@ -141,4 +141,4 @@ public function second_index() {
return $this->index();
}

}
}
2 changes: 1 addition & 1 deletion tests/controller/ModelAsControllerTest.php
Expand Up @@ -234,4 +234,4 @@ function testFindOldPage(){
$this->assertEquals(false, $response );
}

}
}
2 changes: 1 addition & 1 deletion tests/controller/RootURLControllerTest.php
Expand Up @@ -15,4 +15,4 @@ public function testGetHomepageLink() {
$this->assertEquals('home', RootURLController::get_homepage_link());
}

}
}
2 changes: 1 addition & 1 deletion tests/controller/SilverStripeNavigatorTest.php
Expand Up @@ -51,4 +51,4 @@ function canView($member = null) {
if(!$member) $member = Member::currentUser();
return Permission::checkMember($member, 'ADMIN');
}
}
}
2 changes: 1 addition & 1 deletion tests/model/RedirectorPageTest.php
Expand Up @@ -50,4 +50,4 @@ function testExternalURLGetsPrefixIfNotSet() {
$page->write();
$this->assertEquals($page->ExternalURL, 'http://google.com', 'onBeforeWrite will not double prefix if written again!');
}
}
}
2 changes: 1 addition & 1 deletion tests/model/SiteTreeTest.php
Expand Up @@ -945,4 +945,4 @@ function getStatusFlags(){
$flags['inherited-class'] = "InheritedTitle";
return $flags;
}
}
}
2 changes: 1 addition & 1 deletion tests/reports/ReportTest.php
Expand Up @@ -82,4 +82,4 @@ function sourceRecords($params, $sort, $limit) {
function sort() {
return 98;
}
}
}
2 changes: 1 addition & 1 deletion tests/reports/SideReportTest.php
Expand Up @@ -39,4 +39,4 @@ function testRecentlyEdited() {

SS_DateTime::clear_mock_now();
}
}
}
2 changes: 1 addition & 1 deletion tests/search/CMSMainSearchFormTest.php
Expand Up @@ -32,4 +32,4 @@ protected function getPageTitles() {
}
return $titles;
}
}
}
2 changes: 1 addition & 1 deletion tests/staticpublisher/FilesystemPublisherTest.php
Expand Up @@ -157,4 +157,4 @@ function testStaticPublisherTheme(){

}

}
}
2 changes: 1 addition & 1 deletion tests/tasks/MigrateSiteTreeLinkingTaskTest.php
Expand Up @@ -77,4 +77,4 @@ public function testLinkingMigration() {
);
}

}
}
2 changes: 1 addition & 1 deletion tests/widgets/WidgetControllerTestPage.php
Expand Up @@ -24,4 +24,4 @@ function getViewer($action) {

return new SSViewer($templates);
}
}
}

0 comments on commit b8e86ae

Please sign in to comment.