ITellMyselfSecrets
8 months ago

How to do this better

Posted 8 months ago by ITellMyselfSecrets

Hi, I have function that generates a asset url for me. How can I make that more readable?

public function imageUrl($region, $bucket, $directory, $file) { return 'http://s3.' . $region . '.amazonaws.com/' . $bucket . '/' . $directory . '/' . $file; }

Please sign in or create an account to participate in this conversation.