Skip to content

Commit 3e18f29

Browse files
committed
correct typos
1 parent 0013cce commit 3e18f29

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/ORM/Rule/ExistsIn.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ExistsIn {
3232
/**
3333
* Constructor.
3434
*
35-
* @param string|array $fields The field or fields to check existance as primary key.
35+
* @param string|array $fields The field or fields to check existence as primary key.
3636
* @param object|string $repository The repository where the field will be looked for,
3737
* or the association name for the repository.
3838
*/
@@ -42,7 +42,7 @@ public function __construct($fields, $repository) {
4242
}
4343

4444
/**
45-
* Performs the existance check
45+
* Performs the existence check
4646
*
4747
* @param \Cake\Datasource\EntityInterface $entity The entity from where to extract the fields
4848
* @param array $options Options passed to the check,

src/ORM/RulesChecker.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ public function add(callable $rule, array $options = []) {
8585
}
8686

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

110109
/**
111-
* Adds a rule that will be applied to the entity both on update
112-
* operations.
110+
* Adds a rule that will be applied to the entity on update operations.
113111
*
114112
* ### Options
115113
*
@@ -193,7 +191,7 @@ public function isUnique(array $fields, $message = 'This value is already in use
193191
* $rules->add($rules->existsIn('site_id', new SitesTable(), 'Invalid Site'));
194192
* }}}
195193
*
196-
* @param string|array $fields The field or list of fields to check for existance by
194+
* @param string|array $fields The field or list of fields to check for existence by
197195
* primary key lookup in the other table.
198196
* @param string $message The error message to show in case the rule does not pass.
199197
* @return callable

tests/TestCase/ORM/RulesCheckerIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Cake\TestSuite\TestCase;
2121

2222
/**
23-
* Tests the integration between the ORM and the doamin checker
23+
* Tests the integration between the ORM and the domain checker
2424
*/
2525
class RulesCheckerIntegrationTest extends TestCase {
2626

0 commit comments

Comments
 (0)