@@ -939,7 +939,7 @@ public function seeRecord($table, $attributes = [])
939939 if (! $ this ->findModel ($ table , $ attributes )) {
940940 $ this ->fail ("Could not find $ table with " . json_encode ($ attributes ));
941941 }
942- } else if (! $ this ->findRecord ($ table , $ attributes )) {
942+ } elseif (! $ this ->findRecord ($ table , $ attributes )) {
943943 $ this ->fail ("Could not find matching record in table ' $ table' " );
944944 }
945945 }
@@ -965,7 +965,7 @@ public function dontSeeRecord($table, $attributes = [])
965965 if ($ this ->findModel ($ table , $ attributes )) {
966966 $ this ->fail ("Unexpectedly found matching $ table with " . json_encode ($ attributes ));
967967 }
968- } else if ($ this ->findRecord ($ table , $ attributes )) {
968+ } elseif ($ this ->findRecord ($ table , $ attributes )) {
969969 $ this ->fail ("Unexpectedly found matching record in table ' $ table' " );
970970 }
971971 }
@@ -1064,7 +1064,7 @@ public function have($model, $attributes = [], $name = 'default')
10641064 {
10651065 try {
10661066 return $ this ->modelFactory ($ model , $ name )->create ($ attributes );
1067- } catch (\Exception $ e ) {
1067+ } catch (\Exception $ e ) {
10681068 $ this ->fail ("Could not create model: \n\n" . get_class ($ e ) . "\n\n" . $ e ->getMessage ());
10691069 }
10701070 }
@@ -1093,7 +1093,7 @@ public function haveMultiple($model, $times, $attributes = [], $name = 'default'
10931093 {
10941094 try {
10951095 return $ this ->modelFactory ($ model , $ name , $ times )->create ($ attributes );
1096- } catch (\Exception $ e ) {
1096+ } catch (\Exception $ e ) {
10971097 $ this ->fail ("Could not create model: \n\n" . get_class ($ e ) . "\n\n" . $ e ->getMessage ());
10981098 }
10991099 }
0 commit comments