Closed irfanevrens closed 8 years ago
1 - original
public function findAllForUser(User $user, $perPage = 9) { $tricks = $user->tricks()->orderBy('created_at', 'DESC')->paginate($perPage); return $tricks; }
2 - edited
public function findAllForUser(User $user, $perPage = 9) { return $user->tricks()->orderBy('created_at', 'DESC')->paginate($perPage); }
It could be done either way, but for readability it is split in two lines. I agree that there is some inconsistency in some of the files and it could be fixed with a Pull Request.
1 - original
2 - edited