codenitive/laravel-oneauth — pull request #24 by eduardocruz (2012-10-05 20:40:18+00:00)
Title: #Fix #23 Error on Linkedin authentication

Fixed #23

BEFORE:
$nickname = end(explode('/', $linked_url));

AFTER:
$profile_nickname = explode('/', $linked_url);
$nickname = end($profile_nickname);

Explanation on PHP documentation:

The array. This array is passed by reference because it is modified by the function. This means you must pass it a real variable and not a function returning an array because only actual variables may be passed by reference.

http://www.php.net/manual/en/function.end.php