File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -200,17 +200,15 @@ public function ok($exp, $message = '')
200200 private function equals ($ exp1 , $ exp2 )
201201 {
202202 if (is_object ($ exp1 ) || is_object ($ exp2 )) {
203- $ value = $ exp1 === $ exp2 ;
203+ return $ exp1 === $ exp2 ;
204204 } else if (is_float ($ exp1 ) && is_float ($ exp2 )) {
205- $ value = abs ($ exp1 - $ exp2 ) < self ::EPSILON ;
205+ return abs ($ exp1 - $ exp2 ) < self ::EPSILON ;
206206 } else if (is_string ($ exp1 ) && is_numeric ($ exp1 ) || is_string ($ exp2 ) && is_numeric ($ exp2 )) {
207207 return $ exp1 == $ exp2 ;
208208 } else if (is_string ($ exp1 ) || is_string ($ exp2 )) {
209209 return (string ) $ exp1 === (string ) $ exp2 ;
210- } else {
211- $ value = $ exp1 == $ exp2 ;
212210 }
213- return $ value ;
211+ return $ exp1 == $ exp2 ;
214212 }
215213
216214 /**
You can’t perform that action at this time.
0 commit comments