This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.
Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.
| function change_job_listing_slug( $args ) { | |
| $args['rewrite']['slug'] = _x( 'careers', 'Job permalink - resave permalinks after changing this', 'job_manager' ); | |
| return $args; | |
| } | |
| add_filter( 'register_post_type_job_listing', 'change_job_listing_slug' ); | 
| // only add one force sell product to the cart no matter how many of the original product are added | |
| function my_wc_force_sell_add_to_cart_product( $product ){ | |
| $product['quantity'] = 1; | |
| return $product; | |
| } | |
| add_filter( 'wc_force_sell_add_to_cart_product', 'my_wc_force_sell_add_to_cart_product' ); | |
| // when a synced force sell product is updated always set it to 1 | |
| function my_wc_force_sell_update_quantity( $quantity, $product ){ | |
| return 1; | 
| <?php | |
| /** | |
| * This file adds the SearchWP Images template to your theme. | |
| * | |
| * Template Name: SearchWP Images | |
| * | |
| * @author Robert Neu | |
| * @package Genesis | |
| * @subpackage SearchWP | |
| */ | 
This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.
Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
| #!/usr/bin/php | |
| <?php | |
| /* | |
| * Convert JSON file to CSV and output it. | |
| * | |
| * JSON should be an array of objects, dictionaries with simple data structure | |
| * and the same keys in each object. | |
| * The order of keys it took from the first element. | |
| * | |
| * Example: | 
| <?php | |
| /** | |
| * excerpt from compound classroom field, for example purposes only | |
| * the real class is over 700 lines | |
| */ | |
| class OlpcGfClassroomField { | |
| /** | |
| * hook into Gravity Forms | 
| <?php | |
| /* Example Usage: | |
| * bt_add_image_size( 'product-screenshot', 300, 300, array( 'left', 'top' ) ); | |
| * bt_add_image_size( 'product-feature', 460, 345, array( 'center', 'top' ) ); | |
| */ | |
| add_filter( 'intermediate_image_sizes_advanced', 'bt_intermediate_image_sizes_advanced' ); | |
| add_filter( 'wp_generate_attachment_metadata', 'bt_generate_attachment_metadata', 10, 2 ); | |
| /** | 
| /* | |
| Copyright 2011 Martin Hawksey | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | 
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |