Completed
Branch dev (a3767f)
by Michael
40:38
created
development/document/AdminPageFramework_NetworkAdmin_Documentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7 7
  * 
8 8
  */
9
-if ( ! class_exists( 'AdminPageFramework_NetworkAdmin_Documentation' ) ) :
9
+if ( !class_exists( 'AdminPageFramework_NetworkAdmin_Documentation' ) ) :
10 10
 /**
11 11
  * Provides an abstract base to create admin pages in the network admin area.
12 12
  *
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Router.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         // Property object
134 134
         $this->oProp = $oProp;
135 135
     
136
-        if ( $this->oProp->bIsAdmin && ! $this->oProp->bIsAdminAjax ) {
136
+        if ( $this->oProp->bIsAdmin && !$this->oProp->bIsAdminAjax ) {
137 137
             if ( did_action( 'current_screen' ) ) {
138 138
                 $this->_replyToLoadComponents();
139 139
             } else {                
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 $this->oLink = $this->oLink;
161 161
             }
162 162
     
163
-            if ( ! $this->_isInThePage() ) { 
163
+            if ( !$this->_isInThePage() ) { 
164 164
                 return; 
165 165
             }
166 166
             
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         'network_admin_page'    => 'AdminPageFramework_HelpPane_Page',
297 297
         'post_meta_box'         => 'AdminPageFramework_HelpPane_MetaBox',
298 298
         'page_meta_box'         => 'AdminPageFramework_HelpPane_MetaBox_Page',
299
-        'post_type'             => null,    // no help pane class for the post type factory class.
299
+        'post_type'             => null, // no help pane class for the post type factory class.
300 300
         'taxonomy_field'              => 'AdminPageFramework_HelpPane_TaxonomyField',
301 301
         'widget'                => 'AdminPageFramework_HelpPane_Widget',
302 302
         'user_meta'             => 'AdminPageFramework_HelpPane_UserMeta',
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      */
358 358
     protected function _getPageLoadInfoInstance( $oProp, $oMsg ) {
359 359
         
360
-        if ( ! isset( $this->_aPageLoadClassNameMap[ $oProp->sStructureType ] ) ) {
360
+        if ( !isset( $this->_aPageLoadClassNameMap[ $oProp->sStructureType ] ) ) {
361 361
             return null;
362 362
         }
363 363
         $_sClassName = $this->_aPageLoadClassNameMap[ $oProp->sStructureType ];
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
         $_aClassNameMap = array_shift( $_aParams );
380 380
         $_sKey          = array_shift( $_aParams );
381 381
         
382
-        if ( ! isset( $_aClassNameMap[ $_sKey ] ) ) {
382
+        if ( !isset( $_aClassNameMap[ $_sKey ] ) ) {
383 383
             return null;
384 384
         }
385 385
         
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     public function __get( $sPropertyName ) {
445 445
             
446
-        switch( $sPropertyName ) {
446
+        switch ( $sPropertyName ) {
447 447
             case 'oHeadTag':    // 3.3.0+ for backward compatibility
448 448
                 $sPropertyName = 'oResource';
449 449
                 break;
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         // Set and return the sub class object instance.
453 453
         if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) {            
454 454
             return call_user_func( 
455
-                array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}"  )
455
+                array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" )
456 456
             );
457 457
         }
458 458
         
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      * 
534 534
      * @internal
535 535
      */
536
-    public function __call( $sMethodName, $aArgs=null ) {    
536
+    public function __call( $sMethodName, $aArgs = null ) {    
537 537
          
538 538
         $_mFirstArg = $this->oUtil->getElement( $aArgs, 0 );
539 539
         
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
         }
559 559
                 
560 560
         trigger_error( 
561
-            'Admin Page Framework: ' . ' : ' . sprintf( 
561
+            'Admin Page Framework: '.' : '.sprintf( 
562 562
                 __( 'The method is not defined: %1$s', $this->oProp->sTextDomain ),
563 563
                 $sMethodName 
564 564
             ), 
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if ( $this->oProp->bIsAdmin && ! $this->oProp->bIsAdminAjax ) {
137 137
             if ( did_action( 'current_screen' ) ) {
138 138
                 $this->_replyToLoadComponents();
139
-            } else {                
139
+            } else {
140 140
                 add_action( 'current_screen', array( $this, '_replyToLoadComponents' ) );
141 141
             }
142 142
         }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 $this->oLink = $this->oLink;
161 161
             }
162 162
     
163
-            if ( ! $this->_isInThePage() ) { 
163
+            if ( ! $this->_isInThePage() ) {
164 164
                 return; 
165 165
             }
166 166
             
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         }     
451 451
 
452 452
         // Set and return the sub class object instance.
453
-        if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) {            
453
+        if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) {
454 454
             return call_user_func( 
455 455
                 array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}"  )
456 456
             );
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      * 
534 534
      * @internal
535 535
      */
536
-    public function __call( $sMethodName, $aArgs=null ) {    
536
+    public function __call( $sMethodName, $aArgs=null ) {
537 537
          
538 538
         $_mFirstArg = $this->oUtil->getElement( $aArgs, 0 );
539 539
         
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_View.php 2 patches
Spacing   +13 added lines, -13 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->_isInThePage() ) {
30
+        if ( !$this->_isInThePage() ) {
31 31
             return;
32 32
         }
33 33
         if ( $this->oProp->bIsAdminAjax ) {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
          * @return      string      the input id attribute
47 47
          */    
48 48
         public function _replyToGetSectionName( /* $sSectionName, $aSectionset */ ) {
49
-            $_aParams = func_get_args() + array( null, null, );
49
+            $_aParams = func_get_args() + array( null, null,);
50 50
             return $_aParams[ 0 ];
51 51
         }
52 52
         
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
          * @since       3.6.0
75 75
          * @return      string
76 76
          */
77
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
78
-            $_aParams = func_get_args() + array( null, null, );
77
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
78
+            $_aParams = func_get_args() + array( null, null,);
79 79
             return $_aParams[ 0 ];                        
80 80
         }
81 81
         /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
          * @return      string
86 86
          */        
87 87
         public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {
88
-            $_aParams = func_get_args() + array( null, null, );
88
+            $_aParams = func_get_args() + array( null, null,);
89 89
             return $_aParams[ 0 ];            
90 90
         }
91 91
         
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          * @return      string      the flat input name attribute
108 108
          */    
109 109
         public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey */ ) {
110
-            $_aParams   = func_get_args() + array( null, null, null );
110
+            $_aParams = func_get_args() + array( null, null, null );
111 111
             return $_aParams[ 0 ];
112 112
         }
113 113
 
@@ -149,14 +149,14 @@  discard block
 block discarded – undo
149 149
                 'if'            => true,
150 150
                 'capability'    => '',
151 151
             );
152
-            if ( ! $aElementDefinition[ 'if' ] ) {
152
+            if ( !$aElementDefinition[ 'if' ] ) {
153 153
                 return false;
154 154
             }
155 155
             // For front-end forms that allow guests, the capability level can be empty. In that case, return true.
156
-            if ( ! $aElementDefinition[ 'capability' ] ) {
156
+            if ( !$aElementDefinition[ 'capability' ] ) {
157 157
                 return true;
158 158
             }
159
-            if ( ! current_user_can( $aElementDefinition[ 'capability' ] ) ) {
159
+            if ( !current_user_can( $aElementDefinition[ 'capability' ] ) ) {
160 160
                 return false;
161 161
             }            
162 162
             return $bDefault;
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             $this,
193 193
             array( 
194 194
                 // section_{instantiated class name}_{section id}
195
-                'section_head_' . $this->oProp->sClassName . '_' . $aSectionset[ 'section_id' ] 
195
+                'section_head_'.$this->oProp->sClassName.'_'.$aSectionset[ 'section_id' ] 
196 196
             ), 
197 197
             $sSectionDescription
198 198
         );
@@ -209,15 +209,15 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function _replyToGetFieldOutput( $sFieldOutput, $aFieldset ) {
211 211
 
212
-        $_sSectionPart  = $this->oUtil->getAOrB(
212
+        $_sSectionPart = $this->oUtil->getAOrB(
213 213
             isset( $aFieldset[ 'section_id' ] ) && '_default' !== $aFieldset[ 'section_id' ],
214
-            '_' . $aFieldset[ 'section_id' ],
214
+            '_'.$aFieldset[ 'section_id' ],
215 215
             ''
216 216
         );
217 217
         return $this->oUtil->addAndApplyFilters(
218 218
             $this,
219 219
             array( 
220
-                'field_' . $this->oProp->sClassName . $_sSectionPart . '_' . $aFieldset[ 'field_id' ]
220
+                'field_'.$this->oProp->sClassName.$_sSectionPart.'_'.$aFieldset[ 'field_id' ]
221 221
             ),
222 222
             $sFieldOutput,
223 223
             $aFieldset // the field array
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
          * @since       3.6.0
75 75
          * @return      string
76 76
          */
77
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
77
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
78 78
             $_aParams = func_get_args() + array( null, null, );
79 79
             return $_aParams[ 0 ];                        
80 80
         }
Please login to merge, or discard this patch.
factory/_abstract/_controller/AdminPageFramework_HelpPane_Base.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @since 2.1.0
61 61
      * @internal
62 62
      */  
63
-    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
63
+    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents = array() ) {
64 64
         
65 65
         if ( empty( $aContents ) ) { 
66 66
             return; 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ) 
78 78
         );     
79 79
         
80
-        if ( ! empty( $aSideBarContents ) ) {
80
+        if ( !empty( $aSideBarContents ) ) {
81 81
             $this->_oScreen->set_help_sidebar( implode( PHP_EOL, $aSideBarContents ) );
82 82
         }
83 83
             
@@ -89,6 +89,6 @@  discard block
 block discarded – undo
89 89
      * @internal
90 90
      */ 
91 91
     protected function _formatHelpDescription( $sHelpDescription ) {
92
-        return "<div class='contextual-help-description'>" . $sHelpDescription . "</div>";
92
+        return "<div class='contextual-help-description'>".$sHelpDescription."</div>";
93 93
     }
94 94
 }
95 95
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */  
63 63
     protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
64 64
         
65
-        if ( empty( $aContents ) ) { 
65
+        if ( empty( $aContents ) ) {
66 66
             return; 
67 67
         }
68 68
         
Please login to merge, or discard this patch.
development/factory/_abstract/_controller/AdminPageFramework_Link_Base.php 3 patches
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Sets up hooks and properties.
24 24
      */ 
25
-    public function __construct( $oProp, $oMsg=null ) {
25
+    public function __construct( $oProp, $oMsg = null ) {
26 26
         
27
-        if ( ! $this->_isLoadable( $oProp ) ) {
27
+        if ( !$this->_isLoadable( $oProp ) ) {
28 28
             return;
29 29
         }
30 30
                 
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
         add_action( 'in_admin_footer', array( $this, '_replyToSetFooterInfo' ) );
35 35
         
36 36
         // Add an action link in the plugin listing page
37
-        if ( 'plugins.php' === $this->oProp->sPageNow && 'plugin' === $this->oProp->aScriptInfo['sType'] ) {
37
+        if ( 'plugins.php' === $this->oProp->sPageNow && 'plugin' === $this->oProp->aScriptInfo[ 'sType' ] ) {
38 38
             add_filter( 
39
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo['sPath'] ),
39
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
40 40
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ), 
41 41
                 20     // set a lower priority so that the link will be embedded at the beginning ( the most left hand side ).
42 42
             );     
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
          * @return      boolean
51 51
          */
52 52
         private function _isLoadable( $oProp ) {
53
-            if ( ! $oProp->bIsAdmin ) { 
53
+            if ( !$oProp->bIsAdmin ) { 
54 54
                 return false;
55 55
             }
56 56
             if ( $oProp->bIsAdminAjax ) {
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
          */
81 81
         protected function _setDefaultFooterText() {
82 82
         
83
-            $this->oProp->aFooterInfo['sLeft'] = str_replace( 
83
+            $this->oProp->aFooterInfo[ 'sLeft' ] = str_replace( 
84 84
                 '__SCRIPT_CREDIT__', 
85 85
                 $this->_getFooterInfoLeft( $this->oProp->aScriptInfo ),
86
-                $this->oProp->aFooterInfo['sLeft']
86
+                $this->oProp->aFooterInfo[ 'sLeft' ]
87 87
             );
88
-            $this->oProp->aFooterInfo['sRight'] = str_replace(
88
+            $this->oProp->aFooterInfo[ 'sRight' ] = str_replace(
89 89
                 '__FRAMEWORK_CREDIT__',
90 90
                 $this->_getFooterInfoRight( $this->oProp->_getLibraryData() ),
91
-                $this->oProp->aFooterInfo['sRight']
91
+                $this->oProp->aFooterInfo[ 'sRight' ]
92 92
             );
93 93
             
94 94
         }
@@ -102,52 +102,52 @@  discard block
 block discarded – undo
102 102
             private function _getFooterInfoLeft( $aScriptInfo ) {
103 103
 
104 104
                 $_sDescription = $this->getAOrB(
105
-                    empty( $aScriptInfo['sDescription'] ),
105
+                    empty( $aScriptInfo[ 'sDescription' ] ),
106 106
                     '',
107
-                    "&#13;{$aScriptInfo['sDescription']}"
107
+                    "&#13;{$aScriptInfo[ 'sDescription' ]}"
108 108
                 );
109 109
                 $_sVersion = $this->getAOrB(
110
-                    empty( $aScriptInfo['sVersion'] ),
110
+                    empty( $aScriptInfo[ 'sVersion' ] ),
111 111
                     '',
112
-                    "&nbsp;{$aScriptInfo['sVersion']}"
112
+                    "&nbsp;{$aScriptInfo[ 'sVersion' ]}"
113 113
                 );
114 114
                 $_sPluginInfo = $this->getAOrB(
115
-                    empty( $aScriptInfo['sURI'] ),
116
-                    $aScriptInfo['sName'],
115
+                    empty( $aScriptInfo[ 'sURI' ] ),
116
+                    $aScriptInfo[ 'sName' ],
117 117
                     $this->getHTMLTag( 
118 118
                         'a', 
119 119
                         array(
120
-                            'href'      => $aScriptInfo['sURI'],
120
+                            'href'      => $aScriptInfo[ 'sURI' ],
121 121
                             'target'    => '_blank',
122
-                            'title'     => $aScriptInfo['sName'] . $_sVersion . $_sDescription 
122
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription 
123 123
                         ), 
124
-                        $aScriptInfo['sName'] 
124
+                        $aScriptInfo[ 'sName' ] 
125 125
                     )    
126 126
                 );
127 127
 
128 128
                 $_sAuthorInfo = $this->getAOrB(
129
-                    empty( $aScriptInfo['sAuthorURI'] ),
129
+                    empty( $aScriptInfo[ 'sAuthorURI' ] ),
130 130
                     '',
131 131
                     $this->getHTMLTag( 
132 132
                         'a', 
133 133
                         array(
134
-                            'href'      => $aScriptInfo['sAuthorURI'],
134
+                            'href'      => $aScriptInfo[ 'sAuthorURI' ],
135 135
                             'target'    => '_blank',
136
-                            'title'     => $aScriptInfo['sAuthor'],
136
+                            'title'     => $aScriptInfo[ 'sAuthor' ],
137 137
                         ), 
138
-                        $aScriptInfo['sAuthor']
138
+                        $aScriptInfo[ 'sAuthor' ]
139 139
                     )                
140 140
                 );
141 141
                 $_sAuthorInfo = $this->getAOrB(
142
-                    empty( $aScriptInfo['sAuthor'] ),
142
+                    empty( $aScriptInfo[ 'sAuthor' ] ),
143 143
                     $_sAuthorInfo,
144
-                    ' by ' . $_sAuthorInfo
144
+                    ' by '.$_sAuthorInfo
145 145
                 );
146 146
                 
147 147
                 // Enclosing the output in a span tag as the outer element is a '<p>' tag. So this cannot be div.
148 148
                 // 3.5.7+ Added the class attribute for acceptance testing
149 149
                 return "<span class='apf-script-info'>"  
150
-                        . $_sPluginInfo . $_sAuthorInfo
150
+                        . $_sPluginInfo.$_sAuthorInfo
151 151
                     . "</span>";
152 152
           
153 153
             }
@@ -161,32 +161,32 @@  discard block
 block discarded – undo
161 161
             private function _getFooterInfoRight( $aScriptInfo ) {
162 162
 
163 163
                 $_sDescription = $this->getAOrB(
164
-                    empty( $aScriptInfo['sDescription'] ),
164
+                    empty( $aScriptInfo[ 'sDescription' ] ),
165 165
                     '',
166
-                    "&#13;{$aScriptInfo['sDescription']}"
166
+                    "&#13;{$aScriptInfo[ 'sDescription' ]}"
167 167
                 );
168 168
                 $_sVersion = $this->getAOrB(
169
-                    empty( $aScriptInfo['sVersion'] ),
169
+                    empty( $aScriptInfo[ 'sVersion' ] ),
170 170
                     '',
171
-                    "&nbsp;{$aScriptInfo['sVersion']}"
171
+                    "&nbsp;{$aScriptInfo[ 'sVersion' ]}"
172 172
                 );
173 173
                 $_sLibraryInfo = $this->getAOrB(
174
-                    empty( $aScriptInfo['sURI'] ),
175
-                    $aScriptInfo['sName'],
174
+                    empty( $aScriptInfo[ 'sURI' ] ),
175
+                    $aScriptInfo[ 'sName' ],
176 176
                     $this->getHTMLTag( 
177 177
                         'a', 
178 178
                         array(
179
-                            'href'      => $aScriptInfo['sURI'],
179
+                            'href'      => $aScriptInfo[ 'sURI' ],
180 180
                             'target'    => '_blank',
181
-                            'title'     => $aScriptInfo['sName'] . $_sVersion . $_sDescription,
181
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription,
182 182
                         ), 
183
-                        $aScriptInfo['sName']
183
+                        $aScriptInfo[ 'sName' ]
184 184
                     )                   
185 185
                 );
186 186
                 
187 187
                 // Update the variable
188 188
                 return "<span class='apf-credit'>" // 3.5.7+ added 'apf-credit' class attribute for acceptance testing
189
-                    . $this->oMsg->get( 'powered_by' ) . '&nbsp;' 
189
+                    . $this->oMsg->get( 'powered_by' ).'&nbsp;' 
190 190
                     . $_sLibraryInfo
191 191
                     . ",&nbsp;"
192 192
                     . $this->getHTMLTag( 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                         array(
195 195
                             'href'      => 'https://wordpress.org',
196 196
                             'target'    => '_blank',
197
-                            'title'     => 'WordPress' . $GLOBALS['wp_version']
197
+                            'title'     => 'WordPress'.$GLOBALS[ 'wp_version' ]
198 198
                         ), 
199 199
                         'WordPress'
200 200
                     )
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
          */
211 211
         protected function _setFooterHooks() {
212 212
             
213
-            add_filter( 'admin_footer_text' , array( $this, '_replyToAddInfoInFooterLeft' ) );
213
+            add_filter( 'admin_footer_text', array( $this, '_replyToAddInfoInFooterLeft' ) );
214 214
             add_filter( 'update_footer', array( $this, '_replyToAddInfoInFooterRight' ), 11 );
215 215
             
216 216
         }             
@@ -222,15 +222,15 @@  discard block
 block discarded – undo
222 222
              * @callback    filter      admin_footer_text
223 223
              * @internal
224 224
              */ 
225
-            public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
225
+            public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
226 226
 
227
-                $sLinkHTML = empty( $this->oProp->aScriptInfo['sName'] )
227
+                $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
228 228
                     ? $sLinkHTML
229
-                    : $this->oProp->aFooterInfo['sLeft'];
229
+                    : $this->oProp->aFooterInfo[ 'sLeft' ];
230 230
              
231 231
                 return $this->addAndApplyFilters( 
232 232
                     $this->oProp->_getCallerObject(), 
233
-                    'footer_left_' . $this->oProp->sClassName, 
233
+                    'footer_left_'.$this->oProp->sClassName, 
234 234
                     $sLinkHTML
235 235
                 );
236 236
              
@@ -243,11 +243,11 @@  discard block
 block discarded – undo
243 243
              * @callback    filter      admin_footer_text
244 244
              * @internal
245 245
              */     
246
-            public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
246
+            public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
247 247
                 return $this->addAndApplyFilters( 
248 248
                     $this->oProp->_getCallerObject(), 
249
-                    'footer_right_' . $this->oProp->sClassName, 
250
-                    $this->oProp->aFooterInfo['sRight']
249
+                    'footer_right_'.$this->oProp->sClassName, 
250
+                    $this->oProp->aFooterInfo[ 'sRight' ]
251 251
                 );                
252 252
             }       
253 253
        
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
          * @return      boolean
51 51
          */
52 52
         private function _isLoadable( $oProp ) {
53
-            if ( ! $oProp->bIsAdmin ) { 
53
+            if ( ! $oProp->bIsAdmin ) {
54 54
                 return false;
55 55
             }
56 56
             if ( $oProp->bIsAdminAjax ) {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides methods for creating fields in the taxonomy page (edit-tags.php).
Please login to merge, or discard this patch.
development/factory/_abstract/_model/AdminPageFramework_Format_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $_aParameters = func_get_args() + array( 
36 36
             $this->aSubject, 
37 37
         );
38
-        $this->aSubject  = $_aParameters[ 0 ];        
38
+        $this->aSubject = $_aParameters[ 0 ];        
39 39
         
40 40
     }
41 41
     
Please login to merge, or discard this patch.
development/factory/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         'confirm_perform_task'                  => 'Please confirm your action.', 
83 83
         'specified_option_been_deleted'         => 'The specified options have been deleted.', 
84 84
         'nonce_verification_failed'             => 'A problem occurred while processing the form data. Please try again.', 
85
-        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s',  // 3.5.11+
86
-        'send_email'                            => 'Is it okay to send the email?',     // 3.3.0+
87
-        'email_sent'                            => 'The email has been sent.',  // 3.3.0+, 3.3.5+ deprecated 
85
+        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+
86
+        'send_email'                            => 'Is it okay to send the email?', // 3.3.0+
87
+        'email_sent'                            => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated 
88 88
         'email_scheduled'                       => 'The email has been scheduled.', // 3.3.5+
89
-        'email_could_not_send'                  => 'There was a problem sending the email',     // 3.3.0+
89
+        'email_could_not_send'                  => 'There was a problem sending the email', // 3.3.0+
90 90
         
91 91
         // AdminPageFramework_PostType
92 92
         'title'                                 => 'Title',     
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         'upload_file'                           => 'Upload File', 
113 113
         'use_this_file'                         => 'Use This File', 
114 114
         'select_file'                           => 'Select File', 
115
-        'remove_value'                          => 'Remove Value',  // 3.2.0+
116
-        'select_all'                            => 'Select All',    // 3.3.0+
117
-        'select_none'                           => 'Select None',   // 3.3.0+                       
115
+        'remove_value'                          => 'Remove Value', // 3.2.0+
116
+        'select_all'                            => 'Select All', // 3.3.0+
117
+        'select_none'                           => 'Select None', // 3.3.0+                       
118 118
         'no_term_found'                         => 'No term found.', // 3.3.2+
119 119
 
120 120
         // AdminPageFramework_Form_View___Script_{...}
121 121
         'select'                                => 'Select', // 3.4.2+             
122
-        'insert'                                => 'Insert',  // 3.4.2+
122
+        'insert'                                => 'Insert', // 3.4.2+
123 123
         'use_this'                              => 'Use This', // 3.4.2+
124 124
         'return_to_library'                     => 'Return to Library', // 3.4.2+
125 125
             
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @since       3.2.0       Changed it to create an instance per text domain basis.
191 191
      * @remark      This class should be instantiated via this method.
192 192
      */
193
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
193
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
194 194
         
195 195
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
196 196
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -203,21 +203,21 @@  discard block
 block discarded – undo
203 203
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object ) 
204 204
          * @deprecated  3.2.0
205 205
          */
206
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
206
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
207 207
             return self::getInstance( $sTextDomain );
208 208
         }
209 209
         
210 210
     /**
211 211
      * Sets up properties.
212 212
      */
213
-    public function __construct( $sTextDomain='admin-page-framework' ) {
213
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
214 214
         
215 215
         $this->_sTextDomain = $sTextDomain;  
216 216
         
217 217
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
218 218
         // with the value of null.  The null is set to let it trigger the __get() method 
219 219
         // so that each translation item gets processed individually.
220
-        $this->aMessages    = array_fill_keys( 
220
+        $this->aMessages = array_fill_keys( 
221 221
             array_keys( $this->aDefaults ),
222 222
             null        
223 223
         );
Please login to merge, or discard this patch.
factory/_abstract/_model/AdminPageFramework_MinifiedVersionHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'.
12 12
  */
13 13
 if ( php_sapi_name() === 'cli' ) {
14
-    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/admin-page-framework.php';
14
+    $_sFrameworkFilePath = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ).'/admin-page-framework.php';
15 15
     if ( file_exists( $_sFrameworkFilePath ) ) {
16 16
         include_once( $_sFrameworkFilePath );
17 17
     }
Please login to merge, or discard this patch.
development/factory/_abstract/_model/AdminPageFramework_Property_Base.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * @deprecated  3.2.0
147 147
      * @internal    
148 148
      */
149
-    public static $_sDefaultStyle ="";    
149
+    public static $_sDefaultStyle = "";    
150 150
         
151 151
     /**
152 152
      * The default CSS rules for IE loaded in the head tag of the created admin pages.
@@ -331,13 +331,13 @@  discard block
 block discarded – undo
331 331
      */
332 332
     public $aFormCallbacks = array(
333 333
     
334
-        'hfID'              => null,    // the input id attribute
335
-        'hfTagID'           => null,    // the field container id attribute
336
-        'hfName'            => null,    // the field name attribute
337
-        'hfNameFlat'        => null,    // the flat field name attribute
338
-        'hfInputName'       => null,    // 3.6.0+   the field input name attribute
339
-        'hfInputNameFlat'   => null,    // 3.6.0+   the flat field input name 
340
-        'hfClass'           => null,    // the class attribute       
334
+        'hfID'              => null, // the input id attribute
335
+        'hfTagID'           => null, // the field container id attribute
336
+        'hfName'            => null, // the field name attribute
337
+        'hfNameFlat'        => null, // the flat field name attribute
338
+        'hfInputName'       => null, // 3.6.0+   the field input name attribute
339
+        'hfInputNameFlat'   => null, // 3.6.0+   the flat field input name 
340
+        'hfClass'           => null, // the class attribute       
341 341
     );
342 342
               
343 343
     /**
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
             'manage_options',
359 359
             $sCapability
360 360
         );
361
-        $this->sTextDomain      = $this->getAOrB(
361
+        $this->sTextDomain = $this->getAOrB(
362 362
             empty( $sTextDomain ),
363 363
             'admin-page-framework',
364 364
             $sTextDomain
365 365
         );
366
-        $this->sStructureType      = $sStructureType;
366
+        $this->sStructureType = $sStructureType;
367 367
         
368 368
         $GLOBALS[ 'aAdminPageFramework' ] = $this->getElementAsArray(
369 369
             $GLOBALS,
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
            
378 378
         $this->aFormArguments = array(
379 379
             'caller_id'                         => $this->sClassName,
380
-            'structure_type'                    => $this->_sPropertyType,  // @todo change this to admin_page
380
+            'structure_type'                    => $this->_sPropertyType, // @todo change this to admin_page
381 381
             'action_hook_form_registration'     => $this->_sFormRegistrationHook,
382 382
         ) + $this->aFormArguments;
383 383
            
@@ -413,8 +413,8 @@  discard block
 block discarded – undo
413 413
             'hfTagID'                           => array( $oCaller, '_replyToGetInputTagIDAttribute' ), // the fields & fieldset & field row container id attribute
414 414
             'hfName'                            => array( $oCaller, '_replyToGetFieldNameAttribute' ), // the input name attribute
415 415
             'hfNameFlat'                        => array( $oCaller, '_replyToGetFlatFieldName' ), // the flat input name attribute
416
-            'hfInputName'                       => array( $oCaller, '_replyToGetInputNameAttribute' ),    // 3.6.0+   the field input name attribute
417
-            'hfInputNameFlat'                   => array( $oCaller, '_replyToGetFlatInputName' ),    // 3.6.0+   the flat field input name                 
416
+            'hfInputName'                       => array( $oCaller, '_replyToGetInputNameAttribute' ), // 3.6.0+   the field input name attribute
417
+            'hfInputNameFlat'                   => array( $oCaller, '_replyToGetFlatInputName' ), // 3.6.0+   the flat field input name                 
418 418
             'hfClass'                           => array( $oCaller, '_replyToGetInputClassAttribute' ), // the class attribute
419 419
             'hfSectionName'                     => array( $oCaller, '_replyToGetSectionName' ), // 3.6.0+            
420 420
         ) + $this->aFormCallbacks;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
          * @since       DEVVER
428 428
          */
429 429
         private function _setDeprecated() {
430
-            $this->oUtil            = new AdminPageFramework_WPUtility;
430
+            $this->oUtil = new AdminPageFramework_WPUtility;
431 431
         }
432 432
         
433 433
     /**
@@ -496,19 +496,19 @@  discard block
 block discarded – undo
496 496
      * @remark      The information can be used to embed into the footer etc.
497 497
      * @return      array       The information of the script.
498 498
      */  
499
-    protected function getCallerInfo( $sCallerPath=null ) {
499
+    protected function getCallerInfo( $sCallerPath = null ) {
500 500
         
501 501
         $_aCallerInfo          = self::$_aStructure_CallerInfo;
502
-        $_aCallerInfo['sPath'] = $sCallerPath;
503
-        $_aCallerInfo['sType'] = $this->_getCallerType( $_aCallerInfo['sPath'] );
502
+        $_aCallerInfo[ 'sPath' ] = $sCallerPath;
503
+        $_aCallerInfo[ 'sType' ] = $this->_getCallerType( $_aCallerInfo[ 'sPath' ] );
504 504
 
505
-        if ( 'unknown' == $_aCallerInfo['sType'] ) {
505
+        if ( 'unknown' == $_aCallerInfo[ 'sType' ] ) {
506 506
             return $_aCallerInfo;
507 507
         }
508
-        if ( 'plugin' == $_aCallerInfo['sType'] ) {
509
-            return $this->getScriptData( $_aCallerInfo['sPath'], $_aCallerInfo['sType'] ) + $_aCallerInfo;
508
+        if ( 'plugin' == $_aCallerInfo[ 'sType' ] ) {
509
+            return $this->getScriptData( $_aCallerInfo[ 'sPath' ], $_aCallerInfo[ 'sType' ] ) + $_aCallerInfo;
510 510
         }
511
-        if ( 'theme' == $_aCallerInfo['sType'] ) {
511
+        if ( 'theme' == $_aCallerInfo[ 'sType' ] ) {
512 512
             $_oTheme = wp_get_theme(); // stores the theme info object
513 513
             return array(
514 514
                 'sName'         => $_oTheme->Name,
Please login to merge, or discard this patch.