Completed
Branch master (7ff82b)
by
unknown
01:54
created
_model/delegate/AdminPageFramework_Model__FormSubmission_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@
 block discarded – undo
46 46
      * @return      null|string     Returns `null` if no value is found and the associated link url if found. 
47 47
      * Otherwise, the found value.
48 48
      */ 
49
-    protected function _getPressedSubmitButtonData( array $aPostElements, $sTargetKey='field_id' ) {    
49
+    protected function _getPressedSubmitButtonData( array $aPostElements, $sTargetKey = 'field_id' ) {    
50 50
 
51
-        foreach( $aPostElements as $_sInputID => $_aSubElements ) {
51
+        foreach ( $aPostElements as $_sInputID => $_aSubElements ) {
52 52
             
53 53
             // The 'name' key must be set.
54
-            if ( ! isset( $_aSubElements[ 'name' ] ) ) {
54
+            if ( !isset( $_aSubElements[ 'name' ] ) ) {
55 55
                 continue;
56 56
             }
57 57
             $_aNameKeys = explode( '|', $_aSubElements[ 'name' ] ); 
Please login to merge, or discard this patch.
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTabs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,14 +53,14 @@
 block discarded – undo
53 53
 
54 54
          // Apply filters to modify the in-page tab array.
55 55
         $_aInPageTabs = $this->addAndApplyFilter(
56
-            $this->oFactory,  // caller object
56
+            $this->oFactory, // caller object
57 57
             "tabs_{$this->oFactory->oProp->sClassName}_{$this->sPageSlug}", // filter name
58 58
             $this->aInPageTabs     // filtering value
59 59
         );    
60 60
 
61 61
         // Added items may be missing necessary keys so format them
62
-        foreach( ( array ) $_aInPageTabs as $_sTabSlug => $_aInPageTab ) {
63
-            if ( ! is_array( $_aInPageTab ) ) {
62
+        foreach ( ( array ) $_aInPageTabs as $_sTabSlug => $_aInPageTab ) {
63
+            if ( !is_array( $_aInPageTab ) ) {
64 64
                 continue;
65 65
             }
66 66
             $_oFormatter = new AdminPageFramework_Format_InPageTab( 
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_View__PageMataBoxRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function render( $sContext ) {
30 30
                
31 31
         // If nothing is registered do not render even the container.
32
-        if ( ! $this->doesMetaBoxExist() ) {
32
+        if ( !$this->doesMetaBoxExist() ) {
33 33
             return;
34 34
         }
35 35
         
Please login to merge, or discard this patch.
class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         }       
42 42
         
43 43
         trigger_error( 
44
-            'Admin Page Framework - Loader: ' . ' : ' . sprintf( 
44
+            'Admin Page Framework - Loader: '.' : '.sprintf( 
45 45
                 __( 'The method is not defined: %1$s', 'admin-page-framework-loader' ),
46 46
                 $sMethodName 
47 47
             ), 
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
      */
25 25
     public function content( $sContent ) {
26 26
         
27
-        $_aReplacements   = array(
27
+        $_aReplacements = array(
28 28
             '%PLUGIN_DIR_URL%'  => AdminPageFrameworkLoader_Registry::getPluginURL(),
29 29
             '%WP_ADMIN_URL%'    => admin_url(),
30 30
         );
31 31
         $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( 
32
-            AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt',
32
+            AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/about.txt',
33 33
             $_aReplacements
34 34
         );
35 35
         return ''
Please login to merge, or discard this patch.
admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     
35 35
     public function replyToDoTab( $oFactory ) {
36 36
         
37
-        echo "<h3>" . __( 'Saved Options', 'admin-page-framework-loader' ) . "</h3>";
37
+        echo "<h3>".__( 'Saved Options', 'admin-page-framework-loader' )."</h3>";
38 38
         $oFactory->oDebug->dump( $oFactory->oProp->aOptions );
39 39
         
40 40
     }
Please login to merge, or discard this patch.
include/class/event/AdminPageFrameworkLoader_Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct() {
25 25
         
26 26
         new AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion(
27
-            AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version'  // action name
27
+            AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_action_get_development_version'  // action name
28 28
         );
29 29
                 
30 30
     }
Please login to merge, or discard this patch.
uninstall.php 1 patch
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.
include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php 1 patch
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.