Skip to content
Permalink
Browse files

Fix numerous typos

  • Loading branch information...
coryjthompson committed Jan 22, 2017
1 parent 783cfd1 commit 902c9910279eff909295e413d43fc6a5d2dbd7bf
Showing with 166 additions and 166 deletions.
  1. +1 −1 src/Database/Connection.php
  2. +2 −2 src/Database/Statement/StatementDecorator.php
  3. +1 −1 src/Database/Type/DecimalType.php
  4. +1 −1 src/Database/Type/FloatType.php
  5. +1 −1 src/Database/Type/StringType.php
  6. +1 −1 src/Event/Decorator/ConditionDecorator.php
  7. +1 −1 src/Http/CallbackStream.php
  8. +1 −1 src/Http/ResponseEmitter.php
  9. +1 −1 src/Network/Http/Adapter/Stream.php
  10. +1 −1 src/Network/Http/Auth/Basic.php
  11. +1 −1 src/Network/Http/Auth/Digest.php
  12. +1 −1 src/Network/Http/Auth/Oauth.php
  13. +1 −1 src/Network/Http/Client.php
  14. +1 −1 src/Network/Http/CookieCollection.php
  15. +1 −1 src/Network/Http/FormData.php
  16. +1 −1 src/Network/Http/Message.php
  17. +1 −1 src/Network/Http/Request.php
  18. +1 −1 src/Network/Http/Response.php
  19. +1 −1 src/ORM/Association.php
  20. +1 −1 src/ORM/Association/BelongsToMany.php
  21. +1 −1 src/ORM/Behavior/TimestampBehavior.php
  22. +3 −3 src/ORM/Behavior/TreeBehavior.php
  23. +1 −1 src/Shell/CompletionShell.php
  24. +1 −1 src/TestSuite/EmailAssertTrait.php
  25. +5 −5 src/TestSuite/IntegrationTestCase.php
  26. +1 −1 src/Utility/Xml.php
  27. +1 −1 src/View/Form/ContextInterface.php
  28. +2 −2 src/View/Form/EntityContext.php
  29. +1 −1 src/View/Helper/PaginatorHelper.php
  30. +1 −1 tests/Fixture/AssertHtmlTestCase.php
  31. +1 −1 tests/Fixture/AssertIntegrationTestCase.php
  32. +1 −1 tests/TestCase/Cache/Engine/ApcEngineTest.php
  33. +1 −1 tests/TestCase/Cache/Engine/MemcachedEngineTest.php
  34. +1 −1 tests/TestCase/Cache/Engine/RedisEngineTest.php
  35. +1 −1 tests/TestCase/Cache/Engine/WincacheEngineTest.php
  36. +1 −1 tests/TestCase/Cache/Engine/XcacheEngineTest.php
  37. +9 −9 tests/TestCase/Collection/CollectionTest.php
  38. +4 −4 tests/TestCase/Console/ConsoleErrorHandlerTest.php
  39. +7 −7 tests/TestCase/Controller/Component/CookieComponentTest.php
  40. +1 −1 tests/TestCase/Controller/ComponentRegistryTest.php
  41. +1 −1 tests/TestCase/Controller/ControllerTest.php
  42. +1 −1 tests/TestCase/Core/Configure/Engine/JsonConfigTest.php
  43. +1 −1 tests/TestCase/Core/ConfigureTest.php
  44. +2 −2 tests/TestCase/Core/InstanceConfigTraitTest.php
  45. +6 −6 tests/TestCase/Database/ConnectionTest.php
  46. +3 −3 tests/TestCase/Database/Driver/MysqlTest.php
  47. +2 −2 tests/TestCase/Database/Driver/PostgresTest.php
  48. +2 −2 tests/TestCase/Database/Expression/TupleComparisonTest.php
  49. +1 −1 tests/TestCase/Database/ExpressionTypeCastingTest.php
  50. +2 −2 tests/TestCase/Database/QueryTest.php
  51. +1 −1 tests/TestCase/Database/Statement/StatementDecoratorTest.php
  52. +1 −1 tests/TestCase/Database/Type/BinaryTypeTest.php
  53. +2 −2 tests/TestCase/Database/Type/BoolTypeTest.php
  54. +1 −1 tests/TestCase/Database/Type/IntegerTypeTest.php
  55. +3 −3 tests/TestCase/Datasource/RulesCheckerTest.php
  56. +1 −1 tests/TestCase/Error/ExceptionRendererTest.php
  57. +3 −3 tests/TestCase/Filesystem/FolderTest.php
  58. +1 −1 tests/TestCase/Log/LogTest.php
  59. +5 −5 tests/TestCase/ORM/Association/BelongsToManyTest.php
  60. +1 −1 tests/TestCase/ORM/Association/BelongsToTest.php
  61. +1 −1 tests/TestCase/ORM/Behavior/CounterCacheBehaviorTest.php
  62. +2 −2 tests/TestCase/ORM/Behavior/TreeBehaviorTest.php
  63. +1 −1 tests/TestCase/ORM/BindingKeyTest.php
  64. +7 −7 tests/TestCase/ORM/CompositeKeysTest.php
  65. +1 −1 tests/TestCase/ORM/EagerLoaderTest.php
  66. +8 −8 tests/TestCase/ORM/EntityTest.php
  67. +1 −1 tests/TestCase/ORM/Locator/TableLocatorTest.php
  68. +2 −2 tests/TestCase/ORM/QueryRegressionTest.php
  69. +3 −3 tests/TestCase/ORM/QueryTest.php
  70. +2 −2 tests/TestCase/ORM/ResultSetTest.php
  71. +2 −2 tests/TestCase/ORM/RulesCheckerIntegrationTest.php
  72. +1 −1 tests/TestCase/ORM/TableRegistryTest.php
  73. +1 −1 tests/TestCase/ORM/TableTest.php
  74. +3 −3 tests/TestCase/Shell/CompletionShellTest.php
  75. +9 −9 tests/TestCase/Shell/Task/UnloadTaskTest.php
  76. +1 −1 tests/TestCase/TestSuite/IntegrationTestCaseTest.php
  77. +4 −4 tests/TestCase/Validation/ValidatorTest.php
  78. +2 −2 tests/TestCase/View/CellTest.php
  79. +1 −1 tests/TestCase/View/Helper/FormHelperTest.php
  80. +1 −1 tests/TestCase/View/Helper/PaginatorHelperTest.php
  81. +4 −4 tests/TestCase/View/ViewTest.php
  82. +2 −2 tests/TestCase/View/Widget/WidgetRegistryTest.php
  83. +1 −1 tests/test_app/TestApp/Model/Behavior/DuplicateBehavior.php
  84. +1 −1 tests/test_app/TestApp/Template/Posts/extend_self.ctp
@@ -662,7 +662,7 @@ public function quoteIdentifier($identifier)
*
* Changing this setting will not modify existing schema collections objects.
*
* @param bool|string $cache Either boolean false to disable meta dataing caching, or
* @param bool|string $cache Either boolean false to disable metadata caching, or
* true to use `_cake_model_` or the name of the cache config to use.
* @return void
*/
@@ -279,14 +279,14 @@ public function bind($params, $types)
return;
}
$annonymousParams = is_int(key($params)) ? true : false;
$anonymousParams = is_int(key($params)) ? true : false;
$offset = 1;
foreach ($params as $index => $value) {
$type = null;
if (isset($types[$index])) {
$type = $types[$index];
}
if ($annonymousParams) {
if ($anonymousParams) {
$index += $offset;
}
$this->bindValue($index, $value, $type);
@@ -164,7 +164,7 @@ public function useLocaleParser($enable = true)
}
/**
* Converts a string into a float point after parseing it using the locale
* Converts a string into a float point after parsing it using the locale
* aware parser.
*
* @param string $value The value to parse and convert to an float.
@@ -159,7 +159,7 @@ public function useLocaleParser($enable = true)
}
/**
* Converts a string into a float point after parseing it using the locale
* Converts a string into a float point after parsing it using the locale
* aware parser.
*
* @param string $value The value to parse and convert to an float.
@@ -101,7 +101,7 @@ public function marshal($value)
/**
* {@inheritDoc}
*
* @return boolean False as databse results are returned already as strings
* @return boolean False as database results are returned already as strings
*/
public function requiresToPhpCast()
{
@@ -57,7 +57,7 @@ public function canTrigger(Event $event)
* Evaluates the filter conditions
*
* @param string $condition Condition type
* @param \Cake\Event\Event $event Event objekt
* @param \Cake\Event\Event $event Event object
* @return bool
*/
protected function _evaluateCondition($condition, Event $event)
@@ -25,7 +25,7 @@
*
* Ideally we can amend/update diactoros, but we need to figure
* that out with the diactoros project. Until then we'll use this shim
* to provide backwards compatiblity with existing CakePHP apps.
* to provide backwards compatibility with existing CakePHP apps.
*
* @internal
*/
@@ -130,7 +130,7 @@ protected function emitBodyRange(array $range, ResponseInterface $response, $max
* Emit the status line.
*
* Emits the status line using the protocol version and status code from
* the response; if a reason phrase is availble, it, too, is emitted.
* the response; if a reason phrase is available, it, too, is emitted.
*
* @param \Psr\Http\Message\ResponseInterface $response The response to emit
* @return void
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Adapter\Stream', 'Cake\Network\Http\Adapter\Stream');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Auth\Basic', 'Cake\Network\Http\Auth\Basic');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Auth\Digest', 'Cake\Network\Http\Auth\Digest');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Auth\Oauth', 'Cake\Network\Http\Auth\Oauth');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client', 'Cake\Network\Http\Client');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\CookieCollection', 'Cake\Network\Http\CookieCollection');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\FormData', 'Cake\Network\Http\FormData');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Message', 'Cake\Network\Http\Message');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Request', 'Cake\Network\Http\Request');
@@ -1,3 +1,3 @@
<?php
// @deprecated Backwards compatibility with earler 3.x versions.
// @deprecated Backwards compatibility with earlier 3.x versions.
class_alias('Cake\Http\Client\Response', 'Cake\Network\Http\Response');
@@ -634,7 +634,7 @@ protected function _appendNotMatching($query, $options)
* @param bool $joined Whether or not the row is a result of a direct join
* with this association
* @param string $targetProperty The property name in the source results where the association
* data shuld be nested in. Will use the default one if not provided.
* data should be nested in. Will use the default one if not provided.
* @return array
*/
public function transformRow($row, $nestKey, $joined, $targetProperty = null)
@@ -903,7 +903,7 @@ protected function junctionConditions()
$matching[$field] = $value;
}
// Assume that operators contain junction conditions.
// Trying to munge complex conditions could result in incorrect queries.
// Trying to manage complex conditions could result in incorrect queries.
if ($isString && in_array(strtoupper($field), ['OR', 'NOT', 'AND', 'XOR'])) {
$matching[$field] = $value;
}
@@ -82,7 +82,7 @@ public function initialize(array $config)
*
* @param \Cake\Event\Event $event Event instance.
* @param \Cake\Datasource\EntityInterface $entity Entity instance.
* @throws \UnexpectedValueException if a field's when value is misdefined
* @throws \UnexpectedValueException if a field's value is incorrectly defined
* @return true (irrespective of the behavior logic, the save will not be prevented)
* @throws \UnexpectedValueException When the value for an event is not 'always', 'new' or 'existing'
*/
@@ -156,7 +156,7 @@ public function beforeSave(Event $event, EntityInterface $entity)
/**
* After save listener.
*
* Manages updating level of descendents of currently saved entity.
* Manages updating level of descendants of currently saved entity.
*
* @param \Cake\Event\Event $event The afterSave event that was fired
* @param \Cake\Datasource\EntityInterface $entity the entity that is going to be saved
@@ -172,9 +172,9 @@ public function afterSave(Event $event, EntityInterface $entity)
}
/**
* Set level for descendents.
* Set level for descendants.
*
* @param \Cake\Datasource\EntityInterface $entity The entity whose descendents need to be updated.
* @param \Cake\Datasource\EntityInterface $entity The entity whose descendants need to be updated.
* @return void
*/
protected function _setChildrenLevel($entity)
@@ -119,7 +119,7 @@ public function getOptionParser()
)->addSubcommand('commands', [
'help' => 'Output a list of available commands',
'parser' => [
'description' => 'List all availables',
'description' => 'List all available',
]
])->addSubcommand('subcommands', [
'help' => 'Output a list of available subcommands',
@@ -46,7 +46,7 @@ public function send($content = null)
/**
* Creates an email instance overriding its transport for testing purposes.
*
* @param bool $new Tells if new instance should forcebly be created.
* @param bool $new Tells if new instance should forcibly be created.
* @return \Cake\Mailer\Email
*/
public function email($new = false)
@@ -146,7 +146,7 @@ abstract class IntegrationTestCase extends TestCase
*
* @var null|string
*/
protected $_cookieEncriptionKey = null;
protected $_cookieEncryptionKey = null;
/**
* Auto-detect if the HTTP middleware stack should be used.
@@ -296,8 +296,8 @@ public function cookie($name, $value)
*/
protected function _getCookieEncryptionKey()
{
if (isset($this->_cookieEncriptionKey)) {
return $this->_cookieEncriptionKey;
if (isset($this->_cookieEncryptionKey)) {
return $this->_cookieEncryptionKey;
}
return Security::salt();
@@ -319,7 +319,7 @@ protected function _getCookieEncryptionKey()
*/
public function cookieEncrypted($name, $value, $encrypt = 'aes', $key = null)
{
$this->_cookieEncriptionKey = $key;
$this->_cookieEncryptionKey = $key;
$this->_cookie[$name] = $this->_encrypt($value, $encrypt);
}
@@ -1022,7 +1022,7 @@ public function assertCookieEncrypted($expected, $name, $encrypt = 'aes', $key =
$this->fail('No response set, cannot assert cookies.');
}
$result = $this->_response->cookie($name);
$this->_cookieEncriptionKey = $key;
$this->_cookieEncryptionKey = $key;
$result['value'] = $this->_decrypt($result['value'], $encrypt);
$this->assertEquals($expected, $result['value'], 'Cookie data differs. ' . $message);
}
@@ -323,7 +323,7 @@ protected static function _fromArray($dom, $node, &$data, $format)
/**
* Helper to _fromArray(). It will create childs of arrays
*
* @param array $data Array with informations to create childs
* @param array $data Array with information to create childs
* @return void
*/
protected static function _createChild($data)
@@ -51,7 +51,7 @@ public function isCreate();
*
* - `default`: Default value to return if no value found in request
* data or context record.
* - `schemaDefault`: Boolen indicating whether default value from
* - `schemaDefault`: Boolean indicating whether default value from
* context's schema should be used if it's not explicitly provided.
*
* @param string $field A dot separated path to the field a value
@@ -212,7 +212,7 @@ public function isCreate()
* @param array $options Options:
* - `default`: Default value to return if no value found in request
* data or entity.
* - `schemaDefault`: Boolen indicating whether default value from table
* - `schemaDefault`: Boolean indicating whether default value from table
* schema should be used if it's not explicitly provided.
* @return mixed The value of the field or null on a miss.
*/
@@ -309,7 +309,7 @@ protected function _extractMultiple($values, $path)
* will be returned.
*
* @param array|null $path Each one of the parts in a path for a field name
* or null to get the entity passed in contructor context.
* or null to get the entity passed in constructor context.
* @return \Cake\Datasource\EntityInterface|\Traversable|array|bool
* @throws \RuntimeException When properties cannot be read.
*/
@@ -1075,7 +1075,7 @@ public function last($last = 'last >>', array $options = [])
* ### Options:
*
* - `model` The model to use defaults to PaginatorHelper::defaultModel()
* - `block` The block name to append the output to, or false/absenst to return as a string
* - `block` The block name to append the output to, or false/absent to return as a string
*
* @param array $options Array of options
* @return string|null Meta links
@@ -4,7 +4,7 @@
use Cake\TestSuite\TestCase;
/**
* This class helps in indirectly testing the functionalities of TestCase::assertHtml
* This class helps in indirectly testing the functionality of TestCase::assertHtml
*/
class AssertHtmlTestCase extends TestCase
{
@@ -5,7 +5,7 @@
use Cake\TestSuite\IntegrationTestCase;
/**
* This class helps in indirectly testing the functionalities of IntegrationTestCase
* This class helps in indirectly testing the functionality of IntegrationTestCase
*/
class AssertIntegrationTestCase extends IntegrationTestCase
{
@@ -240,7 +240,7 @@ public function testGroupsReadWrite()
}
/**
* Tests that deleteing from a groups-enabled config is possible
* Tests that deleting from a groups-enabled config is possible
*
* @return void
*/
@@ -874,7 +874,7 @@ public function testGroupReadWrite()
}
/**
* Tests that deleteing from a groups-enabled config is possible
* Tests that deleting from a groups-enabled config is possible
*
* @return void
*/
@@ -419,7 +419,7 @@ public function testGroupReadWrite()
}
/**
* Tests that deleteing from a groups-enabled config is possible
* Tests that deleting from a groups-enabled config is possible
*
* @return void
*/
@@ -236,7 +236,7 @@ public function testGroupsReadWrite()
}
/**
* Tests that deleteing from a groups-enabled config is possible
* Tests that deleting from a groups-enabled config is possible
*
* @return void
*/
@@ -272,7 +272,7 @@ public function testGroupsReadWrite()
}
/**
* Tests that deleteing from a groups-enabled config is possible
* Tests that deleting from a groups-enabled config is possible
*
* @return void
*/
@@ -77,7 +77,7 @@ public function testIteratorIsWrapped()
*
* @return void
*/
public function testEeach()
public function testEach()
{
$items = ['a' => 1, 'b' => 2, 'c' => 3];
$collection = new Collection($items);
@@ -1674,8 +1674,8 @@ public function testUnfoldedExtract()
public function testSerializeSimpleCollection()
{
$collection = new Collection([1, 2, 3]);
$selialized = serialize($collection);
$unserialized = unserialize($selialized);
$serialized = serialize($collection);
$unserialized = unserialize($serialized);
$this->assertEquals($collection->toList(), $unserialized->toList());
$this->assertEquals($collection->toArray(), $unserialized->toArray());
}
@@ -1689,8 +1689,8 @@ public function testSerializeWithAppendIterators()
{
$collection = new Collection([1, 2, 3]);
$collection = $collection->append(['a' => 4, 'b' => 5, 'c' => 6]);
$selialized = serialize($collection);
$unserialized = unserialize($selialized);
$serialized = serialize($collection);
$unserialized = unserialize($serialized);
$this->assertEquals($collection->toList(), $unserialized->toList());
$this->assertEquals($collection->toArray(), $unserialized->toArray());
}
@@ -1711,8 +1711,8 @@ public function testSerializeWithNestedIterators()
return $e % 2;
});
$selialized = serialize($collection);
$unserialized = unserialize($selialized);
$serialized = serialize($collection);
$unserialized = unserialize($serialized);
$this->assertEquals($collection->toList(), $unserialized->toList());
$this->assertEquals($collection->toArray(), $unserialized->toArray());
}
@@ -1726,8 +1726,8 @@ public function testSerializeWithZipIterator()
{
$collection = new Collection([4, 5]);
$collection = $collection->zip([1, 2]);
$selialized = serialize($collection);
$unserialized = unserialize($selialized);
$serialized = serialize($collection);
$unserialized = unserialize($serialized);
$this->assertEquals($collection->toList(), $unserialized->toList());
}
Oops, something went wrong.

0 comments on commit 902c991

Please sign in to comment.
You can’t perform that action at this time.