Skip to content

Commit fba1d54

Browse files
committed
Merge branch 'master' of github.com:mpociot/laravel-apidoc-generator
2 parents 2238df0 + 916820a commit fba1d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ private function setUserToBeImpersonated($actAs)
213213
if (! empty($actAs)) {
214214
if (version_compare($this->laravel->version(), '5.2.0', '<')) {
215215
$userModel = config('auth.model');
216-
$user = $userModel::find((int)$actAs);
216+
$user = $userModel::find((int) $actAs);
217217
$this->laravel['auth']->setUser($user);
218218
} else {
219219
$userModel = config('auth.providers.users.model');
220-
$user = $userModel::find((int)$actAs);
220+
$user = $userModel::find((int) $actAs);
221221
$this->laravel['auth']->guard()->setUser($user);
222222
}
223223
}

0 commit comments

Comments
 (0)