Completed
Branch master (5cc763)
by
unknown
24:25 queued 19:39
created
include/class/admin/demo/AdminPageFrameworkLoader_Demo.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Loads the demo components.
4
- * 
5
- * @package      Admin Page Framework Loader
6
- * @copyright    Copyright (c) 2014, Michael Uno
7
- * @author       Michael Uno
8
- * @authorurl    http://michaeluno.jp
9
- * @since        3.5.0
10
- */
3
+     * Loads the demo components.
4
+     * 
5
+     * @package      Admin Page Framework Loader
6
+     * @copyright    Copyright (c) 2014, Michael Uno
7
+     * @author       Michael Uno
8
+     * @authorurl    http://michaeluno.jp
9
+     * @since        3.5.0
10
+     */
11 11
 
12
- /**
13
-  * 
14
-  * 
15
-  * @action     do      admin_page_framework_loader_action_before_loading_demo
16
-  * @action     do      admin_page_framework_loader_action_after_loading_demo
17
-  */
12
+    /**
13
+     * 
14
+     * 
15
+     * @action     do      admin_page_framework_loader_action_before_loading_demo
16
+     * @action     do      admin_page_framework_loader_action_after_loading_demo
17
+     */
18 18
 class AdminPageFrameworkLoader_Demo {
19 19
     
20 20
     public function __construct() {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     
20 20
     public function __construct() {
21 21
         
22
-        if ( ! $this->_shouldLoadDemo() ) {
22
+        if ( !$this->_shouldLoadDemo() ) {
23 23
             return;
24 24
         }
25 25
         
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         
54 54
             // Check if the demo is enabled.
55 55
             $_oOption = AdminPageFrameworkLoader_Option::getInstance();
56
-            if ( ! $_oOption->get( 'enable_demo' ) ) {
56
+            if ( !$_oOption->get( 'enable_demo' ) ) {
57 57
                 return false;
58 58
             }           
59 59
             
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
         private function _registerClasses() {
68 68
 
69 69
             $_aClassFiles = array();
70
-            include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/admin-page-framework-demo-include-class-file-list.php' );            
70
+            include( AdminPageFrameworkLoader_Registry::$sDirPath.'/include/admin-page-framework-demo-include-class-file-list.php' );            
71 71
             new AdminPageFramework_RegisterClasses( 
72
-                array(),              // scanning directory paths
73
-                array(),              // autoloader options
72
+                array(), // scanning directory paths
73
+                array(), // autoloader options
74 74
                 $_aClassFiles         // pre-generated class list
75 75
             );            
76 76
             
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_AdminPage.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     
19 19
     public function __construct() {     
20 20
         
21
-        if ( ! is_admin() ) { 
21
+        if ( !is_admin() ) { 
22 22
             return; 
23 23
         }
24 24
        
@@ -29,17 +29,17 @@  discard block
 block discarded – undo
29 29
         // Admin Pages
30 30
         // Add pages and forms in the custom post type root page
31 31
         new APF_Demo( 
32
-            null,                       // the option key - when null is passed the class name in this case 'APF_Demo' will be used
33
-            APFDEMO_FILE,               // the caller script path.
34
-            'manage_options',           // the default capability
32
+            null, // the option key - when null is passed the class name in this case 'APF_Demo' will be used
33
+            APFDEMO_FILE, // the caller script path.
34
+            'manage_options', // the default capability
35 35
             'admin-page-framework-loader' // the text domain
36 36
         );
37 37
                     
38 38
         // Add the Manage Options page.
39 39
         new APF_Demo_ManageOptions( 
40
-            'APF_Demo',                 // passing the option key used by the main pages.
41
-            APFDEMO_FILE,               // the caller script path.
42
-            'manage_options',           // the default capability
40
+            'APF_Demo', // passing the option key used by the main pages.
41
+            APFDEMO_FILE, // the caller script path.
42
+            'manage_options', // the default capability
43 43
             'admin-page-framework-loader' // the text domain        
44 44
         );
45 45
         
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
         
49 49
         // Add the contact page
50 50
         new APF_Demo_Contact(
51
-            '',                         // passing an empty string will disable the form data to be saved.
52
-            APFDEMO_FILE,               // the caller script path.
53
-            'read',                     // the default capability
51
+            '', // passing an empty string will disable the form data to be saved.
52
+            APFDEMO_FILE, // the caller script path.
53
+            'read', // the default capability
54 54
             'admin-page-framework-loader' // the text domain        
55 55
         );        
56 56
          
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_BasicExample {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
         
21
-        if ( ! is_admin() ) { 
21
+        if ( ! is_admin() ) {
22 22
             return; 
23 23
         }
24 24
         
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_BasicExample.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -18,36 +18,36 @@
 block discarded – undo
18 18
     
19 19
     public function __construct() {     
20 20
         
21
-        if ( ! is_admin() ) { 
21
+        if ( !is_admin() ) { 
22 22
             return; 
23 23
         }
24 24
         
25 25
         new APF_BasicUsage(
26
-            null,                       // the option key - when null is passed the class name in this case 'APF_BasicUsage' will be used           
27
-            APFDEMO_FILE,               // the caller script path.
28
-            'manage_options',           // the default capability
26
+            null, // the option key - when null is passed the class name in this case 'APF_BasicUsage' will be used           
27
+            APFDEMO_FILE, // the caller script path.
28
+            'manage_options', // the default capability
29 29
             'admin-page-framework-loader' // the text domain    
30 30
         );
31 31
 
32 32
         new APF_MetaBox_For_Pages_Normal(
33
-            null,                                           // meta box id - passing null will make it auto generate
33
+            null, // meta box id - passing null will make it auto generate
34 34
             __( 'Sample Meta Box for Admin Pages Inserted in Normal Area', 'admin-page-framework-loader' ), // title
35
-            'apf_first_page',                               // page slugs
36
-            'normal',                                       // context
35
+            'apf_first_page', // page slugs
36
+            'normal', // context
37 37
             'default'                                       // priority
38 38
         );
39 39
         new APF_MetaBox_For_Pages_Advanced(    
40
-            null,                                           // meta box id - passing null will make it auto generate
40
+            null, // meta box id - passing null will make it auto generate
41 41
             __( 'Sample Meta Box for Admin Pages Inserted in Advanced Area', 'admin-page-framework-loader' ), // title
42
-            'apf_first_page',                               // page slugs
43
-            'advanced',                                     // context
42
+            'apf_first_page', // page slugs
43
+            'advanced', // context
44 44
             'default'                                       // priority
45 45
         );    
46 46
         new APF_MetaBox_For_Pages_Side(    
47
-            null,                                           // meta box id - passing null will make it auto generate
47
+            null, // meta box id - passing null will make it auto generate
48 48
             __( 'Sample Meta Box for Admin Pages Inserted in Advanced Area', 'admin-page-framework-loader' ), // title
49
-            array( 'apf_first_page', 'apf_second_page' ),   // page slugs - setting multiple slugs is possible
50
-            'side',                                         // context
49
+            array( 'apf_first_page', 'apf_second_page' ), // page slugs - setting multiple slugs is possible
50
+            'side', // context
51 51
             'default'                                       // priority
52 52
         );            
53 53
         new APF_MetaBox_For_Pages_WithFormSection(
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_BasicExample {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
         
21
-        if ( ! is_admin() ) { 
21
+        if ( ! is_admin() ) {
22 22
             return; 
23 23
         }
24 24
         
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_MetaBox.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,35 +19,35 @@
 block discarded – undo
19 19
     public function __construct() {     
20 20
             
21 21
         new APF_MetaBox_BuiltinFieldTypes(
22
-            null,  // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
22
+            null, // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
23 23
             __( 'Demo Meta Box with Built-in Field Types', 'admin-page-framework-loader' ), // title
24
-            array( 'apf_posts' ),                            // post type slugs: post, page, etc.
25
-            'normal',                                        // context (what kind of metabox this is)
24
+            array( 'apf_posts' ), // post type slugs: post, page, etc.
25
+            'normal', // context (what kind of metabox this is)
26 26
             'high'                                           // priority
27 27
         );
28 28
         new APF_MetaBox_TabbedSections(
29
-            null,  // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
29
+            null, // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
30 30
             __( 'Section Tabs', 'admin-page-framework-loader' ), // title
31
-            array( 'apf_posts' ),                               // post type slugs: post, page, etc.
32
-            'normal',                                           // context (what kind of metabox this is)
31
+            array( 'apf_posts' ), // post type slugs: post, page, etc.
32
+            'normal', // context (what kind of metabox this is)
33 33
             'default'                                           // priority
34 34
         );    
35 35
         new APF_MetaBox_RepeatableTabbedSections(
36
-            null,  // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
36
+            null, // meta box ID - can be null. If null is passed, the ID gets automatically generated and the class name with all lower case characters will be applied.
37 37
             __( 'Repeatable Section Tabs', 'admin-page-framework-loader' ), // title
38
-            array( 'apf_posts' ),                               // post type slugs: post, page, etc.
39
-            'normal',                                           // context (what kind of metabox this is)
38
+            array( 'apf_posts' ), // post type slugs: post, page, etc.
39
+            'normal', // context (what kind of metabox this is)
40 40
             'default'                                           // priority
41 41
         );
42 42
         new APF_MetaBox_CollapsibleSections(
43
-            null,   // meta box id
43
+            null, // meta box id
44 44
             __( 'Collapsible Sections', 'admin-page-framework-loader' ),
45 45
             array( 'apf_posts' ),                             
46 46
             'normal',
47 47
             'low'
48 48
         );
49 49
         new APF_MetaBox_RepeatableCollapsibleSections(
50
-            null,   // meta box id
50
+            null, // meta box id
51 51
             __( 'Repeatable Collapsible Sections', 'admin-page-framework-loader' ),
52 52
             array( 'apf_posts' ),                             
53 53
             'normal',
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_Widget {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
     
21 21
         new APF_Widget( 
22 22
             __( 'Admin Page Framework', 'admin-page-framework-loader' ) // the widget title
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_NetworkAdminPage.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@
 block discarded – undo
18 18
     
19 19
     public function __construct() {     
20 20
 
21
-        if ( ! is_network_admin() ) {
21
+        if ( !is_network_admin() ) {
22 22
             return;
23 23
         }
24 24
         new APF_NetworkAdmin(
25
-            null,                       // passing the option key used by the main pages.
26
-            APFDEMO_FILE,               // the caller script path.
27
-            'manage_options',           // the default capability
25
+            null, // passing the option key used by the main pages.
26
+            APFDEMO_FILE, // the caller script path.
27
+            'manage_options', // the default capability
28 28
             'admin-page-framework-loader' // the text domain        
29 29
         ); 
30 30
         new APF_NetworkAdmin_ManageOptions( 
31 31
             'APF_NetworkAdmin', 
32
-            APFDEMO_FILE,               // the caller script path.
33
-            'manage_options',           // the default capability
32
+            APFDEMO_FILE, // the caller script path.
33
+            'manage_options', // the default capability
34 34
             'admin-page-framework-loader' // the text domain                    
35 35
         );    
36 36
     
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_Widget {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
     
21 21
         new APF_Widget( 
22 22
             __( 'Admin Page Framework', 'admin-page-framework-loader' ) // the widget title
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_PostType.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
     public function __construct() {     
20 20
     
21 21
         new APF_PostType( 
22
-            AdminPageFrameworkLoader_Registry::$aPostTypes['demo'],                // the post type slug
23
-            array(),                    // the argument array. Here an empty array is passed because it is defined inside the class.
24
-            APFDEMO_FILE,               // the caller script path.
22
+            AdminPageFrameworkLoader_Registry::$aPostTypes[ 'demo' ], // the post type slug
23
+            array(), // the argument array. Here an empty array is passed because it is defined inside the class.
24
+            APFDEMO_FILE, // the caller script path.
25 25
             'admin-page-framework-loader' // the text domain.
26 26
         );   
27 27
            
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_Widget {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
     
21 21
         new APF_Widget( 
22 22
             __( 'Admin Page Framework', 'admin-page-framework-loader' ) // the widget title
Please login to merge, or discard this patch.
include/class/admin/demo/AdminPageFrameworkLoader_Demo_Widget.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Demo_Widget {
18 18
     
19
-    public function __construct() {     
19
+    public function __construct() {
20 20
     
21 21
         new APF_Widget( 
22 22
             __( 'Admin Page Framework', 'admin-page-framework-loader' ) // the widget title
Please login to merge, or discard this patch.
include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@  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
-        if ( ! is_network_admin() ) {
24
+        if ( !is_network_admin() ) {
25 25
             return;
26 26
         }
27 27
           
28 28
         // Enable / disable the demo pages
29
-        if ( isset( $_GET['enable_apfl_demo_pages'] ) ) {
29
+        if ( isset( $_GET[ 'enable_apfl_demo_pages' ] ) ) {
30 30
             
31 31
             // Update the options and reload the page
32
-            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys['main'] );
33
-            $_oOption->update( 'enable_demo', $_GET['enable_apfl_demo_pages'] );
32
+            $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] );
33
+            $_oOption->update( 'enable_demo', $_GET[ 'enable_apfl_demo_pages' ] );
34 34
             exit( wp_safe_redirect( remove_query_arg( 'enable_apfl_demo_pages' ) ) );
35 35
             
36 36
         }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $this->_getDemoSwitcherLink( $this->oProp->aOptions )
50 50
         );
51 51
         $this->addLinkToPluginDescription(
52
-            "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>" . __( 'Support', 'admin-page-framework-loader' ) . "</a>"
52
+            "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>".__( 'Support', 'admin-page-framework-loader' )."</a>"
53 53
         );
54 54
         
55 55
     }
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
         /**
58 58
          * Returns the switch link of the demo pages.
59 59
          */
60
-        private function _getDemoSwitcherLink( $mOptions=array() ) {
60
+        private function _getDemoSwitcherLink( $mOptions = array() ) {
61 61
             
62
-            $_bEnabled  = isset( $mOptions['enable_demo'] ) && $mOptions['enable_demo'];
63
-            $_sLink    = esc_url( 
62
+            $_bEnabled = isset( $mOptions[ 'enable_demo' ] ) && $mOptions[ 'enable_demo' ];
63
+            $_sLink = esc_url( 
64 64
                 add_query_arg( 
65 65
                     array( 
66 66
                         'enable_apfl_demo_pages' => $_bEnabled ? 0 : 1,
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
                 )
69 69
             );        
70 70
             return $_bEnabled
71
-                ? "<a href='{$_sLink}'>" . __( 'Disable Demo', 'admin-page-framework-loader' ) . "</a>"
72
-                : "<a href='{$_sLink}'><strong style='font-size: 1em;'>" . __( 'Enable Demo', 'admin-page-framework-loader' ) . "</strong></a>";
71
+                ? "<a href='{$_sLink}'>".__( 'Disable Demo', 'admin-page-framework-loader' )."</a>"
72
+                : "<a href='{$_sLink}'><strong style='font-size: 1em;'>".__( 'Enable Demo', 'admin-page-framework-loader' )."</strong></a>";
73 73
             
74 74
         }            
75 75
 
Please login to merge, or discard this patch.
include/class/boot/AdminPageFrameworkLoader_Bootstrap.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * 
11 11
  */
12 12
 
13
-if ( ! class_exists( 'AdminPageFramework_PluginBootstrap' ) ) {
13
+if ( !class_exists( 'AdminPageFramework_PluginBootstrap' ) ) {
14 14
     return;
15 15
 }
16 16
  
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
         
32 32
         // Include the include lists. The including file reassigns the list(array) to the $_aClassFiles variable.
33 33
         $_aClassFiles   = array();
34
-        $_bLoaded       = include( dirname( $this->sFilePath ) . '/include/admin-page-framework-loader-include-class-file-list.php' );
35
-        if ( ! $_bLoaded ) {
34
+        $_bLoaded       = include( dirname( $this->sFilePath ).'/include/admin-page-framework-loader-include-class-file-list.php' );
35
+        if ( !$_bLoaded ) {
36 36
             return $_aClassFiles;
37 37
         }
38 38
         return $_aClassFiles;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             if ( $_oRequirementCheck->check() ) {            
62 62
                 $_oRequirementCheck->deactivatePlugin( 
63 63
                     $this->sFilePath, 
64
-                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
64
+                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ), // additional message
65 65
                     true    // is in the activation hook. This will exit the script.
66 66
                 );
67 67
             }        
@@ -76,20 +76,20 @@  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
         
83 83
         load_plugin_textdomain( 
84 84
             AdminPageFrameworkLoader_Registry::TEXT_DOMAIN, 
85 85
             false, 
86
-            dirname( plugin_basename( $this->sFilePath ) ) . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
86
+            dirname( plugin_basename( $this->sFilePath ) ).'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
87 87
         );
88 88
             
89 89
         load_plugin_textdomain( 
90 90
             'admin-page-framework', 
91 91
             false, 
92
-            dirname( plugin_basename( $this->sFilePath ) ) . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
92
+            dirname( plugin_basename( $this->sFilePath ) ).'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
93 93
         );        
94 94
         
95 95
     }        
@@ -112,33 +112,33 @@  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
             new AdminPageFrameworkLoader_AdminPageMetaBox_Notification(
120
-                null,                                           // meta box id - passing null will make it auto generate
120
+                null, // meta box id - passing null will make it auto generate
121 121
                 __( 'Notification', 'admin-page-framework-loader' ), // title
122 122
                 array( // page slugs
123 123
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'tool' ],
124 124
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'addon' ],
125 125
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
126 126
                 ),
127
-                'side',                                       // context
127
+                'side', // context
128 128
                 'default'                                     // priority
129 129
             );       
130 130
             new AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks(
131
-                null,                                           // meta box id - passing null will make it auto generate
131
+                null, // meta box id - passing null will make it auto generate
132 132
                 __( 'Resources', 'admin-page-framework-loader' ), // title
133 133
                 array( // page slugs
134 134
                     AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ],
135 135
                 ),
136
-                'side',                                       // context
136
+                'side', // context
137 137
                 'default'                                     // priority            
138 138
             );
139 139
             
140 140
             new AdminPageFrameworkLoader_NetworkAdmin(
141
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
141
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
142 142
                 $this->sFilePath   // caller script path            
143 143
             );
144 144
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
          */
158 158
         private function _shouldShowAdminPages() {
159 159
             
160
-            if ( ! $this->bIsAdmin ) {
160
+            if ( !$this->bIsAdmin ) {
161 161
                 return false;
162 162
             }
163 163
             if ( defined( 'APFL_SILENT_MODE' ) && APFL_SILENT_MODE ) {
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.