Making WordPress.org

Changeset 1304


Ignore:
Timestamp:
02/24/2015 08:05:37 PM (11 years ago)
Author:
iandunn
Message:

Multi Event Sponsors: Whitespace and documentation cleanup.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsor.php

    r1302 r1304  
    1313
    1414class MES_Sponsor {
    15         const POST_TYPE_SLUG     = 'mes';
     15        const POST_TYPE_SLUG = 'mes';
    1616       
    1717        /**
     
    1919         */
    2020        public function __construct() {
    21                 add_action( 'init',                                   array( $this, 'create_post_type' ) );
    22                 add_action( 'admin_init',                             array( $this, 'add_meta_boxes' ) );
    23                 add_action( 'save_post',                              array( $this, 'save_post' ), 10, 2 );
    24                 add_filter( 'the_content',                            array( $this, 'add_header_footer_text' ) );
    25 
    26                 // todo readjust whitespace after this commit
     21                add_action( 'init',        array( $this, 'create_post_type' ) );
     22                add_action( 'admin_init',  array( $this, 'add_meta_boxes' ) );
     23                add_action( 'save_post',   array( $this, 'save_post' ), 10, 2 );
     24                add_filter( 'the_content', array( $this, 'add_header_footer_text' ) );
    2725        }
    2826
     
    126124         * @param array $regional_sponsorships
    127125         * @param array $regions
     126         *
    128127         * @return array
    129128         */
     
    203202         *
    204203         * @param string $content
     204         *
    205205         * @return string
    206206         */
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsorship-level.php

    r1302 r1304  
    1515         */
    1616        public function __construct() {
    17                 add_action( 'init',                                   array( $this, 'create_post_type' ) );
    18                 add_action( 'admin_init',                             array( $this, 'add_meta_boxes' ) );
    19                 add_action( 'save_post',                              array( $this, 'save_post' ), 10, 2 );
    20                 add_filter( 'the_content',                            array( $this, 'add_header_footer_text' ) );
    21 
    22                 // todo readjust whitepsace after this commit
     17                add_action( 'init',        array( $this, 'create_post_type' ) );
     18                add_action( 'admin_init',  array( $this, 'add_meta_boxes' ) );
     19                add_action( 'save_post',   array( $this, 'save_post' ), 10, 2 );
     20                add_filter( 'the_content', array( $this, 'add_header_footer_text' ) );
    2321        }
    2422
     
    140138         *
    141139         * @param string $content
     140         *
    142141         * @return string
    143142         */
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/multi-event-sponsors.php

    r1302 r1304  
    3636         * Render the multi_event_sponsors shortcode output
    3737         *
    38          * @param $parameters
     38         * @param array $parameters
     39         *
    3940         * @return string
    4041         */
     
    5657         *
    5758         * @param array $old_array
     59         *
    5860         * @return array
    5961         */
     
    8890         * @param array $sponsors
    8991         * @param array $regions
     92         *
    9093         * @return array
    9194         */
     
    121124         * @param int $region_a_id
    122125         * @param int $region_b_id
     126         *
    123127         * @return int
    124128         */
     
    141145         * @param int $level_a_id
    142146         * @param int $level_b_id
     147         *
    143148         * @return int
    144149         */
     
    161166         *     'ungrouped' will return a one-dimensional array;
    162167         *     'sponsor_level' will return an associative array with sponsors grouped by their level and indexed by level ID
     168         *
    163169         * @return array
    164170         */
     
    197203         *
    198204         * @param array $sponsors
     205         *
    199206         * @return array
    200207         */
     
    217224         *
    218225         * @param array $sponsors
     226         *
    219227         * @return string
    220228         */
     
    239247         *
    240248         * @param array $sponsors
     249         *
    241250         * @return string
    242251         */
Note: See TracChangeset for help on using the changeset viewer.