Permalink
Browse files

Adhere to code formatting standard

  • Loading branch information...
shama committed Dec 1, 2011
1 parent 49708ec commit 94e119fe67720d535bae697902cdf2bf1e706e67
Showing with 474 additions and 474 deletions.
  1. +1 −1 lib/Cake/Cache/Cache.php
  2. +2 −2 lib/Cake/Cache/Engine/FileEngine.php
  3. +2 −2 lib/Cake/Cache/Engine/MemcacheEngine.php
  4. +1 −1 lib/Cake/Console/Command/ConsoleShell.php
  5. +8 −8 lib/Cake/Console/Command/Task/DbConfigTask.php
  6. +8 −8 lib/Cake/Console/Command/Task/ModelTask.php
  7. +1 −1 lib/Cake/Console/Command/Task/ProjectTask.php
  8. +1 −1 lib/Cake/Console/Command/Task/TestTask.php
  9. +4 −4 lib/Cake/Console/Command/Task/ViewTask.php
  10. +1 −1 lib/Cake/Console/Command/UpgradeShell.php
  11. +2 −2 lib/Cake/Console/Shell.php
  12. +1 −1 lib/Cake/Console/Templates/default/actions/controller_actions.ctp
  13. +21 −21 lib/Cake/Console/Templates/skel/Config/Schema/db_acl.php
  14. +6 −6 lib/Cake/Console/Templates/skel/Config/Schema/i18n.php
  15. +3 −3 lib/Cake/Console/Templates/skel/Config/Schema/sessions.php
  16. +10 −10 lib/Cake/Console/Templates/skel/Config/core.php
  17. +1 −1 lib/Cake/Console/Templates/skel/View/Layouts/default.ctp
  18. +67 −67 lib/Cake/Console/Templates/skel/webroot/css/cake.generic.css
  19. +1 −1 lib/Cake/I18n/I18n.php
  20. +1 −1 lib/Cake/Model/Behavior/ContainableBehavior.php
  21. +1 −1 lib/Cake/Model/Behavior/TranslateBehavior.php
  22. +1 −1 lib/Cake/Model/CakeSchema.php
  23. +1 −1 lib/Cake/Model/Datasource/Database/Sqlite.php
  24. +2 −2 lib/Cake/Model/Datasource/DboSource.php
  25. +1 −1 lib/Cake/Model/Model.php
  26. +1 −1 lib/Cake/Test/Case/BasicsTest.php
  27. +4 −4 lib/Cake/Test/Case/Cache/CacheTest.php
  28. +3 −3 lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
  29. +3 −3 lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  30. +1 −1 lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php
  31. +1 −1 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
  32. +18 −18 lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
  33. +1 −1 lib/Cake/Test/Case/Controller/ControllerTest.php
  34. +5 −5 lib/Cake/Test/Case/Controller/ScaffoldTest.php
  35. +1 −1 lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
  36. +2 −2 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
  37. +1 −1 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
  38. +4 −4 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
  39. +5 −5 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
  40. +12 −12 lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
  41. +27 −27 lib/Cake/Test/Case/Model/ModelIntegrationTest.php
  42. +22 −22 lib/Cake/Test/Case/Model/ModelReadTest.php
  43. +15 −15 lib/Cake/Test/Case/Model/ModelWriteTest.php
  44. +17 −17 lib/Cake/Test/Case/Model/models.php
  45. +1 −1 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
  46. +12 −12 lib/Cake/Test/Case/Routing/DispatcherTest.php
  47. +18 −18 lib/Cake/Test/Case/Routing/RouterTest.php
  48. +1 −1 lib/Cake/Test/Case/Utility/FileTest.php
  49. +34 −34 lib/Cake/Test/Case/Utility/SetTest.php
  50. +1 −1 lib/Cake/Test/Case/Utility/XmlTest.php
  51. +5 −5 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  52. +4 −4 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
  53. +10 −10 lib/Cake/Test/Case/View/Helper/NumberHelperTest.php
  54. +6 −6 lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
  55. +3 −3 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
  56. +6 −6 lib/Cake/Test/Case/View/Helper/TextHelperTest.php
  57. +4 −4 lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
  58. +1 −1 lib/Cake/Test/Case/View/HelperTest.php
  59. +5 −5 lib/Cake/Test/Case/View/ScaffoldViewTest.php
  60. +1 −1 lib/Cake/Test/Fixture/AcoFixture.php
  61. +1 −1 lib/Cake/Test/Fixture/AcoTwoFixture.php
  62. +10 −10 lib/Cake/Test/Fixture/AroTwoFixture.php
  63. +1 −1 lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php
  64. +1 −1 lib/Cake/Test/Fixture/ArticlesTagFixture.php
  65. +1 −1 lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php
  66. +2 −2 lib/Cake/Test/Fixture/BakeCommentFixture.php
  67. +2 −2 lib/Cake/Test/Fixture/CommentFixture.php
  68. +2 −2 lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php
  69. +1 −1 lib/Cake/Test/Fixture/DatatypeFixture.php
  70. +3 −3 lib/Cake/Test/Fixture/GroupUpdateAllFixture.php
  71. +20 −20 lib/Cake/Test/Fixture/ProductUpdateAllFixture.php
  72. +1 −1 lib/Cake/Test/Fixture/StoriesTagFixture.php
  73. +2 −2 lib/Cake/Test/Fixture/TestPluginCommentFixture.php
  74. +7 −7 lib/Cake/Test/test_app/Plugin/TestPlugin/Config/Schema/schema.php
  75. +1 −1 lib/Cake/Test/test_app/View/Layouts/default.ctp
  76. +1 −1 lib/Cake/Utility/Folder.php
  77. +1 −1 lib/Cake/Utility/Inflector.php
  78. +1 −1 lib/Cake/Utility/Set.php
  79. +2 −2 lib/Cake/View/Helper.php
  80. +1 −1 lib/Cake/View/Helper/HtmlHelper.php
  81. +4 −4 lib/Cake/View/Helper/NumberHelper.php
  82. +3 −3 lib/Cake/View/Helper/PaginatorHelper.php
  83. +1 −1 lib/Cake/View/Layouts/default.ctp
  84. +2 −2 lib/Cake/View/Scaffolds/form.ctp
View
@@ -505,7 +505,7 @@ public static function settings($name = 'default') {
*/
public function init($settings = array()) {
$this->settings = array_merge(
- array('prefix' => 'cake_', 'duration'=> 3600, 'probability'=> 100),
+ array('prefix' => 'cake_', 'duration' => 3600, 'probability' => 100),
$this->settings,
$settings
);
@@ -66,8 +66,8 @@ class FileEngine extends CacheEngine {
public function init($settings = array()) {
parent::init(array_merge(
array(
- 'engine' => 'File', 'path' => CACHE, 'prefix'=> 'cake_', 'lock'=> true,
- 'serialize'=> true, 'isWindows' => false, 'mask' => 0664
+ 'engine' => 'File', 'path' => CACHE, 'prefix' => 'cake_', 'lock' => true,
+ 'serialize' => true, 'isWindows' => false, 'mask' => 0664
),
$settings
));
@@ -59,10 +59,10 @@ public function init($settings = array()) {
return false;
}
parent::init(array_merge(array(
- 'engine'=> 'Memcache',
+ 'engine' => 'Memcache',
'prefix' => Inflector::slug(APP_DIR) . '_',
'servers' => array('127.0.0.1'),
- 'compress'=> false,
+ 'compress' => false,
'persistent' => true
), $settings)
);
@@ -117,7 +117,7 @@ public function help() {
$out .= "\n";
$out .= "will return something like the following:";
$out .= "\n";
- $out .= "\tarray (";
+ $out .= "\tarray(";
$out .= "\t [...]";
$out .= "\t 'controller' => 'posts',";
$out .= "\t 'action' => 'view',";
@@ -39,14 +39,14 @@ class DbConfigTask extends AppShell {
*/
protected $_defaultConfig = array(
'name' => 'default',
- 'datasource'=> 'Database/Mysql',
- 'persistent'=> 'false',
- 'host'=> 'localhost',
- 'login'=> 'root',
- 'password'=> 'password',
- 'database'=> 'project_name',
- 'schema'=> null,
- 'prefix'=> null,
+ 'datasource' => 'Database/Mysql',
+ 'persistent' => 'false',
+ 'host' => 'localhost',
+ 'login' => 'root',
+ 'password' => 'password',
+ 'database' => 'project_name',
+ 'schema' => null,
+ 'prefix' => null,
'encoding' => null,
'port' => null
);
@@ -220,13 +220,13 @@ protected function _interactive() {
}
$prompt = __d('cake_console', "Would you like to supply validation criteria \nfor the fields in your model?");
- $wannaDoValidation = $this->in($prompt, array('y','n'), 'y');
+ $wannaDoValidation = $this->in($prompt, array('y', 'n'), 'y');
if (array_search($useTable, $this->_tables) !== false && strtolower($wannaDoValidation) == 'y') {
$validate = $this->doValidation($tempModel);
}
$prompt = __d('cake_console', "Would you like to define model associations\n(hasMany, hasOne, belongsTo, etc.)?");
- $wannaDoAssoc = $this->in($prompt, array('y','n'), 'y');
+ $wannaDoAssoc = $this->in($prompt, array('y', 'n'), 'y');
if (strtolower($wannaDoAssoc) == 'y') {
$associations = $this->doAssociations($tempModel);
}
@@ -258,7 +258,7 @@ protected function _interactive() {
}
$this->hr();
- $looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y','n'), 'y');
+ $looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y', 'n'), 'y');
if (strtolower($looksGood) == 'y') {
$vars = compact('associations', 'validate', 'primaryKey', 'useTable', 'displayField');
@@ -486,7 +486,7 @@ public function doAssociations($model) {
}
$associations = array(
- 'belongsTo' => array(), 'hasMany' => array(), 'hasOne'=> array(), 'hasAndBelongsToMany' => array()
+ 'belongsTo' => array(), 'hasMany' => array(), 'hasOne' => array(), 'hasAndBelongsToMany' => array()
);
$associations = $this->findBelongsTo($model, $associations);
@@ -635,7 +635,7 @@ public function confirmAssociations($model, $associations) {
if (!empty($associations[$type])) {
foreach ($associations[$type] as $i => $assoc) {
$prompt = "{$model->name} {$type} {$assoc['alias']}?";
- $response = $this->in($prompt, array('y','n'), 'y');
+ $response = $this->in($prompt, array('y', 'n'), 'y');
if ('n' == strtolower($response)) {
unset($associations[$type][$i]);
@@ -658,7 +658,7 @@ public function confirmAssociations($model, $associations) {
*/
public function doMoreAssociations($model, $associations) {
$prompt = __d('cake_console', 'Would you like to define some additional model associations?');
- $wannaDoMoreAssoc = $this->in($prompt, array('y','n'), 'n');
+ $wannaDoMoreAssoc = $this->in($prompt, array('y', 'n'), 'n');
$possibleKeys = $this->_generatePossibleKeys();
while (strtolower($wannaDoMoreAssoc) == 'y') {
$assocs = array('belongsTo', 'hasOne', 'hasMany', 'hasAndBelongsToMany');
@@ -710,7 +710,7 @@ public function doMoreAssociations($model, $associations) {
$associations[$assocs[$assocType]][$i]['associationForeignKey'] = $associationForeignKey;
$associations[$assocs[$assocType]][$i]['joinTable'] = $joinTable;
}
- $wannaDoMoreAssoc = $this->in(__d('cake_console', 'Define another association?'), array('y','n'), 'y');
+ $wannaDoMoreAssoc = $this->in(__d('cake_console', 'Define another association?'), array('y', 'n'), 'y');
}
return $associations;
}
@@ -832,7 +832,7 @@ public function getTable($modelName, $useDbConfig = null) {
if (array_search($useTable, $this->_tables) === false) {
$this->out();
$this->out(__d('cake_console', "Given your model named '%s',\nCake would expect a database table named '%s'", $modelName, $fullTableName));
- $tableIsGood = $this->in(__d('cake_console', 'Do you want to use this table?'), array('y','n'), 'y');
+ $tableIsGood = $this->in(__d('cake_console', 'Do you want to use this table?'), array('y', 'n'), 'y');
}
if (strtolower($tableIsGood) == 'n') {
$useTable = $this->in(__d('cake_console', 'What is the name of the table?'));
@@ -62,7 +62,7 @@ public function execute() {
$response = false;
while ($response == false && is_dir($project) === true && file_exists($project . 'Config' . 'core.php')) {
$prompt = __d('cake_console', '<warning>A project already exists in this location:</warning> %s Overwrite?', $project);
- $response = $this->in($prompt, array('y','n'), 'n');
+ $response = $this->in($prompt, array('y', 'n'), 'n');
if (strtolower($response) === 'n') {
$response = $project = false;
}
@@ -402,7 +402,7 @@ protected function _addFixture($name) {
* @return array Array of fixtures the user wants to add.
*/
public function getUserFixtures() {
- $proceed = $this->in(__d('cake_console', 'Bake could not detect fixtures, would you like to add some?'), array('y','n'), 'n');
+ $proceed = $this->in(__d('cake_console', 'Bake could not detect fixtures, would you like to add some?'), array('y', 'n'), 'n');
$fixtures = array();
if (strtolower($proceed) == 'y') {
$fixtureList = $this->in(__d('cake_console', "Please provide a comma separated list of the fixtures names you'd like to use.\nExample: 'app.comment, app.post, plugin.forums.post'"));
@@ -215,9 +215,9 @@ protected function _interactive() {
}
$prompt = __d('cake_console', "Would you like to create some CRUD views\n(index, add, view, edit) for this controller?\nNOTE: Before doing so, you'll need to create your controller\nand model classes (including associated models).");
- $wannaDoScaffold = $this->in($prompt, array('y','n'), 'y');
+ $wannaDoScaffold = $this->in($prompt, array('y', 'n'), 'y');
- $wannaDoAdmin = $this->in(__d('cake_console', "Would you like to create the views for admin routing?"), array('y','n'), 'n');
+ $wannaDoAdmin = $this->in(__d('cake_console', "Would you like to create the views for admin routing?"), array('y', 'n'), 'n');
if (strtolower($wannaDoScaffold) == 'y' || strtolower($wannaDoAdmin) == 'y') {
$vars = $this->_loadController();
@@ -292,7 +292,7 @@ protected function _loadController() {
$pluralHumanName = $this->_pluralHumanName($this->controllerName);
return compact('modelClass', 'schema', 'primaryKey', 'displayField', 'singularVar', 'pluralVar',
- 'singularHumanName', 'pluralHumanName', 'fields','associations');
+ 'singularHumanName', 'pluralHumanName', 'fields', 'associations');
}
/**
@@ -330,7 +330,7 @@ public function customAction() {
$this->out(__d('cake_console', 'Action Name: %s', $action));
$this->out(__d('cake_console', 'Path: %s', $this->getPath() . $this->controllerName . DS . Inflector::underscore($action) . ".ctp"));
$this->hr();
- $looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y','n'), 'y');
+ $looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y', 'n'), 'y');
if (strtolower($looksGood) == 'y') {
$this->bake($action, ' ');
$this->_stop();
@@ -764,7 +764,7 @@ public function getOptionParser() {
'help' => __d('cake_console', 'Use git command for moving files around.'),
'boolean' => true
),
- 'dry-run'=> array(
+ 'dry-run' => array(
'short' => 'd',
'help' => __d('cake_console', 'Dry run the update, no files will actually be modified.'),
'boolean' => true
@@ -366,7 +366,7 @@ public function runCommand($command, $argv) {
return $this->_displayHelp($command);
}
- if (($isTask || $isMethod || $isMain) && $command !== 'execute' ) {
+ if (($isTask || $isMethod || $isMain) && $command !== 'execute') {
$this->startup();
}
@@ -672,7 +672,7 @@ protected function _checkUnitTest() {
return true;
}
$prompt = __d('cake_console', 'PHPUnit is not installed. Do you want to bake unit test files anyway?');
- $unitTest = $this->in($prompt, array('y','n'), 'y');
+ $unitTest = $this->in($prompt, array('y', 'n'), 'y');
$result = strtolower($unitTest) == 'y' || strtolower($unitTest) == 'yes';
if ($result) {
@@ -143,7 +143,7 @@
if ($this-><?php echo $currentModelName; ?>->delete()) {
<?php if ($wannaUseSession): ?>
$this->Session->setFlash(__('<?php echo ucfirst(strtolower($singularHumanName)); ?> deleted'));
- $this->redirect(array('action'=>'index'));
+ $this->redirect(array('action' => 'index'));
<?php else: ?>
$this->flash(__('<?php echo ucfirst(strtolower($singularHumanName)); ?> deleted'), array('action' => 'index'));
<?php endif; ?>
@@ -39,35 +39,35 @@ public function after($event = array()) {
}
public $acos = array(
- 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
- 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'model' => array('type'=>'string', 'null' => true),
- 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'alias' => array('type'=>'string', 'null' => true),
- 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type' => 'string', 'null' => true),
+ 'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type' => 'string', 'null' => true),
+ 'lft' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
public $aros = array(
- 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
- 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'model' => array('type'=>'string', 'null' => true),
- 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'alias' => array('type'=>'string', 'null' => true),
- 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
- 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'parent_id' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'model' => array('type' => 'string', 'null' => true),
+ 'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'alias' => array('type' => 'string', 'null' => true),
+ 'lft' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
+ 'rght' => array('type' => 'integer', 'null' => true, 'default' => NULL, 'length' => 10),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
public $aros_acos = array(
- 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
- 'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
- 'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),
- '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
- '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
- '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
- '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2),
+ 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'aro_id' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'aco_id' => array('type' => 'integer', 'null' => false, 'length' => 10),
+ '_create' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_read' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_update' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
+ '_delete' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
);
@@ -39,12 +39,12 @@ public function after($event = array()) {
}
public $i18n = array(
- 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
- 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
- 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),
- 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
- 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'),
- 'content' => array('type'=>'text', 'null' => true, 'default' => NULL),
+ 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
+ 'locale' => array('type' => 'string', 'null' => false, 'length' => 6, 'key' => 'index'),
+ 'model' => array('type' => 'string', 'null' => false, 'key' => 'index'),
+ 'foreign_key' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
+ 'field' => array('type' => 'string', 'null' => false, 'key' => 'index'),
+ 'content' => array('type' => 'text', 'null' => true, 'default' => NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
);
@@ -39,9 +39,9 @@ public function after($event = array()) {
}
public $cake_sessions = array(
- 'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
- 'data' => array('type'=>'text', 'null' => true, 'default' => NULL),
- 'expires' => array('type'=>'integer', 'null' => true, 'default' => NULL),
+ 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
+ 'data' => array('type' => 'text', 'null' => true, 'default' => NULL),
+ 'expires' => array('type' => 'integer', 'null' => true, 'default' => NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
@@ -239,8 +239,8 @@
*
* Cache::config('default', array(
* 'engine' => 'File', //[required]
- * 'duration'=> 3600, //[optional]
- * 'probability'=> 100, //[optional]
+ * 'duration' => 3600, //[optional]
+ * 'probability' => 100, //[optional]
* 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
* 'prefix' => 'cake_', //[optional] prefix every cache file with this string
* 'lock' => false, //[optional] use file locking
@@ -251,17 +251,17 @@
*
* Cache::config('default', array(
* 'engine' => 'Apc', //[required]
- * 'duration'=> 3600, //[optional]
- * 'probability'=> 100, //[optional]
+ * 'duration' => 3600, //[optional]
+ * 'probability' => 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* ));
*
* Xcache (http://xcache.lighttpd.net/)
*
* Cache::config('default', array(
* 'engine' => 'Xcache', //[required]
- * 'duration'=> 3600, //[optional]
- * 'probability'=> 100, //[optional]
+ * 'duration' => 3600, //[optional]
+ * 'probability' => 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* 'user' => 'user', //user from xcache.admin.user settings
* 'password' => 'password', //plaintext password (xcache.admin.pass)
@@ -271,8 +271,8 @@
*
* Cache::config('default', array(
* 'engine' => 'Memcache', //[required]
- * 'duration'=> 3600, //[optional]
- * 'probability'=> 100, //[optional]
+ * 'duration' => 3600, //[optional]
+ * 'probability' => 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* 'servers' => array(
* '127.0.0.1:11211' // localhost, default port 11211
@@ -285,8 +285,8 @@
*
* Cache::config('default', array(
* 'engine' => 'Wincache', //[required]
- * 'duration'=> 3600, //[optional]
- * 'probability'=> 100, //[optional]
+ * 'duration' => 3600, //[optional]
+ * 'probability' => 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* ));
*/
@@ -46,7 +46,7 @@
</div>
<div id="footer">
<?php echo $this->Html->link(
- $this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework'), 'border' => '0')),
+ $this->Html->image('cake.power.gif', array('alt' => __('CakePHP: the rapid development php framework'), 'border' => '0')),
'http://www.cakephp.org/',
array('target' => '_blank', 'escape' => false)
);
Oops, something went wrong.

0 comments on commit 94e119f

Please sign in to comment.