Commit d31dbff7 authored by sept_7's avatar sept_7

[FIX] no php ending tag, Zend recommendation

parent ceb30d96
<?php
// Central place to set version number, so not every script has to be edited seperately.
$tikiversion = '4.0';
?>
\ No newline at end of file
......@@ -6,5 +6,3 @@
header ("location: ../../tiki-index.php");
die;
?>
......@@ -373,6 +373,3 @@ class TikiLdapLib {
}
}
?>
......@@ -285,5 +285,3 @@ class BannerLib extends TikiLib {
}
}
$bannerlib = new BannerLib;
?>
\ No newline at end of file
......@@ -85,5 +85,3 @@ class Category_Manipulator
$this->prepared = true;
}
}
?>
......@@ -115,5 +115,3 @@ class Perms_Accessor implements ArrayAccess
return true;
}
}
?>
......@@ -79,5 +79,3 @@ class Perms_Applier
}
}
}
?>
......@@ -4,5 +4,3 @@ interface Perms_Check
{
function check( Perms_Resolver $resolver, array $context, $name, array $groups );
}
?>
......@@ -23,5 +23,3 @@ class Perms_Check_Alternate implements Perms_Check
$this->resolver = $resolver;
}
}
?>
......@@ -7,5 +7,3 @@ class Perms_Check_Direct implements Perms_Check
return $resolver->check( $name, $groups );
}
}
?>
......@@ -17,5 +17,3 @@ class Perms_Check_Indirect implements Perms_Check
}
}
}
?>
......@@ -8,5 +8,3 @@ class Perms_Reflection_Category extends Perms_Reflection_Object
return $this->factory->get( 'global', null )->getDirectPermissions();
}
}
?>
......@@ -8,5 +8,3 @@ interface Perms_Reflection_Container
function getDirectPermissions();
function getParentPermissions();
}
?>
......@@ -42,5 +42,3 @@ class Perms_Reflection_Factory
return $factory;
}
}
?>
......@@ -39,5 +39,3 @@ class Perms_Reflection_Global implements Perms_Reflection_Container
function getParentPermissions() {
}
}
?>
......@@ -71,5 +71,3 @@ class Perms_Reflection_Object implements Perms_Reflection_Container
return $categlib->get_object_categories( $this->type, $this->object );
}
}
?>
......@@ -37,5 +37,3 @@ class Perms_Reflection_PermissionComparator
return $out;
}
}
?>
......@@ -33,5 +33,3 @@ class Perms_Reflection_PermissionSet
return $this->set;
}
}
?>
......@@ -87,5 +87,3 @@ class Perms_Reflection_Quick
return 'userdefined';
}
}
?>
......@@ -19,4 +19,3 @@ class Perms_Resolver_Default implements Perms_Resolver
return $this->value;
}
}
......@@ -27,4 +27,3 @@ class Perms_Resolver_Static implements Perms_Resolver
return false;
}
}
......@@ -199,5 +199,3 @@ class Perms_ResolverFactory_CategoryFactory implements Perms_ResolverFactory
return $context['type'] . strtolower( $context['object'] );
}
}
?>
......@@ -47,5 +47,3 @@ class Perms_ResolverFactory_GlobalFactory implements Perms_ResolverFactory
}
}
}
?>
......@@ -90,5 +90,3 @@ class Perms_ResolverFactory_ObjectFactory implements Perms_ResolverFactory
}
}
}
?>
......@@ -28,5 +28,3 @@ class Perms_ResolverFactory_StaticFactory implements Perms_ResolverFactory
return $this->resolver;
}
}
?>
......@@ -39,4 +39,3 @@ class Perms_ResolverFactory_TestFactory implements Perms_ResolverFactory
}
}
}
......@@ -331,5 +331,3 @@ abstract class TikiDb
else return '';
} // }}}
}
?>
......@@ -55,5 +55,3 @@ class TikiDb_Adodb extends TikiDb {
return $result;
} // }}}
}
?>
......@@ -124,5 +124,3 @@ class TikiDb_Bridge extends TikiDb
return call_user_func_array( array( self::get(), 'concat' ), $arr );
} // }}}
}
?>
......@@ -4,5 +4,3 @@ interface TikiDb_ErrorHandler
{
function handle( TikiDb $db, $query, $values, $result );
}
?>
<?php
class TikiDb_Exception extends Exception {}
?>
......@@ -150,5 +150,3 @@ class TikiDb_MasterSlaveDispatch extends TikiDb
return $this->lastUsed = $this->slave;
}
}
?>
......@@ -112,5 +112,3 @@ class TikiDb_Pdo extends TikiDb {
return new TikiDb_Pdo_Result($result);
} // }}}
}
?>
......@@ -98,5 +98,3 @@ class Transition
$this->addBlocker( 'unknown', 1, $list );
}
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../index.php");
die;
?>
......@@ -1680,5 +1680,3 @@ echo $rss->saveFeed("RSS0.91", "feed.xml");
***************************************************************************/
?>
......@@ -530,5 +530,3 @@ class File extends PEAR
}
PEAR::registerShutdownFunc(array('File', '_File'));
?>
......@@ -210,5 +210,3 @@ class File_iCal {
}
}
?>
......@@ -136,5 +136,3 @@ class File_iCal_Alarm extends File_iCal_BaseComponent {
}
}
?>
\ No newline at end of file
......@@ -266,6 +266,3 @@ class File_iCal_Attendee {
}
}
?>
\ No newline at end of file
......@@ -966,5 +966,3 @@ class File_iCal_BaseComponent_ET extends File_iCal_BaseComponent_EJT {
}
}
?>
......@@ -1104,5 +1104,3 @@ class File_iCal_Component_ToDo extends File_iCal_Component
}
}
?>
......@@ -282,5 +282,3 @@ class File_iCal_ContentLine {
return str_replace(array("\\\\", "\\,", "\\\"", "\\\'", "\\;", "\\:"), array("\\", ",", "\"", "'", ";", ":"), $s);
}
}
?>
\ No newline at end of file
......@@ -81,6 +81,3 @@ class File_iCal_Event extends File_iCal_BaseComponent_ET {
}
?>
......@@ -38,5 +38,3 @@
class File_iCal_ExceptionRule {
}
?>
\ No newline at end of file
......@@ -88,5 +88,3 @@ class File_iCal_FreeBusy extends File_iCal_BaseComponent_EFJT {
}
}
?>
\ No newline at end of file
......@@ -824,4 +824,3 @@ class File_iCal_Parameter_Value extends File_iCal_Parameter
}
}
?>
......@@ -314,4 +314,3 @@ class File_iCal_iCalendar {
}
}
?>
......@@ -1591,5 +1591,3 @@ class File_iCal_Property_RequestStatus extends File_iCal_Property
}
}
?>
......@@ -385,7 +385,3 @@ class File_iCal_Recurrence {
}
?>
\ No newline at end of file
......@@ -165,5 +165,3 @@ class File_iCal_TimeZone extends File_iCal_BaseComponent {
}
?>
\ No newline at end of file
......@@ -99,5 +99,3 @@ class File_iCal_ToDo extends File_iCal_BaseComponent_ET {
}
}
?>
\ No newline at end of file
......@@ -729,5 +729,3 @@ class File_iCal_ValueDataType_UTCOffset extends File_iCal_ValueDataType
}
}
?>
\ No newline at end of file
......@@ -326,4 +326,3 @@ class File_iCal_iCalendar {
}
?>
......@@ -10,5 +10,3 @@
header ("location: ../index.php");
die;
?>
......@@ -185,5 +185,3 @@ class TikiImporter
flush();
}
}
?>
......@@ -161,5 +161,3 @@ class TikiImporter_Wiki extends TikiImporter
return true;
}
}
?>
......@@ -390,5 +390,3 @@ class TikiImporter_Wiki_Mediawiki extends TikiImporter_Wiki
}
class ImporterParserException extends Exception {}
?>
......@@ -530,5 +530,3 @@ class PageListLib extends MultilingualLib {
}
$pagelistlib = new PageListLib;
?>
......@@ -141,5 +141,3 @@ class PerspectiveLib
global $perspectivelib;
$perspectivelib = new PerspectiveLib;
?>
......@@ -19,5 +19,3 @@ function prefs_auth_list() {
),
);
}
?>
......@@ -10,5 +10,3 @@ function prefs_desc_list() {
),
);
}
?>
......@@ -20,5 +20,3 @@ function prefs_error_list() {
),
);
}
?>
......@@ -85,5 +85,3 @@ function prefs_memcache_unserialize_servers( $string ) {
return false;
}
}
?>
......@@ -19,5 +19,3 @@ function prefs_multidomain_list() {
),
);
}
?>
......@@ -14,5 +14,3 @@ function prefs_page_list() {
),
);
}
?>
......@@ -10,5 +10,3 @@ function prefs_sender_list() {
),
);
}
?>
......@@ -16,5 +16,3 @@ function prefs_smarty_list() {
),
);
}
?>
......@@ -20,5 +20,3 @@ function prefs_wikiplugin_list() {
return $prefs;
}
?>
......@@ -17,5 +17,3 @@ function prefs_wikiplugininline_list() {
return $prefs;
}
?>
......@@ -222,5 +222,3 @@ class PreferencesLib
global $prefslib;
$prefslib = new PreferencesLib;
?>
......@@ -159,4 +159,3 @@ global $prefs;
$screencastlib = new ScreencastLib($prefs['feature_wiki_screencasts_base'],
$prefs['feature_wiki_screencasts_upload_type'],
array('http' => $prefs['feature_wiki_screencasts_httpbase'], 'user' => $prefs['feature_wiki_screencasts_user'], 'pass' => $prefs['feature_wiki_screencasts_pass']));
?>
......@@ -127,5 +127,3 @@ function smarty_function_popup($params, &$smarty)
}
/* vim: set expandtab: */
?>
......@@ -17,5 +17,3 @@ function smarty_function_preference( $params, $smarty ) {
return tr( 'Preference %0 is not defined.', $params['name'] );
}
}
?>
......@@ -112,5 +112,3 @@ class Category_ManipulatorTest extends TikiTestCase
$this->assertEquals( array(), $manip->getRemovedCategories() );
}
}
?>
......@@ -250,5 +250,3 @@ class Perms_ApplierTest extends TikiTestCase
$applier->apply( $newSet );
}
}
?>
......@@ -31,5 +31,3 @@ class Perms_Check_AlternateTest extends PHPUnit_Framework_TestCase
$this->assertFalse( $check->check( $resolver, array(), 'view', array( 'Registered' ) ) );
}
}
?>
......@@ -31,5 +31,3 @@ class Perms_Check_CreatorTest extends TikiTestCase
$this->assertTrue( $creator->check( $mock, array( 'creator' => 'foobar' ), 'view', array( 'Registered' ) ) );
}
}
?>
......@@ -26,5 +26,3 @@ class Perms_Check_DirectTest extends TikiTestCase
$this->assertFalse( $direct->check( $mock, array(), 'view', array( 'Admins', 'Anonymous' ) ) );
}
}
?>
......@@ -42,5 +42,3 @@ class Perms_Check_IndirectTest extends TikiTestCase
$this->assertFalse( $indirect->check( $mock, array(), 'view', array( 'Admins', 'Anonymous' ) ) );
}
}
?>
......@@ -54,5 +54,3 @@ class Perms_CheckSequenceTest extends TikiTestCase
$this->assertFalse( Perms::get()->view );
}
}
?>
......@@ -54,5 +54,3 @@ class Perms_MixedTest extends TikiTestCase
$this->assertEquals( $data, $out );
}
}
?>
......@@ -52,5 +52,3 @@ class Perms_Reflection_FactoryTest extends TikiTestCase
$this->assertEquals( $expect, Perms_Reflection_Factory::getDefaultFactory() );
}
}
?>
......@@ -105,5 +105,3 @@ class Perms_Reflection_PermissionComparatorTest extends TikiTestCase
$this->assertEquals( array(), $comparator->getRemovals() );
}
}
?>
......@@ -57,5 +57,3 @@ class Perms_Reflection_PermissionSetTest extends TikiTestCase
$this->assertEquals( $equivalent, $multi );
}
}
?>
......@@ -175,5 +175,3 @@ class Perms_Reflection_QuickTest extends TikiTestCase
$this->assertEquals( $expect, $quick );
}
}
?>
......@@ -239,5 +239,3 @@ class Perms_ResolverFactory_CategoryFactoryTest extends PHPUnit_Framework_TestCa
$this->assertEquals( array('HomePage', 'UserPageFoobar', 'HelloWorld'), $out );
}
}
?>
......@@ -50,5 +50,3 @@ class Perms_ResolverFactory_GlobalFactoryTest extends PHPUnit_Framework_TestCase
$this->assertEquals( $expect, $factory->getResolver( array() ) );
}
}
?>
......@@ -126,5 +126,3 @@ class Perms_ResolverFactory_ObjectFactoryTest extends PHPUnit_Framework_TestCase
$this->assertEquals( array('HomePage', 'UserPageFoobar', 'HelloWorld'), $out );
}
}
?>
......@@ -40,5 +40,3 @@ class Transition_AtLeastTest extends PHPUnit_Framework_TestCase
), $transition->explain() );
}
}
?>
......@@ -30,5 +30,3 @@ class Transition_AtMostTest extends PHPUnit_Framework_TestCase
), $transition->explain() );
}
}
?>
......@@ -85,5 +85,3 @@ class Transition_BasicTest extends PHPUnit_Framework_TestCase
), $transition->explain() );
}
}
?>
......@@ -19,5 +19,3 @@ class TikiImporter_AllTests
return $suite;
}
}
?>
......@@ -137,5 +137,3 @@ $page = array('revisions' => array(
),
'name' => 'Redes de ensino'
);
?>
......@@ -53,5 +53,3 @@ class TikiImporterGranSon extends TikiImporterSecondChild
{
static public $importOptions = array(array('name' => 'name'));
}
?>
......@@ -5,5 +5,3 @@ require_once('PHPUnit/Extensions/OutputTestCase.php');
class TikiImporter_TestCase extends PHPUnit_Extensions_OutputTestCase {
protected $backupGlobals = FALSE;
}
?>
......@@ -403,5 +403,3 @@ class TikiImporter_Wiki_Mediawiki_Test extends TikiImporter_TestCase
$this->assertNull($this->obj->convertMarkup($mediawikiText));
}
}
?>
......@@ -156,5 +156,3 @@ class TikiImporter_Wiki_InsertPage_Test extends TikiImporter_TestCase
$this->assertFalse($this->obj->insertPage($page));
}
}
?>
......@@ -13,4 +13,3 @@ class TikiWikiParser_AllTests
return $suite;
}
}
?>
......@@ -166,5 +166,3 @@ class TransitionLib
}
}
}
?>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment