Skip to content

Commit 04e2477

Browse files
committed
All those private methods...
1 parent 61b0f55 commit 04e2477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Tricks/Filters/TrickOwnerFilter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function filter($route)
6868
*
6969
* @return int
7070
*/
71-
private function getUserId()
71+
protected function getUserId()
7272
{
7373
return $this->auth->user()->id;
7474
}
@@ -78,7 +78,7 @@ private function getUserId()
7878
* @param \Illuminate\Routing\Route $route
7979
* @return string
8080
*/
81-
private function getSlug($route)
81+
protected function getSlug($route)
8282
{
8383
return $route->getParameter('trick_slug');
8484
}
@@ -90,7 +90,7 @@ private function getSlug($route)
9090
* @param int $userId
9191
* @return bool
9292
*/
93-
private function isTrickOwnedByUser($slug, $userId)
93+
protected function isTrickOwnedByUser($slug, $userId)
9494
{
9595
return $this->tricks->isTrickOwnedByUser($slug, $userId);
9696
}

0 commit comments

Comments
 (0)