-
-
Save miguelcma/5096003 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
<?php | |
if (in_array($name, array_keys($this->calls))) { | |
if ($this->$name($data)) { | |
return $this->dialIn($name, $data); | |
} | |
} else { | |
return "Non-existent call"; | |
} | |
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
<?php | |
if (!in_array($name, array_keys($this->calls)) || !$this->$name($data)) { | |
return "Non-existent call"; | |
} | |
return $this->dialIn($name, $data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment