Skip to:
Content

bbPress.org

Ticket #3294: trac-3294-phpcs-fix-property-modifiers.patch

File trac-3294-phpcs-fix-property-modifiers.patch, 829 bytes (added by jrf, 5 years ago)

Fixes all violations against the PSR2.Classes.PropertyDeclaration.ScopeMissing and the PSR2.Classes.PropertyDeclaration.VarUsed error codes

  • src/includes/common/classes.php

     
    3030         * @var string Unique name (for internal identification)
    3131         * @internal
    3232         */
    33         var $name;
     33        public $name;
    3434
    3535        /**
    3636         * @var Unique ID (normally for custom post type)
    3737         */
    38         var $id;
     38        public $id;
    3939
    4040        /**
    4141         * @var string Unique slug (used in query string and permalinks)
    4242         */
    43         var $slug;
     43        public $slug;
    4444
    4545        /**
    4646         * @var WP_Query The loop for this component
    4747         */
    48         var $query;
     48        public $query;
    4949
    5050        /**
    5151         * @var string The current ID of the queried object
    5252         */
    53         var $current_id;
     53        public $current_id;
    5454
    5555
    5656        /** Methods ***************************************************************/