By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| <?xml version="1.0"?> | |
| <ruleset name="Laravel Standards"> | |
| <!-- | |
| The name attribute of the ruleset tag is displayed | |
| when running PHP_CodeSniffer with the -v command line | |
| argument. The description tag below is not displayed anywhere | |
| except in this file, so it can contain information for | |
| developers who may change this file in the future. | |
| --> |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
This is a git pre-push hook intended to help developers keep their PHP code base clean by performing a scan with PHP CodeSniffer whenever new code is pushed to the repository. When any coding standards violations are present the push is rejected, allowing the developer to fix the code before making it public.
To increase performance only the changed files are checked when new code is
| <?php | |
| use Aws\Sns\SnsClient; | |
| use Illuminate\Contracts\Broadcasting\Broadcaster; | |
| class SnsBroadcaster implements Broadcaster | |
| { | |
| /** @var SnsClient */ | |
| private $sns; | |
| /** @var array */ |
| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |