Skip to content

Commit

Permalink
correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Dec 4, 2014
1 parent 0013cce commit 3e18f29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Rule/ExistsIn.php
Expand Up @@ -32,7 +32,7 @@ class ExistsIn {
/**
* Constructor.
*
* @param string|array $fields The field or fields to check existance as primary key.
* @param string|array $fields The field or fields to check existence as primary key.
* @param object|string $repository The repository where the field will be looked for,
* or the association name for the repository.
*/
Expand All @@ -42,7 +42,7 @@ public function __construct($fields, $repository) {
}

/**
* Performs the existance check
* Performs the existence check
*
* @param \Cake\Datasource\EntityInterface $entity The entity from where to extract the fields
* @param array $options Options passed to the check,
Expand Down
8 changes: 3 additions & 5 deletions src/ORM/RulesChecker.php
Expand Up @@ -85,8 +85,7 @@ public function add(callable $rule, array $options = []) {
}

/**
* Adds a rule that will be applied to the entity both on create
* operations.
* Adds a rule that will be applied to the entity on create operations.
*
* ### Options
*
Expand All @@ -108,8 +107,7 @@ public function addCreate(callable $rule, array $options = []) {
}

/**
* Adds a rule that will be applied to the entity both on update
* operations.
* Adds a rule that will be applied to the entity on update operations.
*
* ### Options
*
Expand Down Expand Up @@ -193,7 +191,7 @@ public function isUnique(array $fields, $message = 'This value is already in use
* $rules->add($rules->existsIn('site_id', new SitesTable(), 'Invalid Site'));
* }}}
*
* @param string|array $fields The field or list of fields to check for existance by
* @param string|array $fields The field or list of fields to check for existence by
* primary key lookup in the other table.
* @param string $message The error message to show in case the rule does not pass.
* @return callable
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/RulesCheckerIntegrationTest.php
Expand Up @@ -20,7 +20,7 @@
use Cake\TestSuite\TestCase;

/**
* Tests the integration between the ORM and the doamin checker
* Tests the integration between the ORM and the domain checker
*/
class RulesCheckerIntegrationTest extends TestCase {

Expand Down

0 comments on commit 3e18f29

Please sign in to comment.