Last active
November 29, 2016 17:25
-
-
Save calina-c/5f21c6260b4c4c14aaf099b61d7e20fa to your computer and use it in GitHub Desktop.
This file contains 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
return $id ? "The item was updated." : "The item was created"; | |
######## | |
$action = $id ? "updated" : "created"; | |
return sprintf("The item was %s.", $action). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment