Completed
Branch master (b13b1d)
by Michael
19:31
created
development/factory/_abstract/AdminPageFramework_Factory_View.php 3 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.
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.
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
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.
Spacing   +45 added lines, -45 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,26 +161,26 @@  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
                 
@@ -188,16 +188,16 @@  discard block
 block discarded – undo
188 188
                 // 3.5.7+ added the 'apf-credit' class attribute for acceptance testing
189 189
                 // DEVVER+  added the footer-thankyou id attribute.
190 190
                 return "<span class='apf-credit' id='footer-thankyou'>" 
191
-                    . $this->oMsg->get( 'powered_by' ) . '&nbsp;' 
191
+                    . $this->oMsg->get( 'powered_by' ).'&nbsp;' 
192 192
                     . $_sLibraryInfo
193 193
                     . ",&nbsp;"
194
-                    . $this->oMsg->get( 'and' ) . '&nbsp;' 
194
+                    . $this->oMsg->get( 'and' ).'&nbsp;' 
195 195
                     . $this->getHTMLTag( 
196 196
                         'a', 
197 197
                         array(
198 198
                             'href'      => 'https://wordpress.org',
199 199
                             'target'    => '_blank',
200
-                            'title'     => 'WordPress ' . $GLOBALS[ 'wp_version' ]
200
+                            'title'     => 'WordPress '.$GLOBALS[ 'wp_version' ]
201 201
                         ), 
202 202
                         'WordPress'
203 203
                     )
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
          */
214 214
         protected function _setFooterHooks() {
215 215
             
216
-            add_filter( 'admin_footer_text' , array( $this, '_replyToAddInfoInFooterLeft' ) );
216
+            add_filter( 'admin_footer_text', array( $this, '_replyToAddInfoInFooterLeft' ) );
217 217
             add_filter( 'update_footer', array( $this, '_replyToAddInfoInFooterRight' ), 11 );
218 218
             
219 219
         }             
@@ -225,15 +225,15 @@  discard block
 block discarded – undo
225 225
              * @callback    filter      admin_footer_text
226 226
              * @internal
227 227
              */ 
228
-            public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
228
+            public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
229 229
 
230
-                $sLinkHTML = empty( $this->oProp->aScriptInfo['sName'] )
230
+                $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
231 231
                     ? $sLinkHTML
232
-                    : $this->oProp->aFooterInfo['sLeft'];
232
+                    : $this->oProp->aFooterInfo[ 'sLeft' ];
233 233
              
234 234
                 return $this->addAndApplyFilters( 
235 235
                     $this->oProp->_getCallerObject(), 
236
-                    'footer_left_' . $this->oProp->sClassName, 
236
+                    'footer_left_'.$this->oProp->sClassName, 
237 237
                     $sLinkHTML
238 238
                 );
239 239
              
@@ -246,11 +246,11 @@  discard block
 block discarded – undo
246 246
              * @callback    filter      admin_footer_text
247 247
              * @internal
248 248
              */     
249
-            public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
249
+            public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
250 250
                 return $this->addAndApplyFilters( 
251 251
                     $this->oProp->_getCallerObject(), 
252
-                    'footer_right_' . $this->oProp->sClassName, 
253
-                    $this->oProp->aFooterInfo['sRight']
252
+                    'footer_right_'.$this->oProp->sClassName, 
253
+                    $this->oProp->aFooterInfo[ 'sRight' ]
254 254
                 );                
255 255
             }       
256 256
        
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.
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.
development/factory/_abstract/_view/AdminPageFramework_CSS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
 }
108 108
 CSSRULES;
109 109
 
110
-        return $_sCSS . PHP_EOL
111
-            . self::_getPageLoadStatsRules() . PHP_EOL
110
+        return $_sCSS.PHP_EOL
111
+            . self::_getPageLoadStatsRules().PHP_EOL
112 112
             . self::_getVersionSpecificRules();
113 113
             
114 114
     }
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function _replyToPrintSettingNotice() {
49 49
             
50
-        if ( ! $this->_shouldProceed() ) {
50
+        if ( !$this->_shouldProceed() ) {
51 51
             return;
52 52
         }
53 53
         $this->oFactory->oForm->printSubmitNotices();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( !$this->oFactory->_isInThePage() ) { 
65 65
                 return false; 
66 66
             }
67 67
                 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,12 +61,12 @@
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( ! $this->oFactory->_isInThePage() ) {
65 65
                 return false; 
66 66
             }
67 67
                 
68 68
             // Ensure this method is called only once per a page load.
69
-            if ( self::$_bSettingNoticeLoaded ) { 
69
+            if ( self::$_bSettingNoticeLoaded ) {
70 70
                 return false;
71 71
             }
72 72
             self::$_bSettingNoticeLoaded = true;
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 to handle importing options.
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory___Script_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * 
37 37
      * @since       3.3.0
38 38
      */
39
-    public function __construct( $oMsg=null ) {
39
+    public function __construct( $oMsg = null ) {
40 40
         
41 41
         $_sClassName = get_class( $this );
42 42
         if ( in_array( $_sClassName, self::$_aEnqueued ) ) {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function _replyToPrintScript() {
76 76
         $_sScript = $this->getScript( $this->oMsg );
77
-        if ( ! $_sScript ) {
77
+        if ( !$_sScript ) {
78 78
             return;
79 79
         }
80
-        echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>"
80
+        echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>"
81 81
                 . $_sScript
82 82
             . "</script>";
83 83
     }
Please login to merge, or discard this patch.