ソースを参照

correct typos

antograssiot 11 年 前
コミット
3e18f29e0d

+ 2 - 2
src/ORM/Rule/ExistsIn.php

@@ -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.
  */
@@ -42,7 +42,7 @@ class ExistsIn {
 	}
 
 /**
- * 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,

+ 3 - 5
src/ORM/RulesChecker.php

@@ -85,8 +85,7 @@ class RulesChecker {
 	}
 
 /**
- * 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
  *
@@ -108,8 +107,7 @@ class RulesChecker {
 	}
 
 /**
- * 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
  *
@@ -193,7 +191,7 @@ class RulesChecker {
  * $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

+ 1 - 1
tests/TestCase/ORM/RulesCheckerIntegrationTest.php

@@ -20,7 +20,7 @@ use Cake\ORM\TableRegistry;
 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 {