Created
December 24, 2020 14:41
-
-
Save karakanb/820137ff398845b21c12d7b32f9046c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if (is_null($repository)) { | |
$result = null; | |
} else { | |
$user = $repository->getUser(5); | |
if (is_null($user)) { | |
$result = null; | |
} else { | |
$result = $user->name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment