Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| <?php | |
| $query = <<<'GRAPHQL' | |
| query GetUser($user: String!) { | |
| user (login: $user) { | |
| name | |
| repositoriesContributedTo { | |
| totalCount | |
| } |
| id code name | |
| C OI Orthopedically Impaired | |
| F SI Speech Impaired | |
| G LI Language Impaired | |
| H DHH Deaf or Hard of Hearing | |
| I VI Vi | |
| J E/BD Emotional/Behavioral Disability | |
| K SLD Specific Learning Disability | |
| L L Gifted |
| <?php | |
| namespace Linkofy\CommonBundle\Menu; | |
| use Knp\Menu\FactoryInterface; | |
| use Symfony\Component\DependencyInjection\ContainerAware; | |
| class Builder extends ContainerAware | |
| { | |
| public function mainMenu(FactoryInterface $factory, array $options) |
| // overriding sync to use local storage when possible | |
| sync : function(method, model, options){ | |
| var key, now, timestamp, refresh; | |
| if(method === 'read' && this.constants.isStoredInLocalStorage) { | |
| // only override sync if it is a fetch('read') request | |
| key = this.getKey(); | |
| if(key) { | |
| now = new Date().getTime(); | |
| timestamp = $storage.get(key + ":timestamp"); | |
| refresh = options.forceRefresh; |
| {% pricingSet "packable_product" %} | |
| {% element "packaging_cost" %} | |
| {% element "net_value" %} | |
| {% element "net_value_with_packaging_cost" %} | |
| {% element "tax_amount" %} | |
| {% element "unit_price_with_tax" %} | |
| {% endpricingset %} | |
| {% pricingSet "cart_item" %} | |
| {% element "total_discount" %} |
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.