Completed
Branch master (6574bf)
by
unknown
07:51 queued 04:01
created
help/AdminPageFrameworkLoader_AdminPage_Help_Information.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     public function replyToDoTab( /* $oFactory */ ) {
22 22
     
23 23
         echo $this->_getReadmeContents( 
24
-            AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt', 
25
-            '',     // no TOC
24
+            AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/about.txt', 
25
+            '', // no TOC
26 26
             array( 'Support' )
27 27
         );    
28 28
  
Please login to merge, or discard this patch.
admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 
26 26
         // Tabs
27 27
         new AdminPageFrameworkLoader_AdminPage_Help_Information(
28
-            $oFactory,    // factory object
29
-            $this->sPageSlug,   // page slug
28
+            $oFactory, // factory object
29
+            $this->sPageSlug, // page slug
30 30
             array(  // tab definition
31 31
                 'tab_slug'  => 'information',
32 32
                 'title'     => __( 'Support', 'admin-page-framework-loader' ),             
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
                 'title'         => __( 'Getting Started', 'admin-page-framework-loader' ),
41 41
                 'url'           => add_query_arg( 
42 42
                     array( 
43
-                        'page'  => AdminPageFrameworkLoader_Registry::$aAdminPages['about'],
43
+                        'page'  => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ],
44 44
                         // 'tab'   => 'guide',
45 45
                     ),
46 46
                     admin_url( 'index.php' )   // Dashboard
47
-                ) . '#section-getting_started__'
47
+                ).'#section-getting_started__'
48 48
             )                          
49 49
         );                             
50 50
         new AdminPageFrameworkLoader_AdminPage_Help_FAQ(
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 'title'     => __( 'About', 'admin-page-framework-loader' ),
88 88
                 'url'       => add_query_arg( 
89 89
                     array( 
90
-                        'page' => AdminPageFrameworkLoader_Registry::$aAdminPages['about']
90
+                        'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ]
91 91
                     ),
92 92
                     admin_url( 'index.php' )   // Dashboard
93 93
                 )           
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
     
106 106
         // Page meta boxes
107 107
         new AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks(
108
-            null,                                           // meta box id - passing null will make it auto generate
108
+            null, // meta box id - passing null will make it auto generate
109 109
             __( 'Resources', 'admin-page-framework-loader' ), // title
110 110
             array( // page slugs
111 111
                 AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
112 112
             ),
113
-            'side',                                       // context
113
+            'side', // context
114 114
             'default'                                     // priority            
115 115
         );        
116 116
      
117 117
         $oFactory->enqueueStyle( 
118
-            AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/help.css', 
118
+            AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/help.css', 
119 119
             $this->sPageSlug
120 120
         );
121 121
         
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->sTabSlug     = $aSectionDefinition[ 'tab_slug' ];
48 48
         $this->sSectionID   = $aSectionDefinition[ 'section_id' ];
49 49
         
50
-        if ( ! $this->sSectionID ) {
50
+        if ( !$this->sSectionID ) {
51 51
             return;
52 52
         }
53 53
         $this->_addSection( $oFactory, $sPageSlug, $aSectionDefinition );
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
         
61 61
         add_action( 
62 62
             // 'validation_' . $this->sPageSlug . '_' . $this->sTabSlug, 
63
-            'validation_' . $oFactory->oProp->sClassName . '_' . $this->sSectionID,
63
+            'validation_'.$oFactory->oProp->sClassName.'_'.$this->sSectionID,
64 64
             array( $this, 'validate' ), 
65 65
             10, 
66 66
             4 
67 67
         );
68 68
         
69 69
         $oFactory->addSettingSections(
70
-            $sPageSlug,    // target page slug
70
+            $sPageSlug, // target page slug
71 71
             $aSectionDefinition
72 72
         );        
73 73
         
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $_aErrors   = array();
97 97
                  
98 98
         // An invalid value is found. Set a field error array and an admin notice and return the old values.
99
-        if ( ! $_bVerified ) {
99
+        if ( !$_bVerified ) {
100 100
             $oFactory->setFieldErrors( $_aErrors );     
101 101
             $oFactory->setSettingNotice( __( 'There was something wrong with your input.', 'admin-page-framework-loader' ) );
102 102
             return $aOldInput;
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ? $aTabDefinition[ 'tab_slug' ] 
50 50
             : '';
51 51
         
52
-        if ( ! $this->sTabSlug ) {
52
+        if ( !$this->sTabSlug ) {
53 53
             return;
54 54
         }
55 55
         
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             
73 73
         if ( $aTabDefinition[ 'tab_slug' ] ) {
74 74
             add_action( 
75
-                "load_{$sPageSlug}_{$aTabDefinition['tab_slug']}",
75
+                "load_{$sPageSlug}_{$aTabDefinition[ 'tab_slug' ]}",
76 76
                 array( $this, 'replyToLoadTab' ) 
77 77
             );
78 78
             add_action( 
Please login to merge, or discard this patch.
include/class/option/AdminPageFrameworkLoader_Option.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
      * Stores the option values.
29 29
      */
30 30
     public $aOptions = array(
31
-        'welcomed'              => false,       // if the welcome screen is displayed, this will be true.
32
-        'enable_admin_pages'    => true,        // whether or not to enable the admin pages of the loader plugin.
31
+        'welcomed'              => false, // if the welcome screen is displayed, this will be true.
32
+        'enable_admin_pages'    => true, // whether or not to enable the admin pages of the loader plugin.
33 33
         'enable_demo'           => false,
34
-        'version_upgraded_from' => null,        // the version number that the user has upgraded from
35
-        'version_saved'         => null,        // represents the option version.
34
+        'version_upgraded_from' => null, // the version number that the user has upgraded from
35
+        'version_saved'         => null, // represents the option version.
36 36
     );
37 37
          
38 38
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * 
53 53
      * @since      3.5.0
54 54
      */
55
-    static public function getInstance( $sOptionKey='' ) {
55
+    static public function getInstance( $sOptionKey = '' ) {
56 56
         
57 57
         $sOptionKey = $sOptionKey 
58 58
             ? $sOptionKey
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function __construct( $sOptionKey ) {
75 75
         
76
-        $this->bIsNetworkAdmin  = is_network_admin();   // must be done first
76
+        $this->bIsNetworkAdmin  = is_network_admin(); // must be done first
77 77
         $this->sOptionKey       = $sOptionKey;
78 78
         $this->aOptions         = $this->_getFormattedOptions( $sOptionKey );
79 79
          
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function hasUpgraded() {
100 100
         
101
-        $_sOptionVersion  = $this->get( 'version_saved' );
102
-        if ( ! $_sOptionVersion ) {
101
+        $_sOptionVersion = $this->get( 'version_saved' );
102
+        if ( !$_sOptionVersion ) {
103 103
             return false;
104 104
         }
105 105
         $_sOptionVersion        = $this->_getVersionByDepth( $_sOptionVersion );
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
          * Returns a stating part of version by the given depth.
112 112
          * @since       3.5.0
113 113
          */
114
-        private function _getVersionByDepth( $sVersion, $iDepth=2 ) {
115
-            if ( ! $iDepth ) {
114
+        private function _getVersionByDepth( $sVersion, $iDepth = 2 ) {
115
+            if ( !$iDepth ) {
116 116
                 return $sVersion;
117 117
             }
118 118
             $_aParts = explode( '.', $sVersion );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Saves the options.
134 134
      */
135
-    public function save( $aOptions=null ) {
135
+    public function save( $aOptions = null ) {
136 136
 
137 137
         $_aOptions = $aOptions ? $aOptions : $this->aOptions;
138 138
         return $this->bIsNetworkAdmin
@@ -151,15 +151,15 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function set( /* $asKeys, $mValue */ ) {
153 153
         
154
-        $_aParameters   = func_get_args();
155
-        if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
154
+        $_aParameters = func_get_args();
155
+        if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
156 156
             return;
157 157
         }
158 158
         $_asKeys        = $_aParameters[ 0 ];
159 159
         $_mValue        = $_aParameters[ 1 ];
160 160
         
161 161
         // string, integer, float, boolean
162
-        if ( ! is_array( $_asKeys ) ) {
162
+        if ( !is_array( $_asKeys ) ) {
163 163
             $this->aOptions[ $_asKeys ] = $_mValue;
164 164
             return;
165 165
         }
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function update( /* $asKeys, $mValue */ ) {
176 176
         
177
-        $_aParameters   = func_get_args();
178
-        call_user_func_array( array( $this, 'set' ),  $_aParameters );
177
+        $_aParameters = func_get_args();
178
+        call_user_func_array( array( $this, 'set' ), $_aParameters );
179 179
         $this->save();
180 180
 
181 181
     }
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
         
190 190
         $_mDefault  = null;
191 191
         $_aKeys     = func_get_args();
192
-        if ( ! isset( $_aKeys[ 0 ] ) ) {
192
+        if ( !isset( $_aKeys[ 0 ] ) ) {
193 193
             return null;
194 194
         }
195 195
         if ( is_array( $_aKeys[ 0 ] ) ) {
196
-            $_aKeys     =  $_aKeys[ 0 ];
196
+            $_aKeys     = $_aKeys[ 0 ];
197 197
             $_mDefault  = isset( $_aKeys[ 1 ] )
198 198
                 ? $_aKeys[ 1 ]
199 199
                 : null;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
Please login to merge, or discard this patch.
_model/AdminPageFramework_Property_network_admin_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 $GLOBALS, 
47 47
                 array( 'aAdminPageFramework', 'aPageClasses', $this->sClassName ) 
48 48
             ),
49
-            'options_' . $this->sClassName, // options_{instantiated class name}
49
+            'options_'.$this->sClassName, // options_{instantiated class name}
50 50
             $this->sOptionKey 
51 51
                 ? get_site_option( $this->sOptionKey, array() ) 
52 52
                 : array()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @since       3.1.1       Made it return a boolean value.
65 65
      * @return      boolean     True if saved; otherwise, false.
66 66
      */
67
-    public function updateOption( $aOptions=null ) {
67
+    public function updateOption( $aOptions = null ) {
68 68
         
69 69
         if ( $this->_bDisableSavingOptions ) {
70 70
             return;
Please login to merge, or discard this patch.
_view/AdminPageFramework_PageLoadInfo_network_admin_page.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@
 block discarded – undo
40 40
      */
41 41
     public static function instantiate( $oProp, $oMsg ) {
42 42
 
43
-        if ( ! is_network_admin() ) { 
43
+        if ( !is_network_admin() ) { 
44 44
             return;
45 45
         }     
46 46
         
47 47
         if ( in_array( $oProp->sClassName, self::$aClassNames ) )
48 48
             return self::$_oInstance;
49 49
         
50
-        self::$aClassNames[] = $oProp->sClassName;
50
+        self::$aClassNames[ ] = $oProp->sClassName;
51 51
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_NetworkAdminPage( $oProp, $oMsg );
52 52
         
53 53
         return self::$_oInstance;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
      */
43 43
     public static function instantiate( $oProp, $oMsg ) {
44 44
 
45
-        if ( ! is_network_admin() ) { 
45
+        if ( ! is_network_admin() ) {
46 46
             return;
47 47
         }     
48 48
         
49
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {            
49
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
50 50
             return self::$_oInstance;
51 51
         }
52 52
         
Please login to merge, or discard this patch.
factory/user_meta/_controller/AdminPageFramework_Resource_user_meta.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,5 +20,5 @@
 block discarded – undo
20 20
  * @extends     AdminPageFramework_Resource_post_meta_box
21 21
  * @internal
22 22
  */
23
-class AdminPageFramework_Resource_user_meta extends AdminPageFramework_Resource_post_meta_box {    
23
+class AdminPageFramework_Resource_user_meta extends AdminPageFramework_Resource_post_meta_box {
24 24
 }
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta_Router.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         
28 28
         parent::__construct( $oProp );
29 29
         
30
-        if ( ! $this->oProp->bIsAdmin ) {
30
+        if ( !$this->oProp->bIsAdmin ) {
31 31
             return;
32 32
         }
33 33
         
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         );
38 38
         
39 39
         // 3.7.10+
40
-        add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
40
+        add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
41 41
                         
42 42
     }
43 43
     
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function _isInThePage() {
52 52
                
53
-        if ( ! $this->oProp->bIsAdmin ) {
53
+        if ( !$this->oProp->bIsAdmin ) {
54 54
             return false;
55 55
         }
56 56
 
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
     public function _replyToSetUpHooks( $oFactory ) {
72 72
         
73 73
         // Hooks to display fields.
74
-        add_action( 'show_user_profile', array( $this, '_replyToPrintFields' ) );   // profile.php
75
-        add_action( 'edit_user_profile', array( $this, '_replyToPrintFields' ) );   // profile.php
76
-        add_action( 'user_new_form', array( $this, '_replyToPrintFields' ) );   // user-new.php
74
+        add_action( 'show_user_profile', array( $this, '_replyToPrintFields' ) ); // profile.php
75
+        add_action( 'edit_user_profile', array( $this, '_replyToPrintFields' ) ); // profile.php
76
+        add_action( 'user_new_form', array( $this, '_replyToPrintFields' ) ); // user-new.php
77 77
         
78 78
         // Hooks to save field values.
79 79
         add_action( 'personal_options_update', array( $this, '_replyToSaveFieldValues' ) ); // profile.php
80
-        add_action( 'edit_user_profile_update', array( $this, '_replyToSaveFieldValues' ) );    // profile.php
81
-        add_action('user_register', array( $this, '_replyToSaveFieldValues' ) );    // user-new.php
80
+        add_action( 'edit_user_profile_update', array( $this, '_replyToSaveFieldValues' ) ); // profile.php
81
+        add_action( 'user_register', array( $this, '_replyToSaveFieldValues' ) ); // user-new.php
82 82
                        
83 83
     }        
84 84
     
Please login to merge, or discard this patch.