Permalink
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent 8945dcb commit 4742168253cc7b35f723e20013d7d106e7173a45 Gun.io Whitespace Robot committed with jrbasso Oct 28, 2011
Showing with 248 additions and 248 deletions.
  1. +1 −1 lib/Cake/Console/Command/Task/TestTask.php
  2. +1 −1 lib/Cake/Console/Templates/default/classes/test.ctp
  3. +1 −1 lib/Cake/Console/Templates/default/views/index.ctp
  4. +1 −1 lib/Cake/Console/Templates/skel/Config/bootstrap.php
  5. +1 −1 lib/Cake/Console/Templates/skel/Config/routes.php
  6. +1 −1 lib/Cake/Controller/Component/Auth/BaseAuthorize.php
  7. +1 −1 lib/Cake/Controller/Component/AuthComponent.php
  8. +1 −1 lib/Cake/Controller/Component/RequestHandlerComponent.php
  9. +1 −1 lib/Cake/Routing/Router.php
  10. +1 −1 lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php
  11. +1 −1 lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
  12. +2 −2 lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  13. +1 −1 lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php
  14. +4 −4 lib/Cake/Test/Case/Console/Command/AclShellTest.php
  15. +2 −2 lib/Cake/Test/Case/Console/Command/BakeShellTest.php
  16. +1 −1 lib/Cake/Test/Case/Console/Command/CommandListShellTest.php
  17. +2 −2 lib/Cake/Test/Case/Console/Command/ShellTest.php
  18. +1 −1 lib/Cake/Test/Case/Console/Command/Task/DbConfigTaskTest.php
  19. +2 −2 lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php
  20. +6 −6 lib/Cake/Test/Case/Console/Command/Task/PluginTaskTest.php
  21. +1 −1 lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php
  22. +4 −4 lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php
  23. +2 −2 lib/Cake/Test/Case/Console/ConsoleErrorHandlerTest.php
  24. +7 −7 lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
  25. +3 −3 lib/Cake/Test/Case/Controller/Component/Auth/ActionsAuthorizeTest.php
  26. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php
  27. +4 −4 lib/Cake/Test/Case/Controller/Component/Auth/ControllerAuthorizeTest.php
  28. +2 −2 lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php
  29. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
  30. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
  31. +1 −1 lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
  32. +3 −3 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
  33. +11 −11 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
  34. +6 −6 lib/Cake/Test/Case/Controller/ControllerTest.php
  35. +4 −4 lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
  36. +2 −2 lib/Cake/Test/Case/Model/CakeSchemaTest.php
  37. +4 −4 lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php
  38. +1 −1 lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
  39. +2 −2 lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php
  40. +4 −4 lib/Cake/Test/Case/Model/ModelWriteTest.php
  41. +88 −88 lib/Cake/Test/Case/Network/CakeRequestTest.php
  42. +2 −2 lib/Cake/Test/Case/Routing/RouterTest.php
  43. +3 −3 lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php
  44. +2 −2 lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
  45. +1 −1 lib/Cake/Test/Case/Utility/SecurityTest.php
  46. +1 −1 lib/Cake/Test/Case/Utility/StringTest.php
  47. +3 −3 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  48. +1 −1 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
  49. +1 −1 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
  50. +2 −2 lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
  51. +1 −1 lib/Cake/Test/Fixture/FixturizedTestCase.php
  52. +1 −1 lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php
  53. +1 −1 lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php
  54. +4 −4 lib/Cake/Test/test_app/Locale/ja_jp/LC_TIME
  55. +5 −5 lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php
  56. +1 −1 lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/other_task.php
  57. +1 −1 lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php
  58. +1 −1 lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php
  59. +1 −1 lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php
  60. +5 −5 lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php
  61. +1 −1 lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/TestPluginAppHelper.php
  62. +1 −1 lib/Cake/Test/test_app/View/Posts/helper_overwrite.ctp
  63. +3 −3 lib/Cake/TestSuite/CakeTestCase.php
  64. +2 −2 lib/Cake/TestSuite/CakeTestRunner.php
  65. +5 −5 lib/Cake/TestSuite/ControllerTestCase.php
  66. +1 −1 lib/Cake/TestSuite/Fixture/CakeTestFixture.php
  67. +2 −2 lib/Cake/TestSuite/Reporter/CakeTextReporter.php
  68. +6 −6 lib/Cake/Utility/Debugger.php
  69. +2 −2 lib/Cake/View/Elements/sql_dump.ctp
  70. +1 −1 lib/Cake/View/Helper/FormHelper.php
  71. +1 −1 lib/Cake/View/Pages/home.ctp
  72. +2 −2 lib/Cake/View/Scaffolds/index.ctp
@@ -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');
@@ -24,7 +24,7 @@ App::uses('<?php echo $fullClassName; ?>', '<?php echo $realType; ?>');
<?php if ($mock and strtolower($type) == 'controller'): ?>
/**
- * Test<?php echo $fullClassName; ?>
+ * Test<?php echo $fullClassName; ?>
*
*/
class Test<?php echo $fullClassName; ?> extends <?php echo $fullClassName; ?> {
@@ -66,7 +66,7 @@
<div class="paging">
<?php
- echo "<?php\n";
+ echo "<?php\n";
echo "\t\techo \$this->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";
@@ -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
@@ -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();
@@ -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.
*
@@ -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
@@ -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
@@ -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']
),
@@ -157,7 +157,7 @@ public function testDecrement() {
$result = Cache::read('test_decrement', 'apc');
$this->assertEqual(2, $result);
-
+
}
/**
@@ -352,7 +352,7 @@ public function testErrorWhenPathDoesNotExist() {
/**
* Testing the mask setting in FileEngine
- *
+ *
* @return void
*/
public function testMaskSetting() {
@@ -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;
}
@@ -145,7 +145,7 @@ public function testDecrement() {
$result = Cache::read('test_decrement', 'wincache');
$this->assertEqual(2, $result);
-
+
}
/**
@@ -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();
}
}
@@ -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');
@@ -146,7 +146,7 @@ public function testMainXml() {
$output = $this->Shell->stdout->output;
- $find = '<shell name="sample" call_as="sample" provider="app" help="sample -h"/>';
+ $find = '<shell name="sample" call_as="sample" provider="app" help="sample -h"/>';
$this->assertContains($find, $output);
$find = '<shell name="bake" call_as="bake" provider="CORE" help="bake -h"/>';
@@ -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() {
@@ -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)
);
@@ -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();
}
@@ -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));
@@ -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
*/
@@ -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();
}
@@ -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.'));
Oops, something went wrong.

0 comments on commit 4742168

Please sign in to comment.