summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Auth/GitHub.php4
-rw-r--r--app/Auth/Google.php2
-rw-r--r--app/Controller/User.php2
3 files changed, 1 insertions, 7 deletions
diff --git a/app/Auth/GitHub.php b/app/Auth/GitHub.php
index 1e99df41..0910367a 100644
--- a/app/Auth/GitHub.php
+++ b/app/Auth/GitHub.php
@@ -147,8 +147,6 @@ class GitHub extends Base
catch (TokenResponseException $e) {
return false;
}
-
- return false;
}
/**
@@ -172,7 +170,5 @@ class GitHub extends Base
catch (TokenResponseException $e) {
return false;
}
-
- return false;
}
}
diff --git a/app/Auth/Google.php b/app/Auth/Google.php
index 3dca96be..aeeab563 100644
--- a/app/Auth/Google.php
+++ b/app/Auth/Google.php
@@ -147,7 +147,5 @@ class Google extends Base
catch (TokenResponseException $e) {
return false;
}
-
- return false;
}
}
diff --git a/app/Controller/User.php b/app/Controller/User.php
index ee3d47eb..a02dd7be 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -93,7 +93,7 @@ class User extends Base
*/
private function getUser()
{
- $user = $this->user->getById($this->request->getIntegerParam('user_id'), true);
+ $user = $this->user->getById($this->request->getIntegerParam('user_id'));
if (! $user) {
$this->notfound();