Skip to content

Commit d574e3d

Browse files
committed
Maintanance
* fixed codestyle * updated codeception/base release script * updated changelog * version bump
1 parent fbb4f5c commit d574e3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/Laravel5.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)