Skip to content

Commit

Permalink
Apply fixes from StyleCI (#18900)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Apr 21, 2017
1 parent 22774b2 commit befcfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Validation/ValidationValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function testDisplayableAttributesAreReplacedInCustomReplacers()
$v->addExtension('alliteration', function ($attribute, $value, $parameters, $validator) {
$other = array_get($validator->getData(), $parameters[0]);

return $value{0} == $other{0};
return $value[0] == $other[0];
});
$v->addReplacer('alliteration', function ($message, $attribute, $rule, $parameters, $validator) {
return str_replace(':other', $validator->getDisplayableAttribute($parameters[0]), $message);
Expand All @@ -449,7 +449,7 @@ public function testDisplayableAttributesAreReplacedInCustomReplacers()
$v->addExtension('alliteration', function ($attribute, $value, $parameters, $validator) {
$other = array_get($validator->getData(), $parameters[0]);

return $value{0} == $other{0};
return $value[0] == $other[0];
});
$v->addReplacer('alliteration', function ($message, $attribute, $rule, $parameters, $validator) {
return str_replace(':other', $validator->getDisplayableAttribute($parameters[0]), $message);
Expand Down

0 comments on commit befcfbc

Please sign in to comment.