@@ -36,7 +36,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
3636 if (!$ date = $ this ->validateDateTime ($ element , 'Y-m-d ' )) {
3737 $ this ->addError (ConstraintError::FORMAT_DATE (), $ path , array (
3838 'date ' => $ element ,
39- 'format ' => $ schema ->format
39+ 'format ' => $ schema ->format ,
4040 )
4141 );
4242 }
@@ -56,7 +56,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
5656 if (null === Rfc3339::createFromString ($ element )) {
5757 $ this ->addError (ConstraintError::FORMAT_DATE_TIME (), $ path , array (
5858 'dateTime ' => json_encode ($ element ),
59- 'format ' => $ schema ->format
59+ 'format ' => $ schema ->format ,
6060 )
6161 );
6262 }
@@ -66,15 +66,15 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
6666 if (!$ this ->validateDateTime ($ element , 'U ' )) {
6767 $ this ->addError (ConstraintError::FORMAT_DATE_UTC (), $ path , array (
6868 'value ' => $ element ,
69- 'format ' => $ schema ->format ));
69+ 'format ' => $ schema ->format , ));
7070 }
7171 break ;
7272
7373 case 'regex ' :
7474 if (!$ this ->validateRegex ($ element )) {
7575 $ this ->addError (ConstraintError::FORMAT_REGEX (), $ path , array (
7676 'value ' => $ element ,
77- 'format ' => $ schema ->format
77+ 'format ' => $ schema ->format ,
7878 )
7979 );
8080 }
@@ -204,7 +204,7 @@ protected function validateColor($color)
204204 {
205205 if (in_array (strtolower ($ color ), array ('aqua ' , 'black ' , 'blue ' , 'fuchsia ' ,
206206 'gray ' , 'green ' , 'lime ' , 'maroon ' , 'navy ' , 'olive ' , 'orange ' , 'purple ' ,
207- 'red ' , 'silver ' , 'teal ' , 'white ' , 'yellow ' ))) {
207+ 'red ' , 'silver ' , 'teal ' , 'white ' , 'yellow ' , ))) {
208208 return true ;
209209 }
210210
0 commit comments