@@ -100,7 +100,7 @@ private function matchScalar(array $values, Matcher $matcher)
100100 $ match = $ matcher ->match ($ value , $ this ->pattern );
101101
102102 if (!$ match ) {
103- $ this ->error = sprintf ("Repeat expander, entry n°%d, find error : %s " , $ index , $ matcher ->getError ());
103+ $ this ->error = sprintf ("Repeat expander, entry n°%d, find error : %s " , $ index , $ matcher ->getError ());
104104 return false ;
105105 }
106106 }
@@ -129,14 +129,14 @@ private function matchJson(array $values, Matcher $matcher)
129129
130130 foreach ($ patternKeys as $ key ) {
131131 if (!array_key_exists ($ key , $ value )) {
132- $ this ->error = sprintf ("Repeat expander, entry n°%d, require \"array \" to have key \"%s \". " , $ index , $ key );
132+ $ this ->error = sprintf ("Repeat expander, entry n°%d, require \"array \" to have key \"%s \". " , $ index , $ key );
133133 return false ;
134134 }
135135
136136 $ match = $ matcher ->match ($ value [$ key ], $ this ->pattern [$ key ]);
137137
138138 if (!$ match ) {
139- $ this ->error = sprintf ("Repeat expander, entry n°%d, key \"%s \", find error : %s " , $ index , $ key , $ matcher ->getError ());
139+ $ this ->error = sprintf ("Repeat expander, entry n°%d, key \"%s \", find error : %s " , $ index , $ key , $ matcher ->getError ());
140140 return false ;
141141 }
142142 }
0 commit comments