Completed
Branch master (0a34ef)
by
unknown
20:07 queued 10:25
created
development/utility/requirement/AdminPageFramework_Requirement.php 4 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -134,6 +134,7 @@  discard block
 block discarded – undo
134 134
          * Returns a php warning if present.
135 135
          * @since       3.5.3
136 136
          * @internal
137
+         * @param string $sType
137 138
          * @return      string      The warning.
138 139
          */
139 140
         private function _getWarningByType( $sType ) {
@@ -226,6 +227,7 @@  discard block
 block discarded – undo
226 227
              * if it returns non true (false), it stores the subject warning and returns the array holding the warnings.
227 228
              * 
228 229
              * @since       3.4.6
230
+             * @param string $sFuncName
229 231
              * @return      array           The warning array.
230 232
              */
231 233
             private function _getWarningsByFunctionName( $sFuncName, $aSubjects ) {
@@ -285,6 +287,7 @@  discard block
 block discarded – undo
285 287
     /**
286 288
      * Deactivates the plugin.
287 289
      * @since       3.4.6
290
+     * @param string $sPluginFilePath
288 291
      */
289 292
     public function deactivatePlugin( $sPluginFilePath, $sMessage='', $bIsOnActivation=false ) {
290 293
         
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
                     ?  "<strong>" . $this->_sScriptName . "</strong>:&nbsp;" 
279 279
                     : '';            
280 280
                 return $_sScripTitle
281
-                   . implode( '<br />', $_aWarnings );
281
+                    . implode( '<br />', $_aWarnings );
282 282
                 
283 283
             }
284 284
         
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
      * 
77 77
      * @since       3.4.6
78 78
      */ 
79
-    public function __construct( array $aRequirements=array(), $sScriptName='' ) {
79
+    public function __construct( array $aRequirements = array(), $sScriptName = '' ) {
80 80
         
81 81
         // Avoid undefined index warnings.
82 82
         $aRequirements          = $aRequirements + $this->_aDefaultRequirements;    
83 83
         $aRequirements          = array_filter( $aRequirements, 'is_array' );
84
-        foreach( array( 'php', 'mysql', 'wordpress' ) as $_iIndex => $_sName ) {
84
+        foreach ( array( 'php', 'mysql', 'wordpress' ) as $_iIndex => $_sName ) {
85 85
             if ( isset( $aRequirements[ $_sName ] ) ) {
86 86
                 $aRequirements[ $_sName ] = $aRequirements[ $_sName ] + $this->_aDefaultRequirements[ $_sName ];
87 87
             }
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
         $_aWarnings = array();
106 106
         
107 107
         // PHP, WordPress, MySQL
108
-        $_aWarnings[] = $this->_getWarningByType( 'php' );
109
-        $_aWarnings[] = $this->_getWarningByType( 'wordpress' );
110
-        $_aWarnings[] = $this->_getWarningByType( 'mysql' );
108
+        $_aWarnings[ ] = $this->_getWarningByType( 'php' );
109
+        $_aWarnings[ ] = $this->_getWarningByType( 'wordpress' );
110
+        $_aWarnings[ ] = $this->_getWarningByType( 'mysql' );
111 111
         
112 112
         // Ensure necessary array elements.
113 113
         $this->_aRequirements = $this->_aRequirements + array(
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
         // Check the rest.
121 121
         $_aWarnings = array_merge(
122 122
             $_aWarnings,
123
-            $this->_checkFunctions( $this->_aRequirements['functions'] ),
124
-            $this->_checkClasses( $this->_aRequirements['classes'] ),
125
-            $this->_checkConstants( $this->_aRequirements['constants'] ),
126
-            $this->_checkFiles( $this->_aRequirements['files'] )
123
+            $this->_checkFunctions( $this->_aRequirements[ 'functions' ] ),
124
+            $this->_checkClasses( $this->_aRequirements[ 'classes' ] ),
125
+            $this->_checkConstants( $this->_aRequirements[ 'constants' ] ),
126
+            $this->_checkFiles( $this->_aRequirements[ 'files' ] )
127 127
         );
128 128
         
129 129
         $this->aWarnings = array_filter( $_aWarnings ); // drop empty elements.
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
          * @return      string      The warning.
138 138
          */
139 139
         private function _getWarningByType( $sType ) {
140
-            if ( ! isset( $this->_aRequirements[ $sType ][ 'version' ] ) ) {
140
+            if ( !isset( $this->_aRequirements[ $sType ][ 'version' ] ) ) {
141 141
                 return '';
142 142
             }
143 143
             if ( $this->_checkPHPVersion( $this->_aRequirements[ $sType ][ 'version' ] ) ) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
          * @since       3.4.6
165 165
          */
166 166
         private function _checkWordPressVersion( $sWordPressVersion ) {
167
-            return version_compare( $GLOBALS['wp_version'], $sWordPressVersion, ">=" );
167
+            return version_compare( $GLOBALS[ 'wp_version' ], $sWordPressVersion, ">=" );
168 168
         }
169 169
         
170 170
         /**
@@ -230,9 +230,9 @@  discard block
 block discarded – undo
230 230
              */
231 231
             private function _getWarningsByFunctionName( $sFuncName, $aSubjects ) {
232 232
                 $_aWarnings = array();
233
-                foreach( $aSubjects as $_sSubject => $_sWarning ) {
234
-                    if ( ! call_user_func_array( $sFuncName, array( $_sSubject ) ) ) {
235
-                        $_aWarnings[] = sprintf( $_sWarning, $_sSubject );
233
+                foreach ( $aSubjects as $_sSubject => $_sWarning ) {
234
+                    if ( !call_user_func_array( $sFuncName, array( $_sSubject ) ) ) {
235
+                        $_aWarnings[ ] = sprintf( $_sWarning, $_sSubject );
236 236
                     }
237 237
                 }
238 238
                 return $_aWarnings;                
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
          */    
253 253
         public function _replyToPrintAdminNotices() {
254 254
             
255
-            $_aWarnings     = array_unique( $this->aWarnings );
255
+            $_aWarnings = array_unique( $this->aWarnings );
256 256
             if ( empty( $_aWarnings ) ) {
257 257
                 return;
258 258
             }
@@ -270,12 +270,12 @@  discard block
 block discarded – undo
270 270
              */
271 271
             private function _getWarnings() {
272 272
 
273
-                $_aWarnings     = array_unique( $this->aWarnings );            
273
+                $_aWarnings = array_unique( $this->aWarnings );            
274 274
                 if ( empty( $_aWarnings ) ) {
275 275
                     return '';
276 276
                 }        
277
-                $_sScripTitle   = $this->_sScriptName 
278
-                    ?  "<strong>" . $this->_sScriptName . "</strong>:&nbsp;" 
277
+                $_sScripTitle = $this->_sScriptName 
278
+                    ? "<strong>".$this->_sScriptName."</strong>:&nbsp;" 
279 279
                     : '';            
280 280
                 return $_sScripTitle
281 281
                    . implode( '<br />', $_aWarnings );
@@ -286,12 +286,12 @@  discard block
 block discarded – undo
286 286
      * Deactivates the plugin.
287 287
      * @since       3.4.6
288 288
      */
289
-    public function deactivatePlugin( $sPluginFilePath, $sMessage='', $bIsOnActivation=false ) {
289
+    public function deactivatePlugin( $sPluginFilePath, $sMessage = '', $bIsOnActivation = false ) {
290 290
         
291 291
         add_action( 'admin_notices', array( $this, '_replyToPrintAdminNotices' ) );
292
-        $this->aWarnings[] = '<strong>' . $sMessage . '</strong>';
293
-        if ( ! function_exists( 'deactivate_plugins' ) ) {
294
-            if ( ! @include( ABSPATH . '/wp-admin/includes/plugin.php' ) ) {
292
+        $this->aWarnings[ ] = '<strong>'.$sMessage.'</strong>';
293
+        if ( !function_exists( 'deactivate_plugins' ) ) {
294
+            if ( !@include( ABSPATH.'/wp-admin/includes/plugin.php' ) ) {
295 295
                 return;
296 296
             }
297 297
         }
@@ -301,8 +301,8 @@  discard block
 block discarded – undo
301 301
         // Before that, we can display messages to the user.
302 302
         if ( $bIsOnActivation ) {
303 303
             
304
-            $_sPluginListingPage = add_query_arg( array(), $GLOBALS['pagenow'] );
305
-            wp_die( $this->_getWarnings() . "<p><a href='$_sPluginListingPage'>Go back</a>.</p>" );
304
+            $_sPluginListingPage = add_query_arg( array(), $GLOBALS[ 'pagenow' ] );
305
+            wp_die( $this->_getWarnings()."<p><a href='$_sPluginListingPage'>Go back</a>.</p>" );
306 306
             
307 307
         }
308 308
         
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * @since       3.4.6
101 101
      * @return      integer         The number of warnings.
102 102
      */
103
-    public function check() {      
103
+    public function check() {
104 104
         
105 105
         $_aWarnings = array();
106 106
         
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * Sets up hooks and properties.
28
+     * @param AdminPageFrameworkLoader_AdminPage $oFactory
28 29
      */
29 30
     public function __construct( $oFactory, array $aPageArguments ) {
30 31
         
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function __construct( $oFactory, array $aPageArguments ) {
30 30
         
31 31
         $this->oFactory     = $oFactory;
32
-        $this->sPageSlug    = $aPageArguments['page_slug'];
32
+        $this->sPageSlug    = $aPageArguments[ 'page_slug' ];
33 33
         $this->_addPage( $aPageArguments );
34 34
         $this->construct( $oFactory );
35 35
         
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function replyToLoadResources( $oFactory ) {
60 60
 
61
-        $_sCSSPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/' . $this->sPageSlug . '.css';
62
-        if ( ! file_exists( $_sCSSPath ) ) {
61
+        $_sCSSPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/'.$this->sPageSlug.'.css';
62
+        if ( !file_exists( $_sCSSPath ) ) {
63 63
             return;
64 64
         }
65 65
         $this->oFactory->enqueueStyle( 
Please login to merge, or discard this patch.
uninstall.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
  * @since        3.5.0
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( !defined( 'ABSPATH' ) ) {
13 13
     return;
14 14
 }
15
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
15
+if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
16 16
     return;
17 17
 }
18 18
 
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
  * We are going to load the main file to get the registry class. And in the main file, 
22 22
  * if this constant is set, it will return after declaring the registry class.
23 23
  **/
24
-if ( ! defined( 'DOING_UNINSTALL' ) ) {
25
-    define( 'DOING_UNINSTALL', true  );
24
+if ( !defined( 'DOING_UNINSTALL' ) ) {
25
+    define( 'DOING_UNINSTALL', true );
26 26
 }
27 27
 
28 28
 /**
29 29
  * Set the main plugin file name here.
30 30
  */
31
-$_sMaingPluginFileName  = 'admin-page-framework-loader.php';
32
-if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) {
31
+$_sMaingPluginFileName = 'admin-page-framework-loader.php';
32
+if ( file_exists( dirname( __FILE__ ).'/'.$_sMaingPluginFileName ) ) {
33 33
    include( $_sMaingPluginFileName );
34 34
 }
35 35
 
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     // Delete transients
42 42
     $_aPrefixes = array(
43 43
         AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX, // the plugin transients
44
-        'apf_',      // the admin page framework transients
44
+        'apf_', // the admin page framework transients
45 45
     );
46 46
     $_oWPDB = ${ 'GLOBALS' }[ 'wpdb' ];
47
-    foreach( $_aPrefixes as $_sPrefix ) {
48
-        if ( ! $_sPrefix ) { 
47
+    foreach ( $_aPrefixes as $_sPrefix ) {
48
+        if ( !$_sPrefix ) { 
49 49
             continue; 
50 50
         }
51 51
         $_oWPDB->query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     );
46 46
     $_oWPDB = ${ 'GLOBALS' }[ 'wpdb' ];
47 47
     foreach( $_aPrefixes as $_sPrefix ) {
48
-        if ( ! $_sPrefix ) { 
48
+        if ( ! $_sPrefix ) {
49 49
             continue; 
50 50
         }
51 51
         $_oWPDB->query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" );
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Cleans up the plugin options.
4
- *    
5
- * @package      Admin Page Framework Loader
6
- * @copyright    Copyright (c) 2013-2016, Michael Uno
7
- * @author       Michael Uno
8
- * @authorurl    http://michaeluno.jp
9
- * @since        3.5.0
10
- */
3
+     * Cleans up the plugin options.
4
+     *    
5
+     * @package      Admin Page Framework Loader
6
+     * @copyright    Copyright (c) 2013-2016, Michael Uno
7
+     * @author       Michael Uno
8
+     * @authorurl    http://michaeluno.jp
9
+     * @since        3.5.0
10
+     */
11 11
 
12 12
 if ( ! defined( 'ABSPATH' ) ) {
13 13
     return;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  */
31 31
 $_sMaingPluginFileName  = 'admin-page-framework-loader.php';
32 32
 if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) {
33
-   include( $_sMaingPluginFileName );
33
+    include( $_sMaingPluginFileName );
34 34
 }
35 35
 
36 36
 if ( class_exists( 'AdminPageFrameworkLoader_Registry' ) ) :
Please login to merge, or discard this patch.
include/class/AdminPageFrameworkLoader_Bootstrap.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     public function getClasses() {
32 32
         
33 33
         // Include the include lists. The including file reassigns the list(array) to the $_aClassFiles variable.
34
-        $_aClassFiles   = array();
35
-        include( dirname( $this->sFilePath ) . '/include/loader-class-list.php' );
34
+        $_aClassFiles = array();
35
+        include( dirname( $this->sFilePath ).'/include/loader-class-list.php' );
36 36
         $this->_aClassFiles = $_aClassFiles;
37 37
         return $_aClassFiles;
38 38
                 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if ( $_oRequirementCheck->check() ) {            
61 61
                 $_oRequirementCheck->deactivatePlugin( 
62 62
                     $this->sFilePath, 
63
-                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
63
+                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ), // additional message
64 64
                     true    // is in the activation hook. This will exit the script.
65 65
                 );
66 66
             }        
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function setLocalization() {
76 76
         
77 77
         // This plugin does not have messages to be displayed in the front end.
78
-        if ( ! $this->bIsAdmin ) { 
78
+        if ( !$this->bIsAdmin ) { 
79 79
             return; 
80 80
         }
81 81
        
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
         load_plugin_textdomain( 
84 84
             AdminPageFrameworkLoader_Registry::TEXT_DOMAIN, 
85 85
             false, 
86
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
86
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
87 87
         );
88 88
             
89 89
         load_plugin_textdomain( 
90 90
             'admin-page-framework', 
91 91
             false, 
92
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
92
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
93 93
         );        
94 94
         
95 95
     }        
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
 
113 113
             // Loader plugin admin pages.
114 114
             new AdminPageFrameworkLoader_AdminPage( 
115
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
115
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
116 116
                 $this->sFilePath   // caller script path
117 117
             );
118 118
 
119 119
             // Network admin pages.
120 120
             if ( is_network_admin() ) {
121 121
                 new AdminPageFrameworkLoader_NetworkAdmin(
122
-                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
122
+                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
123 123
                     $this->sFilePath   // caller script path            
124 124
                 );
125 125
             }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
          */
140 140
         private function _shouldShowAdminPages() {
141 141
        
142
-            if ( ! $this->bIsAdmin ) {
142
+            if ( !$this->bIsAdmin ) {
143 143
                 return false;
144 144
             }
145 145
             if ( AdminPageFrameworkLoader_Utility::isSilentMode() ) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 AdminPageFrameworkLoader_Registry::NAME
59 59
             );
60 60
             
61
-            if ( $_oRequirementCheck->check() ) {            
61
+            if ( $_oRequirementCheck->check() ) {
62 62
                 $_oRequirementCheck->deactivatePlugin( 
63 63
                     $this->sFilePath, 
64 64
                     __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function setLocalization() {
77 77
         
78 78
         // This plugin does not have messages to be displayed in the front end.
79
-        if ( ! $this->bIsAdmin ) { 
79
+        if ( ! $this->bIsAdmin ) {
80 80
             return; 
81 81
         }
82 82
         
Please login to merge, or discard this patch.
include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function start() {
27 27
         
28
-        if ( ! is_admin() ) {
28
+        if ( !is_admin() ) {
29 29
             return;
30 30
         }
31 31
         
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
             // When newly installed, the 'welcomed' value is not set.
49 49
             $_oOption = AdminPageFrameworkLoader_Option::getInstance();
50
-            if ( ! $_oOption->get( 'welcomed' ) ) {                
50
+            if ( !$_oOption->get( 'welcomed' ) ) {                
51 51
                 $this->_setInitialOptions( $_oOption, AdminPageFrameworkLoader_Registry::VERSION );
52 52
                 $this->_goToWelcomePage(); // will exit
53 53
             }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         private function _goToWelcomePage() {    
74 74
         
75 75
             $_sWelcomePageURL = apply_filters(
76
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_admin_welcome_redirect_url',
76
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_admin_welcome_redirect_url',
77 77
                 add_query_arg( 
78 78
                     array( 'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ] ),
79 79
                     admin_url( 'index.php' )   // Dashboard
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
     public function setUp() {
94 94
   
95 95
         $_oOption = AdminPageFrameworkLoader_Option::getInstance();
96
-        if ( ! $_oOption->get( 'enable_admin_pages' ) ) {
96
+        if ( !$_oOption->get( 'enable_admin_pages' ) ) {
97 97
             return;
98 98
         }
99 99
         
100
-        $this->sPageSlug  = AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ];
100
+        $this->sPageSlug = AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ];
101 101
         
102 102
         // Root page
103 103
         $this->setRootMenuPage( 
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
         $this->addSubMenuItems( 
109 109
             array(
110 110
                 'title'         => AdminPageFrameworkLoader_Registry::SHORTNAME,
111
-                'page_slug'     => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ],    // page slug
111
+                'page_slug'     => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ], // page slug
112 112
                 'show_in_menu'  => false,
113 113
                 'style'         => array(
114
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/about.css', 
115
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/column.css', 
116
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/javascript/flip/jquery.m.flip.css',
114
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/about.css', 
115
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/column.css', 
116
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/javascript/flip/jquery.m.flip.css',
117 117
                     version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' )
118 118
                         ? ".about-wrap .introduction h2 {
119 119
                                 padding: 1em;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                         }",     
128 128
                 ),
129 129
                 'script'        => array(
130
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/javascript/flip/jquery.m.flip.js',
130
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/javascript/flip/jquery.m.flip.js',
131 131
                     "jQuery( document ).ready( function() {
132 132
                         jQuery( '.apf-badge-image' ).mflip();
133 133
                     } );",
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
         $this->setPluginSettingsLinkLabel( '' ); // pass an empty string to disable it.
139 139
         
140 140
         // Hook
141
-        add_action( "load_" . $this->oProp->sClassName, array( $this, 'replyToLoadClassPages' ) );
142
-        add_action( "load_" . AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ], array( $this, 'replyToLoadPage' ) );
141
+        add_action( "load_".$this->oProp->sClassName, array( $this, 'replyToLoadClassPages' ) );
142
+        add_action( "load_".AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ], array( $this, 'replyToLoadPage' ) );
143 143
 
144 144
     }   
145 145
     
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
 
166 166
         $_sPageSlug = AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ];
167 167
         new AdminPageFrameworkLoader_AdminPageWelcome_Welcome( 
168
-            $this,              // factory object
169
-            $_sPageSlug,        // page slug
168
+            $this, // factory object
169
+            $_sPageSlug, // page slug
170 170
             array(
171 171
                 'tab_slug'      => 'welcome',
172 172
                 // 'title'         => __( "What's New", 'admin-page-framework-loader' ),   // '
173 173
                 'style'         => array(
174
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/admin.css',
175
-                    AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/code.css',
174
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/admin.css',
175
+                    AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/code.css',
176 176
                 ),
177 177
             )                
178 178
         );        
@@ -201,24 +201,24 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function replyToFilterContentTop( $sContent ) {
203 203
 
204
-        $_sVersion      = '- ' . AdminPageFrameworkLoader_Registry::VERSION;
205
-        $_sPluginName   = AdminPageFrameworkLoader_Registry::SHORTNAME . ' ' . $_sVersion;
204
+        $_sVersion      = '- '.AdminPageFrameworkLoader_Registry::VERSION;
205
+        $_sPluginName   = AdminPageFrameworkLoader_Registry::SHORTNAME.' '.$_sVersion;
206 206
         
207 207
         $_sBadgeURL     = esc_url( AdminPageFrameworkLoader_Registry::getPluginURL( 'asset/image/icon-128x128.png' ) );
208 208
         
209 209
         $_aOutput   = array();
210
-        $_aOutput[] = "<h1>" 
210
+        $_aOutput[ ] = "<h1>" 
211 211
                 . sprintf( __( 'Welcome to %1$s', 'admin-page-framework-loader' ), $_sPluginName )
212 212
             . "</h1>";
213
-        $_aOutput[] = "<div class='about-text'>"
213
+        $_aOutput[ ] = "<div class='about-text'>"
214 214
                 . sprintf( __( 'Thank you for updating to the latest version! %1$s is ready to make your plugin or theme development faster, more organized and better!', 'admin-page-framework-loader' ), $_sPluginName )
215 215
             . "</div>";
216
-        $_aOutput[] = ''
216
+        $_aOutput[ ] = ''
217 217
                 . "<div class='apf-badge'>"
218 218
                     . "<div class='apf-badge-image m-flip'>"
219 219
                         . "<img src='{$_sBadgeURL}' />"
220 220
                     . "</div>"
221
-                    . "<span class='label'>" . sprintf( __( 'Version %1$s', 'admin-page-framework-loader' ), $_sVersion ) . "</span>"
221
+                    . "<span class='label'>".sprintf( __( 'Version %1$s', 'admin-page-framework-loader' ), $_sVersion )."</span>"
222 222
                 . "</div>";
223 223
            
224 224
         return implode( PHP_EOL, $_aOutput )
Please login to merge, or discard this patch.
Braces   +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
             // When newly installed, the 'welcomed' value is not set.
49 49
             $_oOption = AdminPageFrameworkLoader_Option::getInstance();
50
-            if ( ! $_oOption->get( 'welcomed' ) ) {                
50
+            if ( ! $_oOption->get( 'welcomed' ) ) {
51 51
                 $this->_setInitialOptions( $_oOption, AdminPageFrameworkLoader_Registry::VERSION );
52 52
                 $this->_goToWelcomePage(); // will exit
53 53
             }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 
71 71
             }
72 72
             
73
-        private function _goToWelcomePage() {    
73
+        private function _goToWelcomePage() {
74 74
         
75 75
             $_sWelcomePageURL = apply_filters(
76 76
                 AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_admin_welcome_redirect_url',
Please login to merge, or discard this patch.
class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function start() {
20 20
   
21
-        if ( ! $this->oProp->bIsAdmin ) {
21
+        if ( !$this->oProp->bIsAdmin ) {
22 22
             return;
23 23
         }
24 24
       
25 25
         // Allows the user to switch the menu visibility.
26
-        if ( isset( $_GET['enable_apfl_admin_pages'] ) ) {
26
+        if ( isset( $_GET[ 'enable_apfl_admin_pages' ] ) ) {
27 27
             
28 28
             // Update the options and reload the page
29 29
             $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] );
@@ -67,15 +67,15 @@  discard block
 block discarded – undo
67 67
     public function setUp() {
68 68
 
69 69
         $_aOptions          = $this->oProp->aOptions;
70
-        $_bAdminPageEnabled = ! is_array( $_aOptions )  // for the first time of loading, the option is not set and it is not an array. 
71
-            || ( isset( $_aOptions['enable_admin_pages'] ) && $_aOptions['enable_admin_pages'] );    
70
+        $_bAdminPageEnabled = !is_array( $_aOptions )  // for the first time of loading, the option is not set and it is not an array. 
71
+            || ( isset( $_aOptions[ 'enable_admin_pages' ] ) && $_aOptions[ 'enable_admin_pages' ] );    
72 72
     
73 73
         // Set up pages
74 74
         if ( $_bAdminPageEnabled ) {
75 75
             
76 76
             $this->setRootMenuPage( 
77
-                AdminPageFrameworkLoader_Registry::SHORTNAME,     // menu slug
78
-                AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/image/wp-logo_16x16.png', // menu icon
77
+                AdminPageFrameworkLoader_Registry::SHORTNAME, // menu slug
78
+                AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/image/wp-logo_16x16.png', // menu icon
79 79
                 4  // menu position
80 80
             ); 
81 81
                         
@@ -86,19 +86,19 @@  discard block
 block discarded – undo
86 86
                     'page_slug' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'tool' ],
87 87
                     'title'     => __( 'Tools', 'admin-page-framework-loader' ),
88 88
                     'style'     => array(
89
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/code.css',
90
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/admin.css'
89
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/code.css',
90
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/admin.css'
91 91
                     ),
92 92
                 )
93 93
             );
94 94
             new AdminPageFrameworkLoader_AdminPage_Addon(
95 95
                 $this,
96 96
                 array(
97
-                    'page_slug' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'addon' ],    // page slug
97
+                    'page_slug' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'addon' ], // page slug
98 98
                     'title'     => __( 'Add Ons', 'admin-page-framework-loader' ),
99 99
                     'style'     => array(
100
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/code.css',
101
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/admin.css'
100
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/code.css',
101
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/admin.css'
102 102
                     ),                    
103 103
                 )                
104 104
             );
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
                     'title'     => __( 'Help', 'admin-page-framework-loader' ),
110 110
                     'order'     => 1000, // to be the last menu item
111 111
                     'style'     => array(
112
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/code.css',
113
-                        AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/admin.css'
112
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/code.css',
113
+                        AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/admin.css'
114 114
                     ),                    
115 115
                 )                
116 116
             );
117 117
             
118
-            add_action( 'load_' . $this->oProp->sClassName, array( $this, 'replyToDoPageSettings' ) );
118
+            add_action( 'load_'.$this->oProp->sClassName, array( $this, 'replyToDoPageSettings' ) );
119 119
             
120 120
         }
121 121
               
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
          */
129 129
         private function _addActionLinks( $_bAdminPageEnabled, $_aOptions ) {
130 130
           
131
-            if ( 'plugins.php' !==  $this->oProp->sPageNow ) {
131
+            if ( 'plugins.php' !== $this->oProp->sPageNow ) {
132 132
                 return;
133 133
             }
134 134
           
@@ -152,24 +152,24 @@  discard block
 block discarded – undo
152 152
              * @return      string
153 153
              */
154 154
             private function _getAdminURLTools( $_bAdminPageEnabled ) {
155
-                if ( ! $_bAdminPageEnabled ) {
155
+                if ( !$_bAdminPageEnabled ) {
156 156
                     return;
157 157
                 }
158
-                $_sLink    = esc_url(
158
+                $_sLink = esc_url(
159 159
                     add_query_arg( 
160 160
                         array( 
161
-                            'page' => AdminPageFrameworkLoader_Registry::$aAdminPages['tool'],
161
+                            'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'tool' ],
162 162
                         ),
163 163
                         admin_url( 'admin.php' )
164 164
                     )
165 165
                 );                
166
-                return "<a href='{$_sLink}'>" . __( 'Tools', 'admin-page-framework-loader' ) . "</a>";
166
+                return "<a href='{$_sLink}'>".__( 'Tools', 'admin-page-framework-loader' )."</a>";
167 167
             }
168 168
             /**
169 169
              * Returns the Enable /Disable Admin Pages link.
170 170
              */
171 171
             private function _getAdminPageSwitchLink( $bEnabled ) {
172
-                $_sLink    = esc_url( 
172
+                $_sLink = esc_url( 
173 173
                     add_query_arg( 
174 174
                         array( 
175 175
                             'enable_apfl_admin_pages' => $bEnabled ? 0 : 1,
@@ -177,19 +177,19 @@  discard block
 block discarded – undo
177 177
                     )
178 178
                 );            
179 179
                 return $bEnabled
180
-                    ? "<a href='{$_sLink}'>" . __( 'Disable Admin Pages', 'admin-page-framework-loader' ) . "</a>"
181
-                    : "<a href='{$_sLink}'>" . __( 'Enable Admin Pages', 'admin-page-framework-loader' ) . "</a>";                     
180
+                    ? "<a href='{$_sLink}'>".__( 'Disable Admin Pages', 'admin-page-framework-loader' )."</a>"
181
+                    : "<a href='{$_sLink}'>".__( 'Enable Admin Pages', 'admin-page-framework-loader' )."</a>";                     
182 182
             }
183 183
             /**
184 184
              * Returns the switch link of the demo pages.
185 185
              */
186
-            private function _getDemoSwitcherLink( $_bAdminPageEnabled, $mOptions=array() ) {
186
+            private function _getDemoSwitcherLink( $_bAdminPageEnabled, $mOptions = array() ) {
187 187
                 
188
-                if ( ! $_bAdminPageEnabled ) {
188
+                if ( !$_bAdminPageEnabled ) {
189 189
                     return '';
190 190
                 }
191
-                $_bEnabled  = isset( $mOptions['enable_demo'] ) && $mOptions['enable_demo'];
192
-                $_sLink    = esc_url( 
191
+                $_bEnabled = isset( $mOptions[ 'enable_demo' ] ) && $mOptions[ 'enable_demo' ];
192
+                $_sLink = esc_url( 
193 193
                     add_query_arg( 
194 194
                         array( 
195 195
                             'enable_apfl_demo_pages' => $_bEnabled ? 0 : 1,
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
                     )
198 198
                 );        
199 199
                 return $_bEnabled
200
-                    ? "<a href='{$_sLink}'>" . __( 'Disable Demo', 'admin-page-framework-loader' ) . "</a>"
201
-                    : "<a href='{$_sLink}'><strong id='activate-demo-action-link' style='font-size: 1em;'>" . __( 'Enable Demo', 'admin-page-framework-loader' ) . "</strong></a>";
200
+                    ? "<a href='{$_sLink}'>".__( 'Disable Demo', 'admin-page-framework-loader' )."</a>"
201
+                    : "<a href='{$_sLink}'><strong id='activate-demo-action-link' style='font-size: 1em;'>".__( 'Enable Demo', 'admin-page-framework-loader' )."</strong></a>";
202 202
                 
203 203
             }      
204 204
 
@@ -214,14 +214,14 @@  discard block
 block discarded – undo
214 214
     
215 215
         // Page meta boxes            
216 216
         new AdminPageFrameworkLoader_AdminPageMetaBox_Notification(
217
-            null,                                           // meta box id - passing null will make it auto generate
217
+            null, // meta box id - passing null will make it auto generate
218 218
             __( 'Notification', 'admin-page-framework-loader' ), // title
219 219
             array( // page slugs
220 220
                 AdminPageFrameworkLoader_Registry::$aAdminPages[ 'tool' ],
221 221
                 AdminPageFrameworkLoader_Registry::$aAdminPages[ 'addon' ],
222 222
                 AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
223 223
             ),
224
-            'side',                                       // context
224
+            'side', // context
225 225
             'default'                                     // priority
226 226
         );        
227 227
     
Please login to merge, or discard this patch.
admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
     public function replyToLoadPage( $oFactory ) {
20 20
         
21 21
         new AdminPageFrameworkLoader_AdminPage_Addon_Top( 
22
-            $oFactory,          // factory object
23
-            $this->sPageSlug,   // page slug
22
+            $oFactory, // factory object
23
+            $this->sPageSlug, // page slug
24 24
             array(              // tab definition
25 25
                 'tab_slug'      => 'top',
26 26
                 'title'         => __( 'Add Ons', 'admin-page-framework-loader' ),
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     'class_name'           => 'AceCustomFieldType',
89 89
                     'label'                => __( 'ACE', 'admin-page-framework-loader' ),
90 90
                     'description'          => __( 'provides code syntax highlighting in a text area field.', 'admin-page-framework-loader' ),
91
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type',
91
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/ace-custom-field-type',
92 92
                     'archive_file_path'    => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php',
93 93
                     'archive_dir_path'     => 'custom-field-types/ace-custom-field-type',
94 94
                     'text_domain'          => 'admin-page-framework',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     'class_name'           => 'GitHubCustomFieldType',
98 98
                     'label'                => __( 'GitHub Buttons', 'admin-page-framework-loader' ),
99 99
                     'description'          => __( 'allows you to display GitHub buttons in a field.', 'admin-page-framework-loader' ),
100
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type',
100
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/include/library/github-custom-field-type',
101 101
                     'archive_file_path'    => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php',
102 102
                     'archive_dir_path'     => 'custom-field-types/github-custom-field-type',
103 103
                     'text_domain'          => 'admin-page-framework',
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
                 
107 107
             // Let third-party scripts add custom field types.
108 108
             $this->aCustomFieldTypes = apply_filters(
109
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
109
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
110 110
                 $this->aCustomFieldTypes
111 111
             );                    
112 112
             
113
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
113
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
114 114
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
115
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
115
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
116 116
             }
117 117
      
118 118
         }
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 
129 129
                 // Check the file extension.
130 130
                 $_aAllowedExtensions = apply_filters(
131
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
131
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
132 132
                     array( 'php', 'css', 'js' )
133 133
                 );                
134
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
134
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
135 135
                     return $sFileContents;
136 136
                 }            
137 137
                 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 private function _getModifiedInclusionList( $sFileContents ) {
162 162
                     return str_replace(
163 163
                         ');', // search
164
-                        $this->_getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
164
+                        $this->_getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
165 165
                         $sFileContents // subject
166 166
                     );
167 167
                 }
@@ -178,18 +178,18 @@  discard block
 block discarded – undo
178 178
                             $_POST,
179 179
                             array( 
180 180
                                 $this->oFactory->oProp->sOptionKey, 
181
-                                'generator',    // section id
181
+                                'generator', // section id
182 182
                                 'class_prefix'  // field id
183 183
                             ),
184 184
                             ''
185 185
                         );
186 186
                         $_aOutput = array();
187
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
188
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
187
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
188
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
189 189
                                 . ' => ' 
190
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
190
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
191 191
                         }
192
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
192
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
193 193
                     
194 194
                     }
195 195
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                         $this->aCustomFieldTypes // ArchiveFilePaths
208 208
                     );
209 209
                     $_aArchiveFilePaths = array();
210
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
210
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
211 211
                         $_aArchiveFilePaths[ $_sClassName ] = $this->oFactory->oUtil->getElement(
212 212
                             $_aCustomFieldType,
213 213
                             'archive_file_path',
@@ -275,17 +275,17 @@  discard block
 block discarded – undo
275 275
                         array( $sParsingClassName, 'text_domain' )
276 276
                     );
277 277
                     if ( $_sFieldTypeTextDomain ) {                        
278
-                        $_aSearches[] = $_sFieldTypeTextDomain;
279
-                        $_aReplaces[] = $_sUserTextDomain;
278
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
279
+                        $_aReplaces[ ] = $_sUserTextDomain;
280 280
                     }
281 281
                     
282
-                    $_aSearches[] = 'admin-page-framework';
283
-                    $_aReplaces[] = $_sUserTextDomain;
282
+                    $_aSearches[ ] = 'admin-page-framework';
283
+                    $_aReplaces[ ] = $_sUserTextDomain;
284 284
                     
285 285
                     // Return the converted string.
286 286
                     return str_replace(
287
-                        $_aSearches,    // search
288
-                        $_aReplaces,    // replace
287
+                        $_aSearches, // search
288
+                        $_aReplaces, // replace
289 289
                         $sFileContents  // subject
290 290
                     );
291 291
                     
@@ -295,8 +295,8 @@  discard block
 block discarded – undo
295 295
                      * @callback    function        array_walk
296 296
                      * @return      string
297 297
                      */
298
-                    public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix='' ) {
299
-                        $sClassName = $sPrefix . $sClassName;
298
+                    public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix = '' ) {
299
+                        $sClassName = $sPrefix.$sClassName;
300 300
                     }   
301 301
                                     
302 302
  
@@ -317,12 +317,12 @@  discard block
 block discarded – undo
317 317
              */
318 318
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
319 319
                                 
320
-                $_aCheckedCustomFieldTypes        = $this->_getSelectedCustomFieldTypes(
320
+                $_aCheckedCustomFieldTypes = $this->_getSelectedCustomFieldTypes(
321 321
                     $this->aCustomFieldTypes
322 322
                 );
323 323
                 
324 324
                 $_aDirPathInfo = array();
325
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
325
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
326 326
                     
327 327
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
328 328
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
                  * @return      array       The array keys of the checked items.
339 339
                  * @since       3.6.0
340 340
                  */
341
-                private function _getSelectedCustomFieldTypes( array $aSubject=array() ) {
341
+                private function _getSelectedCustomFieldTypes( array $aSubject = array() ) {
342 342
                     
343 343
                     $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
344 344
                         $_POST,
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
                         $this->aCustomFieldTypes,
275 275
                         array( $sParsingClassName, 'text_domain' )
276 276
                     );
277
-                    if ( $_sFieldTypeTextDomain ) {                        
277
+                    if ( $_sFieldTypeTextDomain ) {
278 278
                         $_aSearches[] = $_sFieldTypeTextDomain;
279 279
                         $_aReplaces[] = $_sUserTextDomain;
280 280
                     }
Please login to merge, or discard this patch.
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.