This may sound like a stupid question but it's causing some disagreement among my team. Should you add full stops (that's periods for you programmers over the pond) to my errors?
Which is better?
throw new \Exception( 'Failed to delete ' . $model_name );
or
throw new \Exception( 'Failed to delete ' . $model_name . '.' );
Problems arise when you need to concatenate multiple messages so I guess it's just a matter of consistency but is there a standard way of doing this?
If it falls nicely into the definition of a sentence it probably requires a full stop.
A grammatical unit that is syntactically independent and has a subject that is expressed or, as in imperative sentences, understood and a predicate that contains at least one finite verb.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With