PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings>Code Style>PHP. - Select
Set From...(top right of window) >Predefined Style>WordPress.
No longer need to muck with this import! :)
| <?php | |
| // ... | |
| /** | |
| * Define the routes for the application. | |
| * | |
| * @param \Illuminate\Routing\Router $router | |
| * @return void | |
| */ |
| # when you run `make` alone, run the `css` rule (at the | |
| # bottom of this makefile) | |
| all: css | |
| # .PHONY is a special command, that allows you not to | |
| # require physical files as the target (allowing us to | |
| # use the `all` rule as the default target). | |
| .PHONY: all | |
| # replace all .less files with .css extension and cache |
| // ==UserScript== | |
| // @name comedy is not dead | |
| // @namespace rossdoran.com | |
| // @version 0.1 | |
| // @description comedy is not dead | |
| // @author ross doran | |
| // @match https://www.facebook.com/* | |
| // @require http://code.jquery.com/jquery-latest.js | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // ==/UserScript== |
| <?php | |
| /** | |
| * emailValid | |
| * Email Validation Function | |
| * I take an email as a string and test it against 2 regular expressions. | |
| * | |
| * @author Regexp Author unknown | |
| * @author Phillip Harrington <[email protected]> | |
| * @param string $email | |
| * @return bool $valid |