From 4742168253cc7b35f723e20013d7d106e7173a45 Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Fri, 28 Oct 2011 01:01:17 -0400 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- lib/Cake/Console/Command/Task/TestTask.php | 2 +- .../Templates/default/classes/test.ctp | 2 +- .../Console/Templates/default/views/index.ctp | 2 +- .../Templates/skel/Config/bootstrap.php | 2 +- .../Console/Templates/skel/Config/routes.php | 2 +- .../Component/Auth/BaseAuthorize.php | 2 +- .../Controller/Component/AuthComponent.php | 2 +- .../Component/RequestHandlerComponent.php | 2 +- lib/Cake/Routing/Router.php | 2 +- .../Test/Case/Cache/Engine/ApcEngineTest.php | 2 +- .../Test/Case/Cache/Engine/FileEngineTest.php | 2 +- .../Case/Cache/Engine/MemcacheEngineTest.php | 4 +- .../Case/Cache/Engine/WincacheEngineTest.php | 2 +- .../Case/Console/Command/AclShellTest.php | 8 +- .../Case/Console/Command/BakeShellTest.php | 4 +- .../Console/Command/CommandListShellTest.php | 2 +- .../Test/Case/Console/Command/ShellTest.php | 4 +- .../Console/Command/Task/DbConfigTaskTest.php | 2 +- .../Console/Command/Task/FixtureTaskTest.php | 4 +- .../Console/Command/Task/PluginTaskTest.php | 12 +- .../Console/Command/Task/ProjectTaskTest.php | 2 +- .../Console/Command/Task/ViewTaskTest.php | 8 +- .../Case/Console/ConsoleErrorHandlerTest.php | 4 +- .../Case/Console/ConsoleOptionParserTest.php | 14 +- .../Component/Auth/ActionsAuthorizeTest.php | 6 +- .../Component/Auth/BasicAuthenticateTest.php | 2 +- .../Auth/ControllerAuthorizeTest.php | 8 +- .../Component/Auth/CrudAuthorizeTest.php | 4 +- .../Component/Auth/DigestAuthenticateTest.php | 2 +- .../Component/Auth/FormAuthenticateTest.php | 2 +- .../Component/CookieComponentTest.php | 2 +- .../Component/PaginatorComponentTest.php | 6 +- .../Component/SecurityComponentTest.php | 22 +-- .../Test/Case/Controller/ControllerTest.php | 12 +- .../Behavior/ContainableBehaviorTest.php | 8 +- lib/Cake/Test/Case/Model/CakeSchemaTest.php | 4 +- .../Datasource/Database/SqlserverTest.php | 8 +- .../Case/Model/Datasource/DboSourceTest.php | 2 +- .../Session/DatabaseSessionTest.php | 4 +- lib/Cake/Test/Case/Model/ModelWriteTest.php | 8 +- .../Test/Case/Network/CakeRequestTest.php | 176 +++++++++--------- lib/Cake/Test/Case/Routing/RouterTest.php | 4 +- .../Case/TestSuite/CakeTestFixtureTest.php | 6 +- .../Case/Utility/ObjectCollectionTest.php | 4 +- lib/Cake/Test/Case/Utility/SecurityTest.php | 2 +- lib/Cake/Test/Case/Utility/StringTest.php | 2 +- .../Test/Case/View/Helper/FormHelperTest.php | 6 +- .../Test/Case/View/Helper/HtmlHelperTest.php | 2 +- .../Test/Case/View/Helper/RssHelperTest.php | 2 +- .../Test/Case/View/Helper/TimeHelperTest.php | 4 +- lib/Cake/Test/Fixture/FixturizedTestCase.php | 2 +- .../Lib/Cache/Engine/TestAppCacheEngine.php | 2 +- .../test_app/Lib/Log/Engine/TestAppLog.php | 2 +- lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME | 8 +- .../Datasource/Session/TestAppLibSession.php | 10 +- .../Console/Command/Task/other_task.php | 2 +- .../Controller/TestPluginController.php | 2 +- .../Cache/Engine/TestPluginCacheEngine.php | 2 +- .../Lib/Log/Engine/TestPluginLog.php | 2 +- .../Datasource/Session/TestPluginSession.php | 10 +- .../View/Helper/TestPluginAppHelper.php | 2 +- .../test_app/View/Posts/helper_overwrite.ctp | 2 +- lib/Cake/TestSuite/CakeTestCase.php | 6 +- lib/Cake/TestSuite/CakeTestRunner.php | 4 +- lib/Cake/TestSuite/ControllerTestCase.php | 10 +- .../TestSuite/Fixture/CakeTestFixture.php | 2 +- .../TestSuite/Reporter/CakeTextReporter.php | 4 +- lib/Cake/Utility/Debugger.php | 12 +- lib/Cake/View/Elements/sql_dump.ctp | 4 +- lib/Cake/View/Helper/FormHelper.php | 2 +- lib/Cake/View/Pages/home.ctp | 2 +- lib/Cake/View/Scaffolds/index.ctp | 4 +- 72 files changed, 248 insertions(+), 248 deletions(-) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index b1c14421447..76977364367 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -145,7 +145,7 @@ public function bake($type, $className) { $this->Template->set('fixtures', $this->_fixtures); $this->Template->set('plugin', $plugin); $this->Template->set(compact( - 'className', 'methods', 'type', 'fullClassName', 'mock', + 'className', 'methods', 'type', 'fullClassName', 'mock', 'construction', 'realType' )); $out = $this->Template->generate('classes', 'test'); diff --git a/lib/Cake/Console/Templates/default/classes/test.ctp b/lib/Cake/Console/Templates/default/classes/test.ctp index ca394cf20e7..4677ab649e7 100644 --- a/lib/Cake/Console/Templates/default/classes/test.ctp +++ b/lib/Cake/Console/Templates/default/classes/test.ctp @@ -24,7 +24,7 @@ App::uses('', ''); /** - * Test + * Test * */ class Test extends { diff --git a/lib/Cake/Console/Templates/default/views/index.ctp b/lib/Cake/Console/Templates/default/views/index.ctp index b332daced95..807d7a2fce8 100644 --- a/lib/Cake/Console/Templates/default/views/index.ctp +++ b/lib/Cake/Console/Templates/default/views/index.ctp @@ -66,7 +66,7 @@
Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));\n"; echo "\t\techo \$this->Paginator->numbers(array('separator' => ''));\n"; echo "\t\techo \$this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));\n"; diff --git a/lib/Cake/Console/Templates/skel/Config/bootstrap.php b/lib/Cake/Console/Templates/skel/Config/bootstrap.php index fce18ccba42..aa1d372b072 100644 --- a/lib/Cake/Console/Templates/skel/Config/bootstrap.php +++ b/lib/Cake/Console/Templates/skel/Config/bootstrap.php @@ -2,7 +2,7 @@ /** * This file is loaded automatically by the app/webroot/index.php file after core.php * - * This file should load/create any application wide configuration settings, such as + * This file should load/create any application wide configuration settings, such as * Caching, Logging, loading additional configuration files. * * You should also use this file to include any files that provide global functions/constants diff --git a/lib/Cake/Console/Templates/skel/Config/routes.php b/lib/Cake/Console/Templates/skel/Config/routes.php index d984d96ef51..dfc6b579dbc 100644 --- a/lib/Cake/Console/Templates/skel/Config/routes.php +++ b/lib/Cake/Console/Templates/skel/Config/routes.php @@ -32,7 +32,7 @@ Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); /** - * Load all plugin routes. See the CakePlugin documentation on + * Load all plugin routes. See the CakePlugin documentation on * how to customize the loading of plugin routes. */ CakePlugin::routes(); diff --git a/lib/Cake/Controller/Component/Auth/BaseAuthorize.php b/lib/Cake/Controller/Component/Auth/BaseAuthorize.php index 926f5186de6..f4c33fe3d3e 100644 --- a/lib/Cake/Controller/Component/Auth/BaseAuthorize.php +++ b/lib/Cake/Controller/Component/Auth/BaseAuthorize.php @@ -131,7 +131,7 @@ public function action($request, $path = '/:plugin/:controller/:action') { * }}} * * You can use the custom CRUD operations to create additional generic permissions - * that behave like CRUD operations. Doing this will require additional columns on the + * that behave like CRUD operations. Doing this will require additional columns on the * permissions lookup. When using with DbAcl, you'll have to add additional _admin type columns * to the `aros_acos` table. * diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index f099cd3cea5..27353a0d778 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -519,7 +519,7 @@ public function login($user = null) { * Logs a user out, and returns the login action to redirect to. * Triggers the logout() method of all the authenticate objects, so they can perform * custom logout logic. AuthComponent will remove the session data, so - * there is no need to do that in an authentication object. Logging out + * there is no need to do that in an authentication object. Logging out * will also renew the session id. This helps mitigate issues with session replays. * * @return string AuthComponent::$logoutRedirect diff --git a/lib/Cake/Controller/Component/RequestHandlerComponent.php b/lib/Cake/Controller/Component/RequestHandlerComponent.php index e262d7f78da..9f38c565224 100644 --- a/lib/Cake/Controller/Component/RequestHandlerComponent.php +++ b/lib/Cake/Controller/Component/RequestHandlerComponent.php @@ -98,7 +98,7 @@ public function __construct(ComponentCollection $collection, $settings = array() /** * Checks to see if a file extension has been parsed by the Router, or if the * HTTP_ACCEPT_TYPE has matches only one content type with the supported extensions. - * If there is only one matching type between the supported content types & extensions, + * If there is only one matching type between the supported content types & extensions, * and the requested mime-types, RequestHandler::$ext is set to that value. * * @param Controller $controller A reference to the controller diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index d2702e9bbf5..e05b4add404 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -433,7 +433,7 @@ public static function mapResources($controller, $options = array()) { Router::connect($url, array( 'plugin' => $plugin, - 'controller' => $urlName, + 'controller' => $urlName, 'action' => $params['action'], '[method]' => $params['method'] ), diff --git a/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php index 4971f8e3e2c..355a19589dc 100644 --- a/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php @@ -157,7 +157,7 @@ public function testDecrement() { $result = Cache::read('test_decrement', 'apc'); $this->assertEqual(2, $result); - + } /** diff --git a/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php index ecc995dd393..81529bb913d 100644 --- a/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php @@ -352,7 +352,7 @@ public function testErrorWhenPathDoesNotExist() { /** * Testing the mask setting in FileEngine - * + * * @return void */ public function testMaskSetting() { diff --git a/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php index 4fd308acf74..e702c119953 100644 --- a/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php @@ -24,13 +24,13 @@ class TestMemcacheEngine extends MemcacheEngine { /** * public accessor to _parseServerString * - * @param string $server + * @param string $server * @return array */ public function parseServerString($server) { return $this->_parseServerString($server); } - + public function setMemcache($memcache) { $this->_Memcache = $memcache; } diff --git a/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php index 12bbee9781e..6e1a0cbc497 100644 --- a/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php @@ -145,7 +145,7 @@ public function testDecrement() { $result = Cache::read('test_decrement', 'wincache'); $this->assertEqual(2, $result); - + } /** diff --git a/lib/Cake/Test/Case/Console/Command/AclShellTest.php b/lib/Cake/Test/Case/Console/Command/AclShellTest.php index 7efc4fa7c37..85023711c2f 100644 --- a/lib/Cake/Test/Case/Console/Command/AclShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/AclShellTest.php @@ -81,7 +81,7 @@ public function testViewWithModelForeignKeyOutput() { $this->Task->expects($this->at(4))->method('out') ->with($this->stringContains('[3] Gandalf')); - + $this->Task->expects($this->at(6))->method('out') ->with($this->stringContains('[5] MyModel.2')); @@ -217,7 +217,7 @@ public function testDeny() { $this->Task->args = array('AuthUser.2', 'ROOT/Controller1', 'create'); $this->Task->expects($this->at(0))->method('out') ->with($this->stringContains('Permission denied'), true); - + $this->Task->deny(); $node = $this->Task->Acl->Aro->node(array('model' => 'AuthUser', 'foreign_key' => 2)); @@ -264,7 +264,7 @@ public function testInherit() { ->with($this->matchesRegularExpression('/Permission .*granted/'), true); $this->Task->expects($this->at(1))->method('out') ->with($this->matchesRegularExpression('/Permission .*inherited/'), true); - + $this->Task->args = array('AuthUser.2', 'ROOT/Controller1', 'create'); $this->Task->grant(); @@ -302,7 +302,7 @@ public function testGetPath() { public function testInitDb() { $this->Task->expects($this->once())->method('dispatchShell') ->with('schema create DbAcl'); - + $this->Task->initdb(); } } diff --git a/lib/Cake/Test/Case/Console/Command/BakeShellTest.php b/lib/Cake/Test/Case/Console/Command/BakeShellTest.php index 8ada2cdeb0a..c4667c7cf04 100644 --- a/lib/Cake/Test/Case/Console/Command/BakeShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/BakeShellTest.php @@ -84,10 +84,10 @@ public function testAllWithModelName() { $this->Shell->DbConfig = $this->getMock('DbConfigTask', array(), array(&$this->Dispatcher)); $this->Shell->DbConfig->expects($this->once())->method('getConfig')->will($this->returnValue('test')); - + $this->Shell->Model->expects($this->never())->method('getName'); $this->Shell->Model->expects($this->once())->method('bake')->will($this->returnValue(true)); - + $this->Shell->Controller->expects($this->once())->method('bake')->will($this->returnValue(true)); $this->Shell->View->expects($this->once())->method('execute'); diff --git a/lib/Cake/Test/Case/Console/Command/CommandListShellTest.php b/lib/Cake/Test/Case/Console/Command/CommandListShellTest.php index 49f04837d2b..05c4a56eefc 100644 --- a/lib/Cake/Test/Case/Console/Command/CommandListShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/CommandListShellTest.php @@ -146,7 +146,7 @@ public function testMainXml() { $output = $this->Shell->stdout->output; - $find = ''; + $find = ''; $this->assertContains($find, $output); $find = ''; diff --git a/lib/Cake/Test/Case/Console/Command/ShellTest.php b/lib/Cake/Test/Case/Console/Command/ShellTest.php index 92bc7b101eb..fdead81d175 100644 --- a/lib/Cake/Test/Case/Console/Command/ShellTest.php +++ b/lib/Cake/Test/Case/Console/Command/ShellTest.php @@ -184,7 +184,7 @@ public function testInitialize() { $this->assertTrue(isset($this->Shell->Comment)); $this->assertInstanceOf('Comment', $this->Shell->Comment); $this->assertEqual($this->Shell->modelClass, 'Comment'); - + App::build(); } @@ -832,7 +832,7 @@ public function testWrapText() { /** * Testing camel cased naming of tasks - * + * * @return void */ public function testShellNaming() { diff --git a/lib/Cake/Test/Case/Console/Command/Task/DbConfigTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/DbConfigTaskTest.php index c8a4c031779..56db22d1ab7 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/DbConfigTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/DbConfigTaskTest.php @@ -40,7 +40,7 @@ public function setUp() { $out = $this->getMock('ConsoleOutput', array(), array(), '', false); $in = $this->getMock('ConsoleInput', array(), array(), '', false); - $this->Task = $this->getMock('DbConfigTask', + $this->Task = $this->getMock('DbConfigTask', array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest', '_verify'), array($out, $out, $in) ); diff --git a/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php index 2435701cf52..63d9a51b637 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php @@ -188,7 +188,7 @@ function testImportRecordsNoEscaping() { $this->Task->connection = 'test'; $this->Task->path = '/my/path/'; $result = $this->Task->bake('Article', false, array( - 'fromTable' => true, + 'fromTable' => true, 'schema' => 'Article', 'records' => false )); @@ -209,7 +209,7 @@ public function testExecuteWithNamedModel() { $this->Task->expects($this->at(0))->method('createFile') ->with($filename, $this->stringContains('class ArticleFixture')); - + $this->Task->execute(); } diff --git a/lib/Cake/Test/Case/Console/Command/Task/PluginTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/PluginTaskTest.php index 72e189f6d97..96155ae4a72 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/PluginTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/PluginTaskTest.php @@ -45,12 +45,12 @@ public function setUp() { $this->out = $this->getMock('ConsoleOutput', array(), array(), '', false); $this->in = $this->getMock('ConsoleInput', array(), array(), '', false); - $this->Task = $this->getMock('PluginTask', + $this->Task = $this->getMock('PluginTask', array('in', 'err', 'createFile', '_stop', 'clear'), array($this->out, $this->out, $this->in) ); $this->Task->path = TMP . 'tests' . DS; - + $this->_paths = $paths = App::path('plugins'); foreach ($paths as $i => $p) { if (!is_dir($p)) { @@ -84,7 +84,7 @@ public function testBakeFoldersAndFiles() { $path = $this->Task->path . 'BakeTestPlugin'; $this->assertTrue(is_dir($path), 'No plugin dir %s'); - + $directories = array( 'Config' . DS . 'Schema', 'Model' . DS . 'Behavior', @@ -155,7 +155,7 @@ public function testExecuteWithOneArg() { $file = $path . DS . 'Model' . DS . 'BakeTestPluginAppModel.php'; $this->Task->expects($this->at(3))->method('createFile') ->with($file, new PHPUnit_Framework_Constraint_IsAnything()); - + $this->Task->args = array('BakeTestPlugin'); $this->Task->execute(); @@ -174,7 +174,7 @@ public function testFindPathNonExistant() { $last = count($paths); $paths[] = '/fake/path'; - $this->Task = $this->getMock('PluginTask', + $this->Task = $this->getMock('PluginTask', array('in', 'out', 'err', 'createFile', '_stop'), array($this->out, $this->out, $this->in) ); @@ -183,7 +183,7 @@ public function testFindPathNonExistant() { // Make sure the added path is filtered out. $this->Task->expects($this->exactly($last)) ->method('out'); - + $this->Task->expects($this->once()) ->method('in') ->will($this->returnValue($last)); diff --git a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php index 5210b9e518a..7bc290457c3 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php @@ -130,7 +130,7 @@ public function testExecuteWithAbsolutePath() { } /** - * test bake with CakePHP on the include path. The constants should remain commented out. + * test bake with CakePHP on the include path. The constants should remain commented out. * * @return void */ diff --git a/lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php index ef6d61746d7..581615b46a6 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php @@ -613,7 +613,7 @@ public function testExecuteInteractive() { TMP . 'ViewTaskComments' . DS . 'index.ctp', $this->stringContains('ViewTaskComment') ); - + $this->Task->expects($this->at(4))->method('createFile') ->with( TMP . 'ViewTaskComments' . DS . 'view.ctp', @@ -631,7 +631,7 @@ public function testExecuteInteractive() { TMP . 'ViewTaskComments' . DS . 'edit.ctp', $this->stringContains('Edit View Task Comment') ); - + $this->Task->expects($this->exactly(4))->method('createFile'); $this->Task->execute(); } @@ -678,7 +678,7 @@ public function testExecuteInteractiveWithAdmin() { TMP . 'ViewTaskComments' . DS . 'admin_index.ctp', $this->stringContains('ViewTaskComment') ); - + $this->Task->expects($this->at(4))->method('createFile') ->with( TMP . 'ViewTaskComments' . DS . 'admin_view.ctp', @@ -696,7 +696,7 @@ public function testExecuteInteractiveWithAdmin() { TMP . 'ViewTaskComments' . DS . 'admin_edit.ctp', $this->stringContains('Edit View Task Comment') ); - + $this->Task->expects($this->exactly(4))->method('createFile'); $this->Task->execute(); } diff --git a/lib/Cake/Test/Case/Console/ConsoleErrorHandlerTest.php b/lib/Cake/Test/Case/Console/ConsoleErrorHandlerTest.php index cb4d225095f..662f6b35a9a 100644 --- a/lib/Cake/Test/Case/Console/ConsoleErrorHandlerTest.php +++ b/lib/Cake/Test/Case/Console/ConsoleErrorHandlerTest.php @@ -87,7 +87,7 @@ public function testNonCakeExceptions() { ConsoleErrorHandler::$stderr->expects($this->once())->method('write') ->with($this->stringContains('Too many parameters.')); - + $this->Error->expects($this->once()) ->method('_stop') ->with(1); @@ -102,7 +102,7 @@ public function testNonCakeExceptions() { */ public function testError404Exception() { $exception = new NotFoundException('dont use me in cli.'); - + ConsoleErrorHandler::$stderr->expects($this->once())->method('write') ->with($this->stringContains('dont use me in cli.')); diff --git a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php index 026a4312cd6..3a4a6c29117 100644 --- a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php +++ b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php @@ -48,7 +48,7 @@ public function testEpilog() { $this->assertEquals($parser, $result, 'Setting epilog is not chainable'); $this->assertEquals('A test', $parser->epilog(), 'getting value is wrong.'); - + $result = $parser->epilog(array('A test', 'something')); $this->assertEquals("A test\nsomething", $parser->epilog(), 'getting value is wrong.'); } @@ -116,7 +116,7 @@ public function testAddOptionDefault() { )); $result = $parser->parse(array('--test')); $this->assertEquals(array('test' => 'default value', 'help' => false), $result[0], 'Default value did not parse out'); - + $parser = new ConsoleOptionParser('test', false); $parser->addOption('test', array( 'default' => 'default value', @@ -165,7 +165,7 @@ public function testAddOptionBoolean() { $result = $parser->parse(array('--test', 'value')); $expected = array(array('test' => true, 'help' => false), array('value')); $this->assertEquals($expected, $result); - + $result = $parser->parse(array('value')); $expected = array(array('test' => false, 'help' => false), array('value')); $this->assertEquals($expected, $result); @@ -249,7 +249,7 @@ public function testOptionThatDoesNotExist() { $result = $parser->parse(array('--fail', 'other')); } - + /** * test parsing short options that do not exist. * @@ -271,7 +271,7 @@ public function testShortOptionThatDoesNotExist() { public function testOptionWithChoices() { $parser = new ConsoleOptionParser('test', false); $parser->addOption('name', array('choices' => array('mark', 'jose'))); - + $result = $parser->parse(array('--name', 'mark')); $expected = array('name' => 'mark', 'help' => false); $this->assertEquals($expected, $result[0], 'Got the correct value.'); @@ -519,7 +519,7 @@ public function testBuildFromArray() { $args = $parser->arguments(); $this->assertEquals(2, count($args)); - + $commands = $parser->subcommands(); $this->assertEquals(1, count($commands)); } @@ -567,7 +567,7 @@ public function testParsingWithSubParser() { ) ) )); - + $result = $parser->parse(array('--secondary', '--fourth', '4', 'c'), 'sub'); $expected = array(array( 'secondary' => true, diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php index adb09bfd34b..709b9bdfea2 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php @@ -3,7 +3,7 @@ * ActionsAuthorizeTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @@ -77,7 +77,7 @@ public function testAuthorizeFailure() { ->method('check') ->with($user, '/controllers/Posts/index') ->will($this->returnValue(false)); - + $this->assertFalse($this->auth->authorize($user['User'], $request)); } @@ -106,7 +106,7 @@ public function testAuthorizeSuccess() { ->method('check') ->with($user, '/controllers/Posts/index') ->will($this->returnValue(true)); - + $this->assertTrue($this->auth->authorize($user['User'], $request)); } diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php index 2699c17f933..d742495a606 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php @@ -3,7 +3,7 @@ * BasicAuthenticateTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/ControllerAuthorizeTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/ControllerAuthorizeTest.php index ef46e01beab..1ece403118f 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/ControllerAuthorizeTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/ControllerAuthorizeTest.php @@ -3,7 +3,7 @@ * ControllerAuthorizeTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @@ -36,12 +36,12 @@ public function setUp() { $this->components->expects($this->any()) ->method('getController') ->will($this->returnValue($this->controller)); - + $this->auth = new ControllerAuthorize($this->components); } /** - * + * * @expectedException CakeException */ public function testControllerTypeError() { @@ -74,7 +74,7 @@ public function testAuthorizeFailure() { public function testAuthorizeSuccess() { $user = array('User' => array('username' => 'mark')); $request = new CakeRequest('/posts/index', false); - + $this->controller->expects($this->once()) ->method('isAuthorized') ->with($user) diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php index 1b4b6d46cd1..ff726d8c1e6 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php @@ -3,7 +3,7 @@ * CrudAuthorizeTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @@ -179,7 +179,7 @@ public function testMapActionsSet() { public function testAutoPrefixMapActions() { Configure::write('Routing.prefixes', array('admin', 'manager')); Router::reload(); - + $auth = new CrudAuthorize($this->Components); $this->assertTrue(isset($auth->settings['actionMap']['admin_index'])); } diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php index 01dcdab2f92..dc8b4fc5fc4 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php @@ -3,7 +3,7 @@ * DigestAuthenticateTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php index 70bfff45ca4..89b6c53d2e0 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php @@ -3,7 +3,7 @@ * FormAuthenticateTest file * * PHP 5 - * + * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * diff --git a/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php b/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php index 0ddd8c0dce9..f5d9063f989 100644 --- a/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php @@ -76,7 +76,7 @@ public function setUp() { $this->Cookie = $this->getMock('CookieComponent', array('_setcookie'), array($Collection)); $this->Controller = new CookieComponentTestController(); $this->Cookie->initialize($this->Controller); - + $this->Cookie->name = 'CakeTestCookie'; $this->Cookie->time = 10; $this->Cookie->path = '/'; diff --git a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php index 1a754fdd793..d19d868c37b 100644 --- a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php @@ -453,7 +453,7 @@ public function testDefaultPaginateParams() { $Controller->params['url'] = array(); $Controller->constructClasses(); $Controller->Paginator->settings = array( - 'order' => 'PaginatorControllerPost.id DESC', + 'order' => 'PaginatorControllerPost.id DESC', 'maxLimit' => 10, 'paramType' => 'named' ); @@ -502,7 +502,7 @@ public function testPaginateMissingModel() { } /** - * test that option merging prefers specific models + * test that option merging prefers specific models * * @return void */ @@ -671,7 +671,7 @@ public function testValidateSortVirtualField() { ->method('hasField') ->with('something') ->will($this->returnValue(false)); - + $model->expects($this->at(1)) ->method('hasField') ->with('something', true) diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index ab5e4a1f3d5..a0f40c9032c 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -135,7 +135,7 @@ class SecurityComponentTest extends CakeTestCase { */ public function setUp() { parent::setUp(); - + $request = new CakeRequest('posts/index', false); $request->addParams(array('controller' => 'posts', 'action' => 'index')); $this->Controller = new SecurityTestController($request); @@ -492,7 +492,7 @@ public function testValidatePostFormHacking() { } /** - * Test that objects can't be passed into the serialized string. This was a vector for RFI and LFI + * Test that objects can't be passed into the serialized string. This was a vector for RFI and LFI * attacks. Thanks to Felix Wilhelm * * @return void @@ -641,7 +641,7 @@ public function testValidatePostMultipleSelect() { $fields = '19464422eafe977ee729c59222af07f983010c5f%3A'; $this->Controller->request->data = array( 'User.password' => 'bar', 'User.name' => 'foo', 'User.is_valid' => '1', - 'Tag' => array('Tag' => array(1)), + 'Tag' => array('Tag' => array(1)), '_Token' => compact('key', 'fields', 'unlocked'), ); $result = $this->Controller->Security->validatePost($this->Controller); @@ -1056,7 +1056,7 @@ public function testBlackHoleNotDeletingSessionInformation() { } /** - * test that csrf checks are skipped for request action. + * test that csrf checks are skipped for request action. * * @return void */ @@ -1073,7 +1073,7 @@ public function testCsrfSkipRequestAction() { } /** - * test setting + * test setting * * @return void */ @@ -1117,9 +1117,9 @@ public function testCsrfNonceConsumption() { $this->Security->validatePost = false; $this->Security->csrfCheck = true; $this->Security->csrfExpires = '+10 minutes'; - + $this->Security->Session->write('_Token.csrfTokens', array('nonce1' => strtotime('+10 minutes'))); - + $this->Controller->request = $this->getMock('CakeRequest', array('is')); $this->Controller->request->expects($this->once())->method('is') ->with('post') @@ -1148,7 +1148,7 @@ public function testCsrfNonceVacuum() { $this->Security->validatePost = false; $this->Security->csrfCheck = true; $this->Security->csrfExpires = '+10 minutes'; - + $this->Security->Session->write('_Token.csrfTokens', array( 'valid' => strtotime('+30 minutes'), 'poof' => strtotime('-11 minutes'), @@ -1158,7 +1158,7 @@ public function testCsrfNonceVacuum() { $tokens = $this->Security->Session->read('_Token.csrfTokens'); $this->assertEquals(2, count($tokens), 'Too many tokens left behind'); $this->assertNotEmpty('valid', $tokens, 'Valid token was removed.'); - + } /** @@ -1170,9 +1170,9 @@ public function testCsrfBlackHoleOnKeyMismatch() { $this->Security->validatePost = false; $this->Security->csrfCheck = true; $this->Security->csrfExpires = '+10 minutes'; - + $this->Security->Session->write('_Token.csrfTokens', array('nonce1' => strtotime('+10 minutes'))); - + $this->Controller->request = $this->getMock('CakeRequest', array('is')); $this->Controller->request->expects($this->once())->method('is') ->with('post') diff --git a/lib/Cake/Test/Case/Controller/ControllerTest.php b/lib/Cake/Test/Case/Controller/ControllerTest.php index 2bd74090a08..36f72110e88 100644 --- a/lib/Cake/Test/Case/Controller/ControllerTest.php +++ b/lib/Cake/Test/Case/Controller/ControllerTest.php @@ -274,21 +274,21 @@ public function index($testId, $test2Id) { public function returner() { return 'I am from the controller.'; } - + protected function protected_m() { - + } private function private_m() { - + } public function _hidden() { - + } public function admin_add() { - + } } @@ -1319,5 +1319,5 @@ public function testInvokeActionReturnValue() { $this->assertEquals('I am from the controller.', $result); } - + } diff --git a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php index eb6f69862b8..909c5dbf986 100644 --- a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php @@ -238,7 +238,7 @@ public function testBeforeFind() { /** * testBeforeFindWithNonExistingBinding method - * + * * @expectedException PHPUnit_Framework_Error_Warning * @return void */ @@ -3304,15 +3304,15 @@ public function testResetAddedAssociation() { $this->assertEqual($expected, array_keys($result)); $this->assertTrue(empty($this->Article->hasMany['ArticlesTag'])); - + $this->JoinA =& ClassRegistry::init('JoinA'); $this->JoinB =& ClassRegistry::init('JoinB'); $this->JoinC =& ClassRegistry::init('JoinC'); - + $this->JoinA->Behaviors->attach('Containable'); $this->JoinB->Behaviors->attach('Containable'); $this->JoinC->Behaviors->attach('Containable'); - + $this->JoinA->JoinB->find('all', array('contain' => array('JoinA'))); $this->JoinA->bindModel(array('hasOne' => array('JoinAsJoinC' => array('joinTable' => 'as_cs'))), false); $result = $this->JoinA->hasOne; diff --git a/lib/Cake/Test/Case/Model/CakeSchemaTest.php b/lib/Cake/Test/Case/Model/CakeSchemaTest.php index c61783c5f53..f83c5a61b3a 100644 --- a/lib/Cake/Test/Case/Model/CakeSchemaTest.php +++ b/lib/Cake/Test/Case/Model/CakeSchemaTest.php @@ -566,7 +566,7 @@ public function testSchemaRead() { )); $this->assertFalse(isset($read['tables']['missing']['posts_tags']), 'Join table marked as missing'); } - + /** * testSchemaReadWithAppModel method * @@ -575,7 +575,7 @@ public function testSchemaRead() { */ public function testSchemaReadWithAppModel() { $connections = ConnectionManager::enumConnectionObjects(); - ConnectionManager::drop('default'); + ConnectionManager::drop('default'); ConnectionManager::create('default', $connections['test']); try { $read = $this->Schema->read(array( diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php index 6455ec28c0c..54fdad8dc4c 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php @@ -92,7 +92,7 @@ public function getPrimaryKey($model) { public function clearFieldMappings() { $this->_fieldMappings = array(); } - + /** * describe method * @@ -568,11 +568,11 @@ public function testUpdateAllSyntax() { */ public function testGetPrimaryKey() { $schema = $this->model->schema(); - + $this->db->describe = $schema; $result = $this->db->getPrimaryKey($this->model); $this->assertEqual($result, 'id'); - + unset($schema['id']['key']); $this->db->describe = $schema; $result = $this->db->getPrimaryKey($this->model); @@ -586,7 +586,7 @@ public function testGetPrimaryKey() { */ public function testInsertMulti() { $this->db->describe = $this->model->schema(); - + $fields = array('id', 'name', 'login'); $values = array( array(1, 'Larry', 'PhpNut'), diff --git a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php index 800bd917f0d..f870aac1cd1 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php @@ -612,7 +612,7 @@ public function testLog() { $result = Set::extract($log['log'], '/query'); $expected = array('Query 1', 'Query 2'); $this->assertEqual($expected, $result); - + $oldDebug = Configure::read('debug'); Configure::write('debug', 2); ob_start(); diff --git a/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php index ac64b6a366a..7d29a397c16 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php @@ -146,7 +146,7 @@ public function testRead() { $result = $this->storage->read('foo'); $expected = 'Some value'; $this->assertEquals($expected, $result); - + $result = $this->storage->read('made up value'); $this->assertFalse($result); } @@ -158,7 +158,7 @@ public function testRead() { */ public function testDestroy() { $this->storage->write('foo', 'Some value'); - + $this->assertTrue($this->storage->destroy('foo'), 'Destroy failed'); $this->assertFalse($this->storage->read('foo'), 'Value still present.'); } diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index 909cdc0c0a8..b95cc3f075c 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -3457,7 +3457,7 @@ public function testSaveAllValidation() { ) ) ); - + $this->assertTrue($result[0]['Post']['updated'] >= $newTs); $this->assertTrue($result[1]['Post']['updated'] >= $newTs); $this->assertTrue($result[3]['Post']['updated'] >= $newTs); @@ -4372,7 +4372,7 @@ public function testSaveAssociatedTransactionNoRollback() { $mock = $this->getMock( 'DboSource', - array('connect', 'rollback', 'describe', 'create', 'begin'), + array('connect', 'rollback', 'describe', 'create', 'begin'), array(), 'MockAssociatedTransactionDboSource', false @@ -4754,7 +4754,7 @@ public function testSaveManyValidation() { $result = $TestModel->find('all', array( 'fields' => array('id', 'author_id', 'title', 'body', 'published'), - 'recursive' => -1, + 'recursive' => -1, 'order' => 'Post.id ASC' )); $errors = array(1 => array('title' => array('This field cannot be left blank'))); @@ -4810,7 +4810,7 @@ public function testSaveManyValidation() { $result = $TestModel->find('all', array( 'fields' => array('id', 'author_id', 'title', 'body', 'published'), - 'recursive' => -1, + 'recursive' => -1, 'order' => 'Post.id ASC' )); $this->assertEqual($expected, $result); diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index acd0ba2a23f..6af42d7459f 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -85,7 +85,7 @@ public function testConstructionGetParsing() { ); $request = new CakeRequest('some/path'); $this->assertEqual($request->query, $_GET); - + $_GET = array( 'one' => 'param', 'two' => 'banana', @@ -106,7 +106,7 @@ public function testQueryStringParsingFromInputUrl() { $expected = array('one' => 'something', 'two' => 'else'); $this->assertEqual($request->query, $expected); $this->assertEquals('some/path?one=something&two=else', $request->url); - + } /** @@ -553,7 +553,7 @@ public function testMethod() { public function testHost() { $_SERVER['HTTP_HOST'] = 'localhost'; $request = new CakeRequest('some/path'); - + $this->assertEquals('localhost', $request->host()); } @@ -617,7 +617,7 @@ public function testisAjaxFlashAndFriends() { $_SERVER['HTTP_USER_AGENT'] = 'Android 2.0'; $this->assertTrue($request->is('mobile')); $this->assertTrue($request->isMobile()); - + $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Windows NT 5.1; rv:2.0b6pre) Gecko/20100902 Firefox/4.0b6pre Fennec/2.0b1pre'; $this->assertTrue($request->is('mobile')); $this->assertTrue($request->isMobile()); @@ -782,7 +782,7 @@ public function testHeader() { public function testAccepts() { $_SERVER['HTTP_ACCEPT'] = 'text/xml,application/xml;q=0.9,application/xhtml+xml,text/html,text/plain,image/png'; $request = new CakeRequest('/', false); - + $result = $request->accepts(); $expected = array( 'text/xml', 'application/xhtml+xml', 'text/html', 'text/plain', 'image/png', 'application/xml' @@ -1047,7 +1047,7 @@ public static function environmentGenerator() { 'IIS - No rewrite base path', array( 'App' => array( - 'base' => false, + 'base' => false, 'baseUrl' => '/index.php', 'dir' => 'app', 'webroot' => 'webroot' @@ -1076,7 +1076,7 @@ public static function environmentGenerator() { 'IIS - No rewrite with path, no PHP_SELF', array( 'App' => array( - 'base' => false, + 'base' => false, 'baseUrl' => '/index.php?', 'dir' => 'app', 'webroot' => 'webroot' @@ -1101,21 +1101,21 @@ public static function environmentGenerator() { 'IIS - No rewrite sub dir 2', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/site/index.php', - 'dir' => 'app', - 'webroot' => 'webroot', + 'base' => false, + 'baseUrl' => '/site/index.php', + 'dir' => 'app', + 'webroot' => 'webroot', ), 'SERVER' => array( - 'SCRIPT_NAME' => '/site/index.php', - 'PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot', - 'QUERY_STRING' => '', - 'REQUEST_URI' => '/site/index.php', - 'URL' => '/site/index.php', - 'SCRIPT_FILENAME' => 'C:\\Inetpub\\wwwroot\\site\\index.php', - 'DOCUMENT_ROOT' => 'C:\\Inetpub\\wwwroot', - 'PHP_SELF' => '/site/index.php', - 'argv' => array(), + 'SCRIPT_NAME' => '/site/index.php', + 'PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot', + 'QUERY_STRING' => '', + 'REQUEST_URI' => '/site/index.php', + 'URL' => '/site/index.php', + 'SCRIPT_FILENAME' => 'C:\\Inetpub\\wwwroot\\site\\index.php', + 'DOCUMENT_ROOT' => 'C:\\Inetpub\\wwwroot', + 'PHP_SELF' => '/site/index.php', + 'argv' => array(), 'argc' => 0 ), ), @@ -1129,22 +1129,22 @@ public static function environmentGenerator() { 'IIS - No rewrite sub dir 2 with path', array( 'App' => array( - 'base' => false, + 'base' => false, 'baseUrl' => '/site/index.php', 'dir' => 'app', 'webroot' => 'webroot' ), 'GET' => array('/posts/add' => ''), 'SERVER' => array( - 'SCRIPT_NAME' => '/site/index.php', - 'PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot', - 'QUERY_STRING' => '/posts/add', - 'REQUEST_URI' => '/site/index.php/posts/add', - 'URL' => '/site/index.php/posts/add', - 'ORIG_PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot\\site\\index.php', - 'DOCUMENT_ROOT' => 'C:\\Inetpub\\wwwroot', - 'PHP_SELF' => '/site/index.php/posts/add', - 'argv' => array('/posts/add'), + 'SCRIPT_NAME' => '/site/index.php', + 'PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot', + 'QUERY_STRING' => '/posts/add', + 'REQUEST_URI' => '/site/index.php/posts/add', + 'URL' => '/site/index.php/posts/add', + 'ORIG_PATH_TRANSLATED' => 'C:\\Inetpub\\wwwroot\\site\\index.php', + 'DOCUMENT_ROOT' => 'C:\\Inetpub\\wwwroot', + 'PHP_SELF' => '/site/index.php/posts/add', + 'argv' => array('/posts/add'), 'argc' => 1 ), ), @@ -1158,16 +1158,16 @@ public static function environmentGenerator() { 'Apache - No rewrite, document root set to webroot, requesting path', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/index.php', - 'dir' => 'app', + 'base' => false, + 'baseUrl' => '/index.php', + 'dir' => 'app', 'webroot' => 'webroot' ), 'SERVER' => array( - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', - 'QUERY_STRING' => '', - 'REQUEST_URI' => '/index.php/posts/index', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', + 'QUERY_STRING' => '', + 'REQUEST_URI' => '/index.php/posts/index', 'SCRIPT_NAME' => '/index.php', 'PATH_INFO' => '/posts/index', 'PHP_SELF' => '/index.php/posts/index', @@ -1183,19 +1183,19 @@ public static function environmentGenerator() { 'Apache - No rewrite, document root set to webroot, requesting root', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/index.php', - 'dir' => 'app', + 'base' => false, + 'baseUrl' => '/index.php', + 'dir' => 'app', 'webroot' => 'webroot' ), 'SERVER' => array( - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', - 'QUERY_STRING' => '', - 'REQUEST_URI' => '/index.php', - 'SCRIPT_NAME' => '/index.php', - 'PATH_INFO' => '', - 'PHP_SELF' => '/index.php', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', + 'QUERY_STRING' => '', + 'REQUEST_URI' => '/index.php', + 'SCRIPT_NAME' => '/index.php', + 'PATH_INFO' => '', + 'PHP_SELF' => '/index.php', ), ), array( @@ -1208,16 +1208,16 @@ public static function environmentGenerator() { 'Apache - No rewrite, document root set above top level cake dir, requesting path', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/site/index.php', - 'dir' => 'app', + 'base' => false, + 'baseUrl' => '/site/index.php', + 'dir' => 'app', 'webroot' => 'webroot' ), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', - 'REQUEST_URI' => '/site/index.php/posts/index', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', + 'REQUEST_URI' => '/site/index.php/posts/index', 'SCRIPT_NAME' => '/site/index.php', 'PATH_INFO' => '/posts/index', 'PHP_SELF' => '/site/index.php/posts/index', @@ -1233,15 +1233,15 @@ public static function environmentGenerator() { 'Apache - No rewrite, document root set above top level cake dir, request root, no PATH_INFO', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/site/index.php', - 'dir' => 'app', + 'base' => false, + 'baseUrl' => '/site/index.php', + 'dir' => 'app', 'webroot' => 'webroot' ), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', 'REQUEST_URI' => '/site/index.php/', 'SCRIPT_NAME' => '/site/index.php', 'PHP_SELF' => '/site/index.php/', @@ -1257,17 +1257,17 @@ public static function environmentGenerator() { 'Apache - No rewrite, document root set above top level cake dir, request path, with GET', array( 'App' => array( - 'base' => false, - 'baseUrl' => '/site/index.php', - 'dir' => 'app', + 'base' => false, + 'baseUrl' => '/site/index.php', + 'dir' => 'app', 'webroot' => 'webroot' ), 'GET' => array('a' => 'b', 'c' => 'd'), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', - 'REQUEST_URI' => '/site/index.php/posts/index?a=b&c=d', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', + 'REQUEST_URI' => '/site/index.php/posts/index?a=b&c=d', 'SCRIPT_NAME' => '/site/index.php', 'PATH_INFO' => '/posts/index', 'PHP_SELF' => '/site/index.php/posts/index', @@ -1291,9 +1291,9 @@ public static function environmentGenerator() { 'webroot' => 'webroot' ), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', 'REQUEST_URI' => '/site/', 'SCRIPT_NAME' => '/site/app/webroot/index.php', 'PHP_SELF' => '/site/app/webroot/index.php', @@ -1315,9 +1315,9 @@ public static function environmentGenerator() { 'webroot' => 'webroot' ), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php', 'SCRIPT_NAME' => '/site/app/webroot/index.php', 'PHP_SELF' => '/site/app/webroot/index.php', 'PATH_INFO' => null, @@ -1340,9 +1340,9 @@ public static function environmentGenerator() { 'webroot' => 'webroot' ), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'PATH_INFO' => null, @@ -1366,9 +1366,9 @@ public static function environmentGenerator() { ), 'GET' => array('/posts/add' => ''), 'SERVER' => array( - 'SERVER_NAME' => 'localhost', - 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', - 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', + 'SERVER_NAME' => 'localhost', + 'DOCUMENT_ROOT' => '/Library/WebServer/Documents/site/app/webroot', + 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/app/webroot/index.php', 'SCRIPT_NAME' => '/index.php', 'QUERY_STRING' => '/posts/add&', 'PHP_SELF' => '/index.php', @@ -1438,7 +1438,7 @@ public function testDataWriting() { $request = new CakeRequest('posts/index'); $result = $request->data('Model.new_value', 'new value'); $this->assertSame($result, $request, 'Return was not $this'); - + $this->assertEquals($request->data['Model']['new_value'], 'new value'); $request->data('Post.title', 'New post')->data('Comment.1.author', 'Mark'); @@ -1456,13 +1456,13 @@ public function testDataWritingFalsey() { $request->data('Post.null', null); $this->assertNull($request->data['Post']['null']); - + $request->data('Post.false', false); $this->assertFalse($request->data['Post']['false']); - + $request->data('Post.zero', 0); $this->assertSame(0, $request->data['Post']['zero']); - + $request->data('Post.empty', ''); $this->assertSame('', $request->data['Post']['empty']); } @@ -1480,7 +1480,7 @@ public function testAcceptLanguage() { $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'es_mx;en_ca'; $result = CakeRequest::acceptLanguage(); $this->assertEquals(array('es-mx', 'en-ca'), $result, 'Languages do not match'); - + $result = CakeRequest::acceptLanguage('en-ca'); $this->assertTrue($result); @@ -1489,7 +1489,7 @@ public function testAcceptLanguage() { } /** - * test the here() method + * test the here() method * * @return void */ @@ -1521,7 +1521,7 @@ public function testInput() { $request = $this->getMock('CakeRequest', array('_readInput')); $request->expects($this->once())->method('_readInput') ->will($this->returnValue('I came from stdin')); - + $result = $request->input(); $this->assertEquals('I came from stdin', $result); } @@ -1540,7 +1540,7 @@ public function testInputDecode() { $this->assertEquals(array('name' => 'value'), (array)$result); } -/** +/** * Test input() decoding with additional arguments. * * @return void @@ -1560,7 +1560,7 @@ public function testInputDecodeExtraParams() { $result = $request->input('Xml::build', array('return' => 'domdocument')); $this->assertInstanceOf('DOMDocument', $result); $this->assertEquals( - 'Test', + 'Test', $result->getElementsByTagName('title')->item(0)->childNodes->item(0)->wholeText ); } diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index ceca433d32b..f04fb4163c1 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -146,7 +146,7 @@ public function testPluginMapResources() { 'named' => array(), 'plugin' => 'test_plugin', 'controller' => 'test_plugin', - 'action' => 'index', + 'action' => 'index', '[method]' => 'GET' ); $this->assertEqual($result, $expected); @@ -186,7 +186,7 @@ public function testPluginMapResourcesWithPrefix() { 'named' => array(), 'plugin' => 'test_plugin', 'controller' => 'test_plugin', - 'action' => 'index', + 'action' => 'index', '[method]' => 'GET' ); $this->assertEqual($result, $expected); diff --git a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php index 807b3bcd573..f5b68521f15 100644 --- a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php +++ b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php @@ -419,9 +419,9 @@ public function testInsert() { /** * Helper function to be used as callback and store the parameters of an insertMulti call * - * @param string $table - * @param string $fields - * @param string $values + * @param string $table + * @param string $fields + * @param string $values * @return boolean true */ function _insertCallback($table, $fields, $values) { diff --git a/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php b/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php index a7dbc13122e..5bd7f244085 100644 --- a/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php +++ b/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php @@ -257,7 +257,7 @@ public function testTriggerWithCollectReturn() { $this->Objects->TriggerMockSecond->expects($this->once()) ->method('callback') ->will($this->returnValue(array('three', 'four'))); - + $result = $this->Objects->trigger('callback', array(), array('collectReturn' => true)); $expected = array( array('one', 'two'), @@ -402,7 +402,7 @@ public function testnormalizeObjectArray() { 'Apple' => array('class' => 'Banana.Apple', 'settings' => array('foo' => 'bar')), ); $this->assertEquals($expected, $result); - + // This is the result after Controller::_mergeVars $components = array( 'Html' => null, diff --git a/lib/Cake/Test/Case/Utility/SecurityTest.php b/lib/Cake/Test/Case/Utility/SecurityTest.php index d18fc659f61..7758ad848fb 100644 --- a/lib/Cake/Test/Case/Utility/SecurityTest.php +++ b/lib/Cake/Test/Case/Utility/SecurityTest.php @@ -134,7 +134,7 @@ public function testCipher() { $key = 'my_key'; $result = Security::cipher($txt, $key); $this->assertEqual(Security::cipher($result, $key), $txt); - + $txt = 123456; $key = 'my_key'; $result = Security::cipher($txt, $key); diff --git a/lib/Cake/Test/Case/Utility/StringTest.php b/lib/Cake/Test/Case/Utility/StringTest.php index f4b04f60a32..f7832601442 100644 --- a/lib/Cake/Test/Case/Utility/StringTest.php +++ b/lib/Cake/Test/Case/Utility/StringTest.php @@ -322,7 +322,7 @@ public function testWrap() { This is the song th at never ends. This is the song that n -ever ends. This is +ever ends. This is the song that never ends. TEXT; diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index 27411b6f253..c6a45b4d6ff 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -845,7 +845,7 @@ public function testTextFieldGenerationForFloats() { ); $this->assertTags($result, $expected); } - + /** * Tests correct generation of number fields for integer fields * @@ -1610,7 +1610,7 @@ public function testFormValidationAssociatedSecondLevel() { '/div' ); $this->assertTags($result, $expected); - + $result = $this->Form->error( 'ValidateUser.email', 'Invalid email', array('wrap' => false) ); @@ -7479,7 +7479,7 @@ public function testHtml5Inputs() { 'input' => array('type' => 'text', 'name' => 'data[User][query]', 'id' => 'UserQuery', 'value' => 'test') ); $this->assertTags($result, $expected); - + $result = $this->Form->input('User.website', array('type' => 'url', 'value' => 'http://domain.tld', 'div' => false, 'label' => false)); $expected = array( 'input' => array('type' => 'url', 'name' => 'data[User][website]', 'id' => 'UserWebsite', 'value' => 'http://domain.tld') diff --git a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php index f76b5e2e7e1..d2115a51d1c 100644 --- a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php @@ -798,7 +798,7 @@ public function testCharsetTag() { */ public function testBreadcrumb() { $this->assertNull($this->Html->getCrumbs()); - + $this->Html->addCrumb('First', '#first'); $this->Html->addCrumb('Second', '#second'); $this->Html->addCrumb('Third', '#third'); diff --git a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php index 5e0a2ee5275..df70fff5495 100644 --- a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php @@ -576,7 +576,7 @@ public function testItemEnclosureLength() { $File = new File($tmpFile, true, '0777'); $this->assertTrue($File->write('123'), 'Could not write to ' . $tmpFile); clearstatcache(true, $tmpFile); - + $item = array( 'title' => array( 'value' => 'My Title', diff --git a/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php b/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php index 14dd0ede91a..672d63efce8 100644 --- a/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php @@ -403,8 +403,8 @@ public function testToRss() { $yourTimezone = new DateTimeZone($timezone); $yourTime = new DateTime('now', $yourTimezone); $userOffset = $yourTimezone->getOffset($yourTime) / HOUR; - $this->assertEqual($yourTime->format('r'), $this->Time->toRss(time(), $userOffset)); - } + $this->assertEqual($yourTime->format('r'), $this->Time->toRss(time(), $userOffset)); + } } } diff --git a/lib/Cake/Test/Fixture/FixturizedTestCase.php b/lib/Cake/Test/Fixture/FixturizedTestCase.php index cd9cdd22c45..fc2436ac1ef 100644 --- a/lib/Cake/Test/Fixture/FixturizedTestCase.php +++ b/lib/Cake/Test/Fixture/FixturizedTestCase.php @@ -11,7 +11,7 @@ class FixturizedTestCase extends CakeTestCase { /** * Fixtures to use in this thes - * @var array + * @var array */ public $fixtures = array('core.category'); diff --git a/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php b/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php index ef8d583115d..c672dc1ad72 100644 --- a/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php +++ b/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php @@ -18,7 +18,7 @@ */ class TestAppCacheEngine extends CacheEngine { - public function write($key, $value, $duration) { + public function write($key, $value, $duration) { if ($key == 'fail') { return false; } diff --git a/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php b/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php index 4dc699a871e..7441a2f977b 100644 --- a/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php +++ b/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php @@ -22,6 +22,6 @@ class TestAppLog implements CakeLogInterface { public function write($type, $message) { - + } } diff --git a/lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME b/lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME index 2f1efb868da..f70592d9edc 100644 --- a/lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME +++ b/lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME @@ -23,7 +23,7 @@ mon "";"";/ "";"";/ "";"" % Appropriate date and time representation (%c) -% +% d_t_fmt "" % % Appropriate date representation (%x) @@ -31,18 +31,18 @@ d_t_fmt "< d_fmt "" % % Appropriate time representation (%X) -% +% t_fmt "" % % Appropriate AM/PM time representation (%r) -% +% t_fmt_ampm "" % % Strings for AM/PM % am_pm "";"" % -% Appropriate date representation (date(1)) +% Appropriate date representation (date(1)) date_fmt "/ / " diff --git a/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php b/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php index 93529c267c3..c16387b3959 100644 --- a/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php +++ b/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php @@ -10,22 +10,22 @@ public function open() { } public function close() { - + } public function read($id) { - + } public function write($id, $data) { - + } public function destroy($id) { - + } public function gc($expires = null) { - + } } \ No newline at end of file diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php index ded321cc028..990c2bc407a 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php @@ -17,5 +17,5 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class OtherTaskTask extends Shell { - + } \ No newline at end of file diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php index 075c78c08a6..e8c6732eb14 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php @@ -18,7 +18,7 @@ */ class TestPluginController extends TestPluginAppController { public $uses = array(); - + public function index() { $this->autoRender = false; } diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php index c372b46ae16..831e63727d1 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php @@ -29,5 +29,5 @@ public function decrement($key, $offset = 1) { } public function delete($key) { } public function clear($check) { } - + } diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php index 9e99ed6ff92..4b0ef514f46 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php @@ -19,6 +19,6 @@ class TestPluginLog implements CakeLogInterface { public function write($type, $message) { - + } } diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php index 35a60d6e83e..13657561f0d 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php @@ -9,22 +9,22 @@ public function open() { } public function close() { - + } public function read($id) { - + } public function write($id, $data) { - + } public function destroy($id) { - + } public function gc($expires = null) { - + } } \ No newline at end of file diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php index a95374c3e4f..cf5d5b200a9 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php @@ -1,5 +1,5 @@ Html->link('Test link', '#'); ?> \ No newline at end of file diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index dfdac30fb34..0a5db7b5568 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -494,9 +494,9 @@ protected static function assertReference(&$first, &$second, $message = '') { /** * Compatibility wrapper for assertIsA * - * @param string $object - * @param string $type - * @param string $message + * @param string $object + * @param string $type + * @param string $message * @return void */ protected static function assertIsA($object, $type, $message = '') { diff --git a/lib/Cake/TestSuite/CakeTestRunner.php b/lib/Cake/TestSuite/CakeTestRunner.php index e8c2791c948..d4dc0e14bc4 100644 --- a/lib/Cake/TestSuite/CakeTestRunner.php +++ b/lib/Cake/TestSuite/CakeTestRunner.php @@ -38,8 +38,8 @@ public function __construct($loader, $params) { /** * Actually run a suite of tests. Cake initializes fixtures here using the chosen fixture manager * - * @param PHPUnit_Framework_Test $suite - * @param array $arguments + * @param PHPUnit_Framework_Test $suite + * @param array $arguments * @return void */ public function doRun(PHPUnit_Framework_Test $suite, array $arguments = array()) { diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index 22ab2930eae..7bebd769558 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -64,7 +64,7 @@ function _getController($request, $response) { /** * Loads routes and resets if the test case dictates it should - * + * * @return void */ protected function _loadRoutes() { @@ -190,7 +190,7 @@ public function __call($name, $arguments) { * - `vars` Get the set view variables. * - `view` Get the rendered view, without a layout. * - `contents` Get the rendered view including the layout. - * - `result` Get the return value of the controller action. Useful + * - `result` Get the return value of the controller action. Useful * for testing requestAction methods. * * @param string $url The url to test @@ -260,7 +260,7 @@ protected function _testAction($url = '', $options = array()) { * Generates a mocked controller and mocks any classes passed to `$mocks`. By * default, `_stop()` is stubbed as is sending the response headers, so to not * interfere with testing. - * + * * ### Mocks: * * - `methods` Methods to mock on the controller. `_stop()` is mocked by default @@ -289,10 +289,10 @@ public function generate($controller, $mocks = array()) { )); } ClassRegistry::flush(); - + $mocks = array_merge_recursive(array( 'methods' => array('_stop'), - 'models' => array(), + 'models' => array(), 'components' => array() ), (array)$mocks); diff --git a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php index 9aedd486bfc..e2756ad4b2f 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php @@ -188,7 +188,7 @@ public function drop($db) { } $this->Schema->build(array($this->table => $this->fields)); try { - + $db->execute($db->dropSchema($this->Schema), array('log' => false)); } catch (Exception $e) { return false; diff --git a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php index 5978468adb7..8de7269dc67 100644 --- a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php @@ -61,7 +61,7 @@ public function paintFail($message) { $context = $context[2]; printf( - "FAIL on line %s\n%s in\n%s %s()\n\n", + "FAIL on line %s\n%s in\n%s %s()\n\n", $context['line'], $message->toString(), $context['file'], $realContext['function'] ); } @@ -80,7 +80,7 @@ public function paintFooter($result) { echo "FAILURES!!!\n"; } - echo "Test cases run: " . $result->count() . + echo "Test cases run: " . $result->count() . "/" . ($result->count() - $result->skippedCount()) . ', Passes: ' . $this->numAssertions . ', Failures: ' . $result->failureCount() . diff --git a/lib/Cake/Utility/Debugger.php b/lib/Cake/Utility/Debugger.php index 54ae3d5cf77..5c83fd122f2 100644 --- a/lib/Cake/Utility/Debugger.php +++ b/lib/Cake/Utility/Debugger.php @@ -547,8 +547,8 @@ public static function outputAs($format = null) { * * `Debugger::addFormat('custom', $data);` * - * Where $data is an array of strings that use String::insert() variable - * replacement. The template vars should be in a `{:id}` style. + * Where $data is an array of strings that use String::insert() variable + * replacement. The template vars should be in a `{:id}` style. * An error formatter can have the following keys: * * - 'error' - Used for the container for the error message. Gets the following template @@ -557,11 +557,11 @@ public static function outputAs($format = null) { * the contents of the other template keys. * - 'trace' - The container for a stack trace. Gets the following template * variables: `trace` - * - 'context' - The container element for the context variables. + * - 'context' - The container element for the context variables. * Gets the following templates: `id`, `context` * - 'links' - An array of HTML links that are used for creating links to other resources. * Typically this is used to create javascript links to open other sections. - * Link keys, are: `code`, `context`, `help`. See the js output format for an + * Link keys, are: `code`, `context`, `help`. See the js output format for an * example. * - 'traceLine' - Used for creating lines in the stacktrace. Gets the following * template variables: `reference`, `path`, `line` @@ -599,14 +599,14 @@ public static function addFormat($format, array $strings) { } /** - * Switches output format, updates format strings. + * Switches output format, updates format strings. * Can be used to switch the active output format: * * @param string $format Format to use, including 'js' for JavaScript-enhanced HTML, 'html' for * straight HTML output, or 'txt' for unformatted text. * @param array $strings Template strings to be used for the output format. * @return string - * @deprecated Use Debugger::outputAs() and Debugger::addFormat(). Will be removed + * @deprecated Use Debugger::outputAs() and Debugger::addFormat(). Will be removed * in 3.0 */ public function output($format = null, $strings = array()) { diff --git a/lib/Cake/View/Elements/sql_dump.ctp b/lib/Cake/View/Elements/sql_dump.ctp index 82aca30529f..b022370e4e5 100644 --- a/lib/Cake/View/Elements/sql_dump.ctp +++ b/lib/Cake/View/Elements/sql_dump.ctp @@ -1,6 +1,6 @@ - Encountered unexpected $logs cannot generate SQL log

'; diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 26c014602b2..b918df048b4 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -271,7 +271,7 @@ protected function _isRequiredField($validateProperties) { * Returns false if given form field described by the current entity has no errors. * Otherwise it returns the validation message * - * @return mixed Either false when there or no errors, or the error + * @return mixed Either false when there or no errors, or the error * string. The error string could be ''. */ public function tagIsInvalid() { diff --git a/lib/Cake/View/Pages/home.ctp b/lib/Cake/View/Pages/home.ctp index 9c2b3ea23b9..76f333265a7 100644 --- a/lib/Cake/View/Pages/home.ctp +++ b/lib/Cake/View/Pages/home.ctp @@ -36,7 +36,7 @@ endif; 2) I don't / can't use URL rewriting

-=')): echo ''; echo __d('cake_dev', 'Your version of PHP is 5.2.6 or higher.'); diff --git a/lib/Cake/View/Scaffolds/index.ctp b/lib/Cake/View/Scaffolds/index.ctp index 0b543400434..2e608505adc 100644 --- a/lib/Cake/View/Scaffolds/index.ctp +++ b/lib/Cake/View/Scaffolds/index.ctp @@ -49,8 +49,8 @@ foreach (${$pluralVar} as ${$singularVar}): echo $this->Html->link(__d('cake', 'View'), array('action' => 'view', ${$singularVar}[$modelClass][$primaryKey])); echo $this->Html->link(__d('cake', 'Edit'), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])); echo $this->Form->postLink( - __d('cake', 'Delete'), - array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), + __d('cake', 'Delete'), + array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), null, __d('cake', 'Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey] );