MINOR Add newline to end of files without one

This commit is contained in:
Simon Welsh 2012-03-24 16:04:52 +13:00 committed by Sean Harvey
parent f57a763524
commit f8082e4814
211 changed files with 213 additions and 212 deletions

View File

@ -146,4 +146,4 @@ abstract class CMSBatchAction extends Object {
function canView() {
return true;
}
}
}

View File

@ -22,4 +22,4 @@ interface CMSPreviewable {
*/
function CMSEditLink();
}
}

View File

@ -32,4 +32,4 @@ class CMSProfileController extends LeftAndMain {
return true;
}
}
}

View File

@ -11,4 +11,4 @@ abstract class LeftAndMainDecorator extends LeftAndMainExtension {
parent::__construct();
}
}
}

View File

@ -16,4 +16,4 @@ abstract class LeftAndMainExtension extends Extension {
function augmentNewSiteTreeItem(&$item) {
}
}
}

View File

@ -82,4 +82,4 @@ class CMSMenuTest_LeftAndMainController extends LeftAndMain implements TestOnly
static $url_segment = 'CMSMenuTest_LeftAndMainController';
static $menu_title = 'CMSMenuTest_LeftAndMainController';
static $menu_priority = 50;
}
}

View File

@ -48,4 +48,4 @@
<!-- Tests -->
<script src="tests.js"></script>
</body>
</html>
</html>

View File

@ -149,4 +149,4 @@ class XMLDataFormatter extends DataFormatter {
public function convertStringToArray($strData) {
return Convert::xml2array($strData);
}
}
}

2
cache/Cache.php vendored
View File

@ -196,4 +196,4 @@ class SS_Cache {
require_once 'Zend/Cache.php';
return Zend_Cache::factory($frontend, $backend[0], $frontendOptions, $backend[1]);
}
}
}

View File

@ -37,4 +37,4 @@ abstract class CliController extends Controller {
*/
function process() {}
}
}

View File

@ -66,4 +66,4 @@ class PjaxResponseNegotiator {
public function setCallback($fragment, $callback) {
$this->callbacks[$fragment] = $callback;
}
}
}

View File

@ -499,4 +499,4 @@ class Config_ForClass {
function forClass($class) {
return Config::inst()->forClass($class);
}
}
}

View File

@ -71,4 +71,4 @@ class SS_DAG {
if ($dag) throw new Exception("DAG has cyclic requirements");
return $sorted;
}
}
}

View File

@ -95,4 +95,4 @@ class TidyHTMLCleaner extends HTMLCleaner {
$output = $tidy->repairString($content, $this->config);
return $output;
}
}
}

View File

@ -406,4 +406,4 @@ class PaginatedList extends SS_ListDecorator {
$this->setTotalSize($totalSize);
}
}
}

View File

@ -490,4 +490,4 @@ class SS_ConfigManifest {
}
}
}
}

View File

@ -64,4 +64,4 @@ class ManifestFileFinder extends SS_FileFinder {
return parent::acceptDir($basename, $pathname, $depth);
}
}
}

View File

@ -92,4 +92,4 @@ class SS_TemplateLoader {
return $result;
}
}
}

View File

@ -151,4 +151,4 @@ class SS_TemplateManifest {
}
}
}
}

View File

@ -97,4 +97,4 @@ class TokenisedRegularExpression {
return false;
}
}
}

View File

@ -181,4 +181,4 @@ class SS_Backtrace {
return $result;
}
}
}

View File

@ -107,4 +107,4 @@ class CSSContentParser extends Object {
}
}
}

View File

@ -348,4 +348,4 @@ class CodeViewer extends Controller {
}
}
}
}

View File

@ -179,4 +179,4 @@ class Deprecation {
self::$version = $settings['version'];
self::$module_version_overrides = $settings['moduleVersions'];
}
}
}

View File

@ -180,4 +180,4 @@ class SS_Log {
}
}
}
}

View File

@ -81,4 +81,4 @@ class SS_LogEmailWriter extends Zend_Log_Writer_Abstract {
if($this->customSmtpServer) ini_set('SMTP', $originalSMTP);
}
}
}

View File

@ -76,4 +76,4 @@ class SS_LogErrorEmailFormatter implements Zend_Log_Formatter_Interface {
);
}
}
}

View File

@ -38,4 +38,4 @@ class SS_LogErrorFileFormatter implements Zend_Log_Formatter_Interface {
return '[' . date('d-M-Y H:i:s') . "] $errtype at $relfile line $errline: $errstr$urlSuffix" . PHP_EOL;
}
}
}

View File

@ -61,4 +61,4 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract {
error_log($message, $this->messageType, $this->path, $this->extraHeaders);
}
}
}

View File

@ -48,4 +48,4 @@ class SS_SysLogWriter extends Zend_Log_Writer_Abstract {
syslog($event['priority'], $this->_formatter->format($event));
}
}
}

View File

@ -45,4 +45,4 @@ class SS_TestListener implements PHPUnit_Framework_TestListener {
protected function isValidClass($name) {
return (class_exists($name) && is_subclass_of($name, 'SapphireTest'));
}
}
}

View File

@ -83,4 +83,4 @@ class TestMailer extends Mailer {
}
}
}

View File

@ -213,4 +213,4 @@ class TestSession_STResponseWrapper {
function getRequestData() {
return null;
}
}
}

View File

@ -254,4 +254,4 @@ class TestViewer extends Controller {
}
}
}
}

View File

@ -40,4 +40,4 @@ class SS_ZendLog extends Zend_Log {
$this->_writers = array();
}
}
}

View File

@ -78,4 +78,4 @@ class DatabaseAdapterRegistry {
return self::$adapters;
}
}
}

View File

@ -39,4 +39,4 @@ interface DatabaseConfigurationHelper {
*/
public function requireDatabaseOrCreatePermissions($databaseConfig);
}
}

View File

@ -226,4 +226,4 @@ class SS_FileFinder {
return true;
}
}
}

View File

@ -118,4 +118,4 @@ class FileNameFilter extends Object {
function getDefaultName() {
return (string)uniqid();
}
}
}

View File

@ -65,4 +65,4 @@ class CheckboxField_Readonly extends ReadonlyField {
return Convert::raw2xml($this->value ? _t('CheckboxField.YES', 'Yes') : _t('CheckboxField.NO', 'No'));
}
}
}

View File

@ -72,4 +72,4 @@ class DatalessField extends FormField {
return 'readonly';
}
}
}

View File

@ -565,4 +565,4 @@ class FieldList extends ArrayList {
}
return $output;
}
}
}

View File

@ -135,4 +135,4 @@ class FormAction extends FormField {
return $clone;
}
}
}

View File

@ -181,4 +181,4 @@ class FormScaffolder extends Object {
'ajaxSafe' => $this->ajaxSafe
);
}
}
}

View File

@ -53,4 +53,5 @@ class HeaderField extends DatalessField {
function Type() {
return null;
}
}
}

View File

@ -27,4 +27,4 @@ class HiddenField extends FormField {
array('type' => 'hidden')
);
}
}
}

View File

@ -54,4 +54,4 @@ class ImageField extends FileIFrameField {
return $form;
}
}
}

View File

@ -27,4 +27,4 @@ class LabelField extends DatalessField {
parent::__construct($name, $title);
}
}
}

View File

@ -277,4 +277,4 @@ class ListboxField extends DropdownField {
return $this->defaultItems;
}
}
}

View File

@ -73,4 +73,4 @@ class LiteralField extends DatalessField {
return $clone;
}
}
}

View File

@ -27,4 +27,4 @@ class NestedForm extends ViewableData {
}
return $actions;
}
}
}

View File

@ -33,4 +33,4 @@ class ReadonlyField extends FormField {
function Type() {
return 'readonly';
}
}
}

View File

@ -18,4 +18,4 @@ class ResetFormAction extends FormAction {
return 'resetformaction';
}
}
}

View File

@ -164,4 +164,4 @@ class SimpleImageField_Disabled extends FormField {
return $field;
}
}
}

View File

@ -50,5 +50,6 @@ class TextField extends FormField {
function InternallyLabelledField() {
if(!$this->value) $this->value = $this->Title();
return $this->Field();
}
}
}
}

View File

@ -116,4 +116,4 @@ class TextareaField extends FormField {
function Value() {
return htmlentities($this->value, ENT_COMPAT, 'UTF-8');
}
}
}

View File

@ -300,4 +300,4 @@ class GridFieldAddExistingAutocompleter implements GridField_HTMLProvider, GridF
$gridField->State->GridFieldAddRelation = $searchResults->first()->ID;
return $searchResults->first()->$field;
}
}
}

View File

@ -21,4 +21,4 @@ class GridFieldAddNewButton implements GridField_HTMLProvider {
);
}
}
}

View File

@ -141,4 +141,4 @@ interface GridField_URLHandler extends GridFieldComponent {
* Handler methods will be called on the component, rather than the grid field.
*/
function getURLHandlers($gridField);
}
}

View File

@ -118,4 +118,4 @@ class GridFieldDataColumns implements GridField_ColumnProvider {
}
return $value;
}
}
}

View File

@ -395,4 +395,4 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
return $items;
}
}
}

View File

@ -94,4 +94,4 @@ class GridFieldEditButton implements GridField_ColumnProvider {
public function handleAction(GridField $gridField, $actionName, $arguments, $data) {
}
}
}

View File

@ -131,4 +131,4 @@ class GridFieldSortableHeader implements GridField_HTMLProvider, GridField_DataM
}
return $dataList->sort($state->SortColumn, $state->SortDirection);
}
}
}

View File

@ -148,4 +148,4 @@ class GridState_Component implements GridField_HTMLProvider {
);
}
}
}

View File

@ -535,4 +535,4 @@ class ArrayList extends ViewableData implements SS_List, SS_Filterable, SS_Sorta
}
}
}
}

View File

@ -6,4 +6,4 @@ class ComponentSet extends DataObjectSet {
function setComponentInfo($type, $ownerObj, $ownerClass, $tableName, $childClass, $joinField = null) {
Deprecation::notice('3.0', 'Use ManyManyList or HasManyList instead.');
}
}
}

View File

@ -334,4 +334,4 @@ class DB {
return self::getConn()->alterationMessage($message, $type);
}
}
}

View File

@ -46,4 +46,4 @@ class DataModel {
$this->customDataLists[$class] = $item;
}
}
}

View File

@ -11,4 +11,4 @@ abstract class DataObjectDecorator extends DataExtension {
parent::__construct();
}
}
}

View File

@ -58,4 +58,4 @@ interface DataObjectInterface {
*/
function setCastedField($fieldName, $val);
}
}

View File

@ -37,4 +37,4 @@ class DataObjectSet extends ArrayList {
parent::__construct($items);
}
}
}

View File

@ -37,4 +37,4 @@ interface SS_Filterable {
*/
public function exclude();
}
}

View File

@ -16,4 +16,4 @@ interface SS_Limitable {
*/
public function limit($limit, $offset = 0);
}
}

View File

@ -78,4 +78,4 @@ interface SS_List extends ArrayAccess, Countable, IteratorAggregate {
*/
public function column($colName = "ID");
}
}

View File

@ -157,4 +157,4 @@ abstract class SS_ListDecorator extends ViewableData implements SS_List, SS_Sort
return $this->list->debug();
}
}
}

View File

@ -41,4 +41,4 @@ abstract class RelationList extends DataList {
}
abstract protected function foreignIDFilter();
}
}

View File

@ -26,4 +26,4 @@ interface SS_Sortable {
*/
public function sort();
}
}

View File

@ -55,4 +55,4 @@ class Transliterator extends Object {
protected function useIconv($source) {
return iconv("utf-8", "us-ascii//IGNORE//TRANSLIT", $source);
}
}
}

View File

@ -129,4 +129,4 @@ class URLSegmentFilter extends Object {
function getAllowMultibyte() {
return ($this->allowMultibyte !== null) ? $this->allowMultibyte : self::$default_allow_multibyte;
}
}
}

View File

@ -96,4 +96,4 @@ class ValidationResult extends Object {
}
}
}

View File

@ -48,4 +48,4 @@ class Double extends DBField {
}
}
}
}

View File

@ -67,4 +67,4 @@ class Float extends DBField {
}
}
}
}

View File

@ -26,4 +26,4 @@ class HTMLVarchar extends Varchar {
return new TextField($this->name, $title);
}
}
}

View File

@ -51,4 +51,4 @@ class MultiEnum extends Enum {
}
}
?>
?>

View File

@ -84,4 +84,4 @@ class SSHTMLBBCodeParser_Filter_Images extends SSHTMLBBCodeParser_Filter
$o."img=\"\$2\"\$1".$c.$o."/img".$c,
$this->_text);
}
}
}

View File

@ -61,4 +61,4 @@ class GroupCsvBulkLoader extends CsvBulkLoader {
return $objID;
}
}
}

View File

@ -76,4 +76,4 @@ class MemberCsvBulkLoader extends CsvBulkLoader {
function getGroups() {
return $this->groups;
}
}
}

View File

@ -52,4 +52,4 @@ class MemberPassword extends DataObject {
}
}
}

View File

@ -90,4 +90,4 @@ class PasswordValidator extends Object {
return $valid;
}
}
}

View File

@ -13,4 +13,4 @@ class PermissionRoleCode extends DataObject {
static $has_one = array(
"Role" => "PermissionRole",
);
}
}

View File

@ -69,4 +69,4 @@ class RandomGenerator {
return hash($algorithm, $this->generateEntropy());
}
}
}

View File

@ -288,4 +288,4 @@ class NullSecurityToken extends SecurityToken {
return null;
}
}
}

View File

@ -12,4 +12,4 @@
*/
class DailyTask extends ScheduledTask {
}
}

View File

@ -70,4 +70,4 @@ class EncryptAllPasswordsTask extends BuildTask {
Debug::message($msg);
}
}
}
}

View File

@ -41,4 +41,4 @@ class FlushGeneratedImagesTask extends BuildTask {
echo "Removed $removedItems generated images from $processedImages Image objects stored in the Database.";
}
}
}

View File

@ -11,4 +11,4 @@
*/
class HourlyTask extends ScheduledTask {
}
}

View File

@ -11,4 +11,4 @@
*/
class WeeklyTask extends ScheduledTask {
}
}

View File

@ -98,4 +98,4 @@ class MemoryLimitTest extends SapphireTest {
return true;
}
}
}

View File

@ -115,4 +115,4 @@ class RSSFeedTest_ItemC extends ViewableData {
function AbsoluteLink() {
return "http://www.example.com/item-c.html";
}
}
}

View File

@ -28,4 +28,4 @@ class SapphireSoapServerTest_MyServer extends SapphireSoapServer {
function Link($action = null) {
return Controller::join_links('SapphireSoapServerTest_MyServer', $action);
}
}
}

View File

@ -37,4 +37,4 @@ class XMLDataFormatterTest_DataObject extends DataObject implements TestOnly {
'Content' => 'HTMLText'
);
}
}

View File

@ -45,4 +45,4 @@ class CacheTest extends SapphireTest {
$this->assertEquals('Bar', $cache2->load('cachekey'));
}
}

View File

@ -30,4 +30,4 @@ class HTTPResponseTest extends SapphireTest {
);
}
}
}

View File

@ -19,4 +19,4 @@ class NullHTTPRequestTest extends SapphireTest {
$this->assertEquals('', $r->getURL());
}
}
}

View File

@ -19,4 +19,4 @@ class PjaxResponseNegotiatorTest extends SapphireTest {
$this->assertEquals('myfragment response', $negotiator->respond($request));
}
}
}

View File

@ -51,4 +51,4 @@ class SessionTest extends SapphireTest {
$this->assertEquals(Session::get_session_store_path(), '');
}
}
}

View File

@ -187,4 +187,4 @@ class ArrayLibTest extends SapphireTest {
'Numeric keys should behave like string keys'
);
}
}
}

View File

@ -53,4 +53,4 @@ class DiffTest extends SapphireTest {
$this->assertEquals($compare, $expected);
}
}
}

View File

@ -25,4 +25,4 @@ class HTMLCleanerTest extends SapphireTest {
}
}
}
}

View File

@ -133,4 +133,4 @@ class ObjectStaticTest_Combined2 extends ObjectStaticTest_Combined1 {
class ObjectStaticTest_Combined3 extends ObjectStaticTest_Combined2 {
public static $first = array('test_3');
public static $second = array('test_3');
}
}

View File

@ -120,4 +120,4 @@ class ClassManifestTest extends SapphireTest {
public function testManifestExcludeFilesPrefixedWithUnderscore() {
$this->assertNotContains('ignore', array_keys($this->manifest->getClasses()));
}
}
}

View File

@ -58,4 +58,4 @@ class ManifestFileFinderTest extends SapphireTest {
));
}
}
}

View File

@ -43,4 +43,4 @@ class TemplateLoaderTest extends SapphireTest {
$this->assertEquals($expectCustomPage, $loader->findTemplates(array('CustomPage', 'Page')));
}
}
}

View File

@ -95,4 +95,4 @@ class TemplateManifestTest extends SapphireTest {
$this->assertEquals($expectTests, $this->manifestTests->getTemplate('Test'));
}
}
}

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class ClassA { }
class ClassA { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class ClassB implements InterfaceA { }
class ClassB implements InterfaceA { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class ClassC extends ClassA implements InterfaceB { }
class ClassC extends ClassA implements InterfaceB { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class ClassD extends ClassC { }
class ClassD extends ClassC { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class Ignore extends ClassC { }
class Ignore extends ClassC { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
interface InterfaceA { }
interface InterfaceA { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
interface InterfaceB { }
interface InterfaceB { }

View File

@ -2,4 +2,4 @@
/**
* @ignore
*/
class TestClassA { }
class TestClassA { }

View File

@ -63,4 +63,4 @@ class BacktraceTest extends SapphireTest {
SS_Backtrace::$ignore_function_args = $orig;
}
}
}

View File

@ -84,4 +84,4 @@ class CSVParserTest extends SapphireTest {
$this->assertEquals(array('IsRegistered', '1', '0', '1', '1'), $registered);
}
}
}

View File

@ -67,4 +67,4 @@ class SS_LogTest extends SapphireTest {
);
}
}
}

View File

@ -111,4 +111,4 @@ class FileFinderTest extends SapphireTest {
$this->assertEquals($expect, $found, $message);
}
}
}

View File

@ -54,4 +54,4 @@ class FileNameFilterTest extends SapphireTest {
);
}
}
}

View File

@ -286,4 +286,4 @@ class FolderTest extends SapphireTest {
parent::tearDown();
}
}
}

View File

@ -362,4 +362,4 @@ class UploadTest_Validator extends Upload_Validator implements TestOnly {
return true;
}
}
}

View File

@ -139,4 +139,4 @@ class CheckboxSetFieldTest_Tag extends DataObject implements TestOnly {
static $belongs_many_many = array(
'Articles' => 'CheckboxSetFieldTest_Article'
);
}
}

View File

@ -40,4 +40,4 @@ class DateFieldViewJQueryTest extends SapphireTest {
'Full month name'
);
}
}
}

View File

@ -180,4 +180,4 @@ class DatetimeFieldTest_Model extends DataObject implements TestOnly {
'MyDatetime' => 'SS_Datetime'
);
}
}

View File

@ -77,4 +77,4 @@ class FileFieldTest extends FunctionalTest {
'A null value was passed as parameter for an uploaded file, but the validator returned true'
);
}
}
}

View File

@ -530,4 +530,4 @@ class GridFieldTest_Permissions extends DataObject implements TestOnly {
if(!($this->ID % 2)){ return false; }
return true;
}
}
}

View File

@ -75,4 +75,4 @@ class HtmlEditorConfigTest extends SapphireTest {
$this->assertContains('plugin1', $c->generateJS());
$this->assertContains('tinymce.PluginManager.load("plugin2", "/mypath/plugin2");', $c->generateJS());
}
}
}

View File

@ -112,4 +112,4 @@ class HtmlEditorFieldTest_Object extends DataObject implements TestOnly {
'Title' => 'Varchar',
'Content' => 'HTMLText'
);
}
}

View File

@ -24,4 +24,4 @@ class OptionsetFieldTest extends SapphireTest {
''
);
}
}
}

View File

@ -260,4 +260,4 @@ class TableFieldTest_HasManyRelation extends DataObject implements TestOnly {
static $has_one = array(
'HasOneRelation' => 'TableFieldTest_Object'
);
}
}

View File

@ -371,4 +371,4 @@ class TableListFieldTest_TestController extends Controller {
$table
), new FieldList());
}
}
}

View File

@ -23,4 +23,4 @@ class TextareaFieldTest extends SapphireTest {
$this->assertContains('This is my &lt;text&gt;These are some unicodes: &auml;&ouml;&uuml;&amp;&lt;&gt;', $field->Field());
}
}
}

View File

@ -99,4 +99,4 @@ class TimeFieldTest extends SapphireTest {
$field->setValue('');
$this->assertEquals($field->dataValue(), '');
}
}
}

View File

@ -121,4 +121,4 @@ class GridFieldConfigTest_MyComponent implements GridField_URLHandler, TestOnly
class GridFieldConfigTest_MyOtherComponent implements GridField_URLHandler, TestOnly {
function getURLHandlers($gridField) {return array();}
}
}

View File

@ -130,4 +130,4 @@ class GridField_URLHandlerTest_Component_ItemRequest extends RequestHandler {
function testpage() {
return "Test page for item #" . $this->id;
}
}
}

View File

@ -18,4 +18,4 @@ class i18nTestModule_Addition extends Object {
function myAdditionalMethod() {
_t('i18nTestModule.ADDITION','Addition');
}
}
}

View File

@ -50,4 +50,4 @@ class SS_HTMLValueTest extends SapphireTest {
);
}
}
}

View File

@ -584,4 +584,4 @@ class ArrayListTest_Object {
return array('First' => $this->First, 'Second' => $this->Second);
}
}
}

View File

@ -72,4 +72,4 @@ class ComponentSetTest_Team extends DataObject implements TestOnly {
static $many_many = array(
'Players' => 'ComponentSetTest_Player'
);
}
}

View File

@ -37,4 +37,4 @@ class CurrencyTest extends SapphireTest {
}
}
}
}

View File

@ -33,4 +33,4 @@ class DataObjectSchemaGenerationTest_DO extends DataObject implements TestOnly {
'Enum2' => 'Enum("A, B, C, D","A")',
);
}
}

View File

@ -134,4 +134,4 @@ class DbDateTimeTest_Team extends DataObject implements TestOnly {
static $db = array(
'Title' => 'Varchar'
);
}
}

View File

@ -54,4 +54,4 @@ class DecimalTest_DataObject extends DataObject implements TestOnly {
'MyDecimal4' => 4
);
}
}

View File

@ -17,4 +17,4 @@ class HasManyListTest extends SapphireTest {
$this->assertEquals(array(), $newTeam->Comments()->column('ID'));
}
}
}

View File

@ -172,4 +172,4 @@ class HierarchyTest_Object extends DataObject implements TestOnly {
'Hierarchy',
"Versioned('Stage', 'Live')",
);
}
}

View File

@ -102,4 +102,4 @@ class ImageTest extends SapphireTest {
$image->deleteFormattedImages();
$this->assertFalse(file_exists($p));
}
}
}

View File

@ -46,4 +46,4 @@ class MySQLDatabaseTest extends SapphireTest {
class MySQLDatabaseTest_DO extends DataObject implements TestOnly {
static $db = array();
}
}

View File

@ -244,4 +244,4 @@ class PaginatedListTest extends SapphireTest {
$this->assertContains('start=30', $list->PrevLink());
}
}
}

View File

@ -30,4 +30,4 @@ class StringFieldTest extends SapphireTest {
class StringFieldTest_MyStringField extends StringField implements TestOnly {
function requireField() {}
}
}

View File

@ -168,4 +168,4 @@ class TextTest extends SapphireTest {
$data = DBField::create_field('Text', '"this is a test"');
$this->assertEquals($data->ATT(), '&quot;this is a test&quot;');
}
}
}

View File

@ -60,4 +60,4 @@ class TransactionTest_Object extends DataObject implements TestOnly {
static $db = array(
'Title' => 'Varchar(255)'
);
}
}

View File

@ -49,4 +49,4 @@ class URLSegmentFilterTest extends SapphireTest {
);
}
}
}

View File

@ -37,4 +37,4 @@ class FulltextSearchableTest extends SapphireTest {
$this->assertFalse(Object::has_extension('File', 'FulltextSearchable'));
}
}
}

View File

@ -142,4 +142,4 @@ class BasicAuthTest_ControllerSecuredWithoutPermission extends Controller implem
parent::init();
}
}
}

View File

@ -55,4 +55,4 @@ class GroupCsvBulkLoaderTest extends SapphireTest {
$this->assertEquals($array1, $array2);
}
}
}

View File

@ -62,4 +62,4 @@ class MemberAuthenticatorTest extends SapphireTest {
Member::set_unique_identifier_field($origField);
}
}
}

View File

@ -74,4 +74,4 @@ class MemberCsvBulkLoaderTest extends SapphireTest {
$result = $member->checkPassword('mypassword');
$this->assertTrue($result->valid());
}
}
}

View File

@ -94,4 +94,4 @@ class PasswordEncryptorTest_TestEncryptor extends PasswordEncryptor implements T
function salt($password, $member = null) {
return 'salt';
}
}
}

View File

@ -41,4 +41,4 @@ class PasswordValidatorTest extends SapphireTest {
function testHistoricalPasswordCount() {
// TODO
}
}
}

View File

@ -84,4 +84,4 @@ class PermissionCheckboxSetFieldTest extends SapphireTest {
$this->assertEquals(DataObject::get('Permission')->Count(), $baseCount+1, 'There are no orphaned permissions');
}
}
}

View File

@ -80,4 +80,4 @@ class PermissionTest extends SapphireTest {
$this->assertContains('CMS_ACCESS_AssetAdmin', $permissionCheckboxSet->Field());
Permission::remove_from_hidden_permissions('CMS_ACCESS_CMSMain');
}
}
}

View File

@ -24,4 +24,4 @@ class RandomGeneratorTest extends SapphireTest {
$this->assertNotEquals($r->generateHash(), $r->generateHash('md5'));
}
}
}

View File

@ -46,4 +46,4 @@ class SecurityDefaultAdminTest extends SapphireTest {
$this->assertNull($admin->Password);
}
}
}

View File

@ -430,4 +430,4 @@ class SecurityTest_SecuredController extends Controller implements TestOnly {
return 'Success';
}
}
}

View File

@ -142,4 +142,4 @@ class SecurityTokenTest extends SapphireTest {
$this->assertNotEquals($t1->getName(), $t2->getName());
$this->assertNotEquals($t1->getValue(), $t2->getValue());
}
}
}

View File

@ -220,4 +220,4 @@ class SSViewerCacheBlockTest extends SapphireTest {
$this->_runtemplate('<% cached Foo if %>$Bar<% end_cached %>');
}
}
}

View File

@ -211,4 +211,4 @@ class ViewableDataTest_CastingClass extends ViewableData {
);
}
/**#@-*/
/**#@-*/

View File

@ -35,4 +35,4 @@ interface Zend_Log_FactoryInterface
* @return Zend_Log_FactoryInterface
*/
static public function factory($config);
}
}

View File

@ -37,4 +37,4 @@ require_once 'Zend/Log/FactoryInterface.php';
abstract class Zend_Log_Formatter_Abstract
implements Zend_Log_Formatter_Interface, Zend_Log_FactoryInterface
{
}
}

View File

@ -58,4 +58,4 @@ class Zend_Log_Formatter_Firebug extends Zend_Log_Formatter_Abstract
{
return $event['message'];
}
}
}

View File

@ -105,4 +105,4 @@ class Zend_Log_Formatter_Simple extends Zend_Log_Formatter_Abstract
return $output;
}
}
}

View File

@ -264,4 +264,4 @@ class Zend_Log_Writer_Syslog extends Zend_Log_Writer_Abstract
syslog($priority, $message);
}
}
}

View File

@ -3,4 +3,4 @@
// Echo the image - timestamp appended to prevent caching
echo '<a href="index.php" onclick="refreshimg(); return false;" title="Click to refresh image"><img src="images/image.jpg?' . time() . '" width="132" height="46" alt="Captcha image" /></a>';
?>
?>

View File

@ -32,4 +32,4 @@ imagettftext($image, 14, $rotate, 18, 30, $colour, $font, $str);
// Output the image as a png
imagepng($image);
?>
?>

View File

@ -63,4 +63,4 @@ $_SESSION['captcha_id'] = $str;
</body>
</html>
</html>

View File

@ -9,4 +9,4 @@ session_start();
// Set the session contents
$_SESSION['captcha_id'] = $str;
?>
?>

View File

@ -11,4 +11,4 @@ if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id'])
else
echo 'false';
?>
?>

View File

@ -8,4 +8,4 @@ $char = strtoupper(substr(str_shuffle('abcdefghjkmnpqrstuvwxyz'), 0, 4));
// '0' is left out to avoid confusion with 'O'
$str = rand(1, 7) . rand(1, 7) . $char;
?>
?>

View File

@ -7,4 +7,4 @@ if($user && $pw && $pw == "foobar")
echo "Hi $user, welcome back.";
else
echo "Your password is wrong (must be foobar).";
?>
?>

View File

@ -7,4 +7,4 @@ foreach($emails as $email) {
$valid = 'false';
}
echo $valid;
?>
?>

View File

@ -7,4 +7,4 @@ foreach($emails as $email) {
$valid = '"Thats already taken."';
}
echo $valid;
?>
?>

View File

@ -9,4 +9,4 @@ foreach($users as $user) {
$valid = 'false';
}
echo $valid;
?>
?>

View File

@ -8,4 +8,4 @@ foreach($users as $user) {
$valid = 'false';
}
echo $valid;
?>
?>

View File

@ -8,4 +8,4 @@ foreach($users as $user) {
$valid = "\"$user is already taken, please try something else\"";
}
echo $valid;
?>
?>

View File

@ -322,4 +322,4 @@ class JSMin {
// -- Exceptions ---------------------------------------------------------------
class JSMinException extends Exception {}
?>
?>

View File

@ -143,4 +143,4 @@ class _database {
}
?>
?>

View File

@ -149,4 +149,4 @@ class _database {
}
}
}

View File

@ -599,4 +599,4 @@ class json_tree extends _tree_struct {
}
}
?>
?>

View File

@ -11,4 +11,4 @@ else require_once("_inc/class._database.php");
// Tree class
require_once("_inc/class.tree.php");
?>
?>

View File

@ -66,4 +66,4 @@ $tree->dump(true);
echo $tree->analyze();
$tree->drop();
*/
?>
?>

View File

@ -305,4 +305,4 @@ function fnLoadPngs() {
</div>
</body>
</html>
</html>

View File

@ -966,4 +966,4 @@ class Net_IDNA_php4 extends idna_convert
}
}
?>
?>

View File

@ -377,4 +377,4 @@ class SimpleCookieJar {
return $pairs;
}
}
?>
?>

View File

@ -549,4 +549,4 @@ class SimpleMultipartEncoding extends SimplePostEncoding {
return $stream;
}
}
?>
?>

View File

@ -134,4 +134,4 @@ class SimpleByLabelOrName {
return ($widget->getName() == $this->_label);
}
}
?>
?>

View File

@ -213,4 +213,4 @@ class SimpleSecureSocket extends SimpleSocket {
return parent::_openSocket("tls://$host", $port, $error_number, $error, $timeout);
}
}
?>
?>

View File

@ -1415,4 +1415,3 @@ class SimpleFrameTag extends SimpleTag {
return false;
}
}

View File

@ -13,4 +13,4 @@ function php5to4 ($src, $dest) {
fwrite($f, $code);
fclose ($f);
print "Written to $dest.\n";
}
}

View File

@ -1011,4 +1011,4 @@ do {
$file = $argv[1];
printf ("Spyc loading file: %s\n", $file);
print_r (spyc_load_file ($file));
} while (0);
} while (0);

View File

@ -265,4 +265,4 @@ class Moxiecode_Logger {
}
}
?>
?>

View File

@ -95,4 +95,4 @@ function fatal($msg) {
$log->fatal(implode(', ', $args));
}
?>
?>

View File

@ -109,4 +109,4 @@ class ArrayData extends ViewableData {
return $this->toMap();
}
}
}

View File

@ -45,4 +45,4 @@ interface TemplateIteratorProvider {
public function iteratorProperties($pos, $totalItems);
}
?>
?>