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! :)
| { | |
| // Sets the colors used within the text area | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| // Note that the font_face and font_size are overriden in the platform | |
| // specific settings file, for example, "Base File (Linux).sublime-settings". | |
| // Because of this, setting them here will have no effect: you must set them | |
| // in your User File Preferences. | |
| "font_face": "Monaco", | |
| "font_size": 12, |
| ; Sample supervisor config file. | |
| [unix_http_server] | |
| file=/tmp/supervisor.sock ; (the path to the socket file) | |
| ;chmod=0700 ; sockef file mode (default 0700) | |
| ;chown=nobody:nogroup ; socket file uid:gid owner | |
| ;username=user ; (default is no username (open server)) | |
| ;password=123 ; (default is no password (open server)) | |
| ;[inet_http_server] ; inet (TCP) server disabled by default |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <?php | |
| namespace Acme\DemoBundle\Features\Context; | |
| use Behat\BehatBundle\Context\BehatContext, | |
| Behat\Behat\Context\TranslatedContextInterface, | |
| Behat\Behat\Exception\PendingException; | |
| use Behat\Gherkin\Node\PyStringNode, | |
| Behat\Gherkin\Node\TableNode; |
| #!/bin/sh | |
| REPOSRC=$1 | |
| LOCALREPO=$2 | |
| # We do it this way so that we can abstract if from just git later on | |
| LOCALREPO_VC_DIR=$LOCALREPO/.git | |
| if [ ! -d $LOCALREPO_VC_DIR ] | |
| then |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="Symfony2 project" default="build"> | |
| <target name="build" depends="pull, vendors, cache, assetic, assets"> | |
| <echo message="Symfony2 project"/> | |
| </target> | |
| <macrodef name="git"> | |
| <attribute name="command" /> | |
| <attribute name="dir" default="" /> | |
| <element name="args" optional="true" /> |
| # the following two lines give a two-line status, with the current window highlighted | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
| # huge scrollback buffer | |
| defscrollback 5000 | |
| # no welcome message | |
| startup_message off |
| This playbook has been removed as it is now very outdated. |
| <?php | |
| /** | |
| * Benchmark: Reflection Performance | |
| * | |
| * Conclusion: there is no performance-gain from caching reflection-objects. | |
| */ | |
| define('NUM_TESTS', 10); |