Skip to content

Commit

Permalink
Merge pull request #9 from pborreli/typos
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
gajus committed Apr 14, 2014
2 parents 65ecdb4 + 691501a commit 8ad4d14
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Input validation library, that has inbuilt error messages that are translatable, validators that are easy to extend, and that has easy to understand test declaration syntax.

## Succint Test Declaration
## Succinct Test Declaration

Test is composed of assertions about the input.

Expand Down
4 changes: 1 addition & 3 deletions src/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ public function __construct (array $input) {
*/
public function getValue (\Gajus\Vlad\Selector $selector) {
$value = $this->input;
$found = true;

foreach ($selector->getPath() as $crumb) {
if (array_key_exists($crumb, $value)) {
$value = $value[$crumb];
} else {
$value = null;
$found = false;


break;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function getOptions () {
}

/**
* @param string $error_name
* @return string
*/
static public function getMessage () {
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/In.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class In extends \Gajus\Vlad\Validator {
'haystack' => null,
'strict' => true,
/**
* This option is relavent only with strict option true and input type string.
* This option is relevant only with strict option true and input type string.
* Performers quasi-strict comparison: haystack members are casted to string to avoid 'abc' == 0 false/positive
* that would otherwise occur using non-strict comparison, but '123' input will match 123 haystact member.
* that would otherwise occur using non-strict comparison, but '123' input will match 123 haystack member.
*
* @param boolean
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/RangeMaxExclusive.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct (array $options = []) {
}

if (!is_numeric($options['range'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundry option must be numeric.');
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundary option must be numeric.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/RangeMaxInclusive.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct (array $options = []) {
}

if (!is_numeric($options['range'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundry option must be numeric.');
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundary option must be numeric.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/RangeMinExclusive.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct (array $options = []) {
}

if (!is_numeric($options['range'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundry option must be numeric.');
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundary option must be numeric.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/RangeMinInclusive.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct (array $options = []) {
}

if (!is_numeric($options['range'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundry option must be numeric.');
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Minimum boundary option must be numeric.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function testValidSyntax () {

/**
* Since the underlying implementation is using PHP filter_var, there
* is no reason to extensively test different (in)valid email addressses.
* is no reason to extensively test different (in)valid email addresses.
*/
public function testInvalidSyntax () {
$validator = new \Gajus\Vlad\Validator\Email();
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/RangeMaxExclusiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function testMissingParameter () {

/**
* @expectedException Gajus\Vlad\Exception\InvalidArgumentException
* @expectedExceptionMessage Minimum boundry option must be numeric.
* @expectedExceptionMessage Minimum boundary option must be numeric.
*/
public function testInvalidRangeParameter () {
new \Gajus\Vlad\Validator\RangeMaxExclusive(['range' => 'test']);
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/RangeMaxInclusiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function testMissingParameter () {

/**
* @expectedException Gajus\Vlad\Exception\InvalidArgumentException
* @expectedExceptionMessage Minimum boundry option must be numeric.
* @expectedExceptionMessage Minimum boundary option must be numeric.
*/
public function testInvalidRangeParameter () {
new \Gajus\Vlad\Validator\RangeMaxInclusive(['range' => 'test']);
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/RangeMinExclusiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function testMissingParameter () {

/**
* @expectedException Gajus\Vlad\Exception\InvalidArgumentException
* @expectedExceptionMessage Minimum boundry option must be numeric.
* @expectedExceptionMessage Minimum boundary option must be numeric.
*/
public function testInvalidRangeParameter () {
new \Gajus\Vlad\Validator\RangeMinExclusive(['range' => 'test']);
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/RangeMinInclusiveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function testMissingParameter () {

/**
* @expectedException Gajus\Vlad\Exception\InvalidArgumentException
* @expectedExceptionMessage Minimum boundry option must be numeric.
* @expectedExceptionMessage Minimum boundary option must be numeric.
*/
public function testInvalidRangeParameter () {
new \Gajus\Vlad\Validator\RangeMinInclusive(['range' => 'test']);
Expand Down

0 comments on commit 8ad4d14

Please sign in to comment.