Passed
Branch dev (235761)
by
unknown
21:12
created
factory/admin_page/_view/AdminPageFramework_View__PageMetaboxEnabler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
          */
51 51
         public function _replyToEnableMetaBox() {
52 52
 
53
-            if ( ! $this->_isMetaBoxAdded() ) {
53
+            if ( !$this->_isMetaBoxAdded() ) {
54 54
                 return;
55 55
             }
56 56
 
57
-            $_sCurrentScreenID =  $this->getCurrentScreenID();
57
+            $_sCurrentScreenID = $this->getCurrentScreenID();
58 58
 
59 59
             // Trigger the add_meta_boxes hooks to allow meta boxes to be added.
60 60
             do_action( "add_meta_boxes_{$_sCurrentScreenID}", null );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             // the network admin adds '-network' in the screen ID and the hooks with that id won't be triggered so use the 'page_hook' global variable.
85 85
             if ( isset( $GLOBALS[ 'page_hook' ] ) ) {
86 86
                 add_action(
87
-                    "admin_footer-{$GLOBALS['page_hook']}",
87
+                    "admin_footer-{$GLOBALS[ 'page_hook' ]}",
88 88
                     array( $this, '_replyToAddMetaboxScript' )
89 89
                 );
90 90
             }
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
                 }
109 109
 
110 110
                 $_sPageSlug = $this->getHTTPQueryGET( 'page', '' );
111
-                if ( ! $_sPageSlug ) {
111
+                if ( !$_sPageSlug ) {
112 112
                     return false;
113 113
                 }
114 114
 
115
-                foreach( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) {
115
+                foreach ( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) {
116 116
                     if ( $this->_isPageOfMetaBox( $_sPageSlug, $_oMetaBox ) ) {
117 117
                         return true;
118 118
                     }
@@ -130,10 +130,10 @@  discard block
 block discarded – undo
130 130
                  */
131 131
                 private function _isPageOfMetaBox( $sPageSlug, $oMetaBox ) {
132 132
 
133
-                    if ( in_array( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) {
133
+                    if ( in_array( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) {
134 134
                         return true; // for numeric keys with a string value.
135 135
                     }
136
-                    if ( ! array_key_exists( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) {
136
+                    if ( !array_key_exists( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) {
137 137
                         return false; // for keys of page slugs, the key does not exist, it means not added.
138 138
                     }
139 139
 
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta_Model.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,21 +63,21 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function _replyToSaveFieldValues( $iUserID ) {
65 65
 
66
-        if ( ! current_user_can( 'edit_user', $iUserID ) ) {
66
+        if ( !current_user_can( 'edit_user', $iUserID ) ) {
67 67
             return;
68 68
         }
69 69
 
70 70
         // Extract the fields' data from `$_POST`
71 71
         // Retrieve the submitted data.
72
-        $_aInputs       = $this->oForm->getSubmittedData(
73
-            $this->oForm->getHTTPRequestSanitized( $this->oForm->getHTTPRequestSanitized( $_POST, false ) ),     // subject data to be parsed // sanitization done
74
-            true,       // extract data with the fieldset structure
72
+        $_aInputs = $this->oForm->getSubmittedData(
73
+            $this->oForm->getHTTPRequestSanitized( $this->oForm->getHTTPRequestSanitized( $_POST, false ) ), // subject data to be parsed // sanitization done
74
+            true, // extract data with the fieldset structure
75 75
             false       // strip slashes
76 76
         );
77
-        $_aInputsRaw    = $_aInputs; // store one for the last input array.
77
+        $_aInputsRaw = $_aInputs; // store one for the last input array.
78 78
 
79 79
         // Prepare the saved data. For a new post, the id is set to 0.
80
-        $_aSavedMeta   = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) );
80
+        $_aSavedMeta = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) );
81 81
 
82 82
         // Apply filters to the array of the submitted values.
83 83
         $_aInputs = $this->oUtil->addAndApplyFilters(
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         $this->oForm->updateMetaDataByType(
100
-            $iUserID,  // object id
101
-            $_aInputs,  // user submit form data
100
+            $iUserID, // object id
101
+            $_aInputs, // user submit form data
102 102
             $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array.
103 103
             $this->oForm->sStructureType   // fields type
104 104
         );
Please login to merge, or discard this patch.
AdminPageFramework_Model__FormSubmission__Validator__ContactForm.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class AdminPageFramework_Model__FormSubmission__Validator__ContactForm extends AdminPageFramework_Model__FormSubmission__Validator_Base {
18 18
 
19
-    public $sActionHookPrefix = 'try_validation_after_';    // 3.7.6 Changed it from `try_validation_before_`
19
+    public $sActionHookPrefix = 'try_validation_after_'; // 3.7.6 Changed it from `try_validation_before_`
20 20
     public $iHookPriority = 10;
21 21
     public $iCallbackParameters = 5;
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
34 34
 
35 35
         // Check whether sending an email has been confirmed by the user or not.
36
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
36
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
37 37
             return;
38 38
         }
39 39
 
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
             $this->getElement( $aSubmitInformation, 'section_id' )
45 45
         );
46 46
         $this->oFactory->oProp->_bDisableSavingOptions = true;
47
-        $this->deleteTransient( 'apf_tfd' . md5( 'temporary_form_data_' . $this->oFactory->oProp->sClassName . get_current_user_id() ) );
47
+        $this->deleteTransient( 'apf_tfd'.md5( 'temporary_form_data_'.$this->oFactory->oProp->sClassName.get_current_user_id() ) );
48 48
 
49 49
         // Schedule to remove the confirmation url query key.
50 50
         add_action( "setting_update_url_{$this->oFactory->oProp->sClassName}", array( $this, '_replyToRemoveConfirmationQueryKey' ) );
51 51
 
52 52
         // Go to the catch clause.
53
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clause.
53
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clause.
54 54
         $_oException->aReturn = $aInputs;
55 55
         throw $_oException;
56 56
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
          */
86 86
         private function ___sendEmail( $aInputs, $sPressedInputNameFlat, $sSubmitSectionID ) {
87 87
 
88
-            $_sTransientKey = 'apf_em_' . md5( $sPressedInputNameFlat . get_current_user_id() );
88
+            $_sTransientKey = 'apf_em_'.md5( $sPressedInputNameFlat.get_current_user_id() );
89 89
             $_aEmailOptions = $this->getTransient( $_sTransientKey );
90 90
             $this->deleteTransient( $_sTransientKey );
91 91
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'name'          => '',
102 102
             );
103 103
 
104
-            if ( false === wp_verify_nonce( $_aEmailOptions[ 'nonce' ], 'apf_email_nonce_' . md5( ( string ) site_url() ) ) ) {
104
+            if ( false === wp_verify_nonce( $_aEmailOptions[ 'nonce' ], 'apf_email_nonce_'.md5( ( string ) site_url() ) ) ) {
105 105
                 $this->oFactory->setSettingNotice(
106 106
                     $this->oFactory->oMsg->get( 'nonce_verification_failed' ),
107 107
                     'error'
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
          * @return      string
137 137
          */
138 138
         public function _replyToRemoveConfirmationQueryKey( $sSettingUpdateURL ) {
139
-            return remove_query_arg( array( 'confirmation', ), $sSettingUpdateURL );
139
+            return remove_query_arg( array( 'confirmation',), $sSettingUpdateURL );
140 140
         }
141 141
 
142 142
 }
Please login to merge, or discard this patch.
include/loader-class-map.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@
 block discarded – undo
1 1
 <?php 
2 2
 return array(
3
-    "GitHubCustomFieldType" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
-    "AdminPageFrameworkLoader_Bootstrap" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
-    "AdminPageFrameworkLoader_AdminPage" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
-    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
-    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
-    "AdminPageFrameworkLoader_AdminPage_Addon" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
-    "AdminPageFrameworkLoader_AdminPage_Addon_Top" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
-    "AdminPageFrameworkLoader_AdminPage_Help" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
-    "AdminPageFrameworkLoader_AdminPage_Help_About" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
-    "AdminPageFrameworkLoader_AdminPage_Help_Debug" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
-    "AdminPageFrameworkLoader_AdminPage_Help_Example" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
-    "AdminPageFrameworkLoader_AdminPage_Help_FAQ" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
-    "AdminPageFrameworkLoader_AdminPage_Help_Guide" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
-    "AdminPageFrameworkLoader_AdminPage_Help_Information" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
-    "AdminPageFrameworkLoader_AdminPage_Help_Report" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
-    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
-    "AdminPageFrameworkLoader_AdminPage_Help_Tip" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
-    "AdminPageFrameworkLoader_AdminPage_Tool" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler.php", 
22
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler.php", 
23
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php", 
24
-    "AdminPageFrameworkLoader_AdminPageWelcome" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
25
-    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
26
-    "AdminPageFrameworkLoader_Demo" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
27
-    "AdminPageFrameworkLoader_NetworkAdmin" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
28
-    "AdminPageFrameworkLoader_AdminPage_Page_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
29
-    "AdminPageFrameworkLoader_AdminPage_RootBase" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
30
-    "AdminPageFrameworkLoader_AdminPage_Section_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
31
-    "AdminPageFrameworkLoader_AdminPage_Tab_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
32
-    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
33
-    "AdminPageFrameworkLoader_Event" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event.php", 
34
-    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
35
-    "AdminPageFrameworkLoader_Option" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/option/AdminPageFrameworkLoader_Option.php", 
36
-    "AdminPageFrameworkLoader_FeedList" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
37
-    "AdminPageFrameworkLoader_Utility" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
3
+    "GitHubCustomFieldType" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
+    "AdminPageFrameworkLoader_Bootstrap" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
+    "AdminPageFrameworkLoader_AdminPage" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
+    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
+    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
+    "AdminPageFrameworkLoader_AdminPage_Addon" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
+    "AdminPageFrameworkLoader_AdminPage_Addon_Top" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
+    "AdminPageFrameworkLoader_AdminPage_Help" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
+    "AdminPageFrameworkLoader_AdminPage_Help_About" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
+    "AdminPageFrameworkLoader_AdminPage_Help_Debug" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
+    "AdminPageFrameworkLoader_AdminPage_Help_Example" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
+    "AdminPageFrameworkLoader_AdminPage_Help_FAQ" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
+    "AdminPageFrameworkLoader_AdminPage_Help_Guide" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
+    "AdminPageFrameworkLoader_AdminPage_Help_Information" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
+    "AdminPageFrameworkLoader_AdminPage_Help_Report" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
+    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
+    "AdminPageFrameworkLoader_AdminPage_Help_Tip" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
+    "AdminPageFrameworkLoader_AdminPage_Tool" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler.php", 
22
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler.php", 
23
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php", 
24
+    "AdminPageFrameworkLoader_AdminPageWelcome" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
25
+    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
26
+    "AdminPageFrameworkLoader_Demo" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
27
+    "AdminPageFrameworkLoader_NetworkAdmin" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
28
+    "AdminPageFrameworkLoader_AdminPage_Page_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
29
+    "AdminPageFrameworkLoader_AdminPage_RootBase" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
30
+    "AdminPageFrameworkLoader_AdminPage_Section_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
31
+    "AdminPageFrameworkLoader_AdminPage_Tab_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
32
+    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
33
+    "AdminPageFrameworkLoader_Event" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event.php", 
34
+    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
35
+    "AdminPageFrameworkLoader_Option" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/option/AdminPageFrameworkLoader_Option.php", 
36
+    "AdminPageFrameworkLoader_FeedList" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
37
+    "AdminPageFrameworkLoader_Utility" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
38 38
 );
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@
 block discarded – undo
372 372
                                     'class_prefix' // field id
373 373
                                 ),
374 374
                                 ''
375
-                             ) );
375
+                                ) );
376 376
                             array_walk( $_aPrefixedClassNames, array( $this, '___replyToSetPrefix' ), $_sPrefix );
377 377
                             return $_aPrefixedClassNames;
378 378
 
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         /// [3.9.0] Insert checked custom field types in the file comment header
87 87
         add_filter(
88
-            AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_header_comment',
88
+            AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_header_comment',
89 89
             array( $this, 'replyToGetAdditionalHeaderComment' )
90 90
         );
91 91
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                     'class_name'           => 'AceCustomFieldType',
102 102
                     'label'                => __( 'ACE', 'admin-page-framework-loader' ),
103 103
                     'description'          => __( 'provides code syntax highlighting in a text area field.', 'admin-page-framework-loader' ),
104
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type',
104
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/ace-custom-field-type',
105 105
                     'archive_file_path'    => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php',
106 106
                     'archive_dir_path'     => 'custom-field-types/ace-custom-field-type',
107 107
                     'text_domain'          => 'admin-page-framework',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                     'class_name'           => 'GitHubCustomFieldType',
111 111
                     'label'                => __( 'GitHub Buttons', 'admin-page-framework-loader' ),
112 112
                     'description'          => __( 'allows you to display GitHub buttons in a field.', 'admin-page-framework-loader' ),
113
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type',
113
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/include/library/github-custom-field-type',
114 114
                     'archive_file_path'    => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php',
115 115
                     'archive_dir_path'     => 'custom-field-types/github-custom-field-type',
116 116
                     'text_domain'          => 'admin-page-framework',
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                     'class_name'           => 'PathCustomFieldType',
120 120
                     'label'                => __( 'Path', 'admin-page-framework-loader' ),
121 121
                     'description'          => __( 'allows the user to select a file path on the server.', 'admin-page-framework-loader' ),
122
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/path-custom-field-type',
122
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/path-custom-field-type',
123 123
                     'archive_file_path'    => 'custom-field-types/path-custom-field-type/PathCustomFieldType.php',
124 124
                     'archive_dir_path'     => 'custom-field-types/path-custom-field-type',
125 125
                     'text_domain'          => 'admin-page-framework',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     'class_name'           => 'ToggleCustomFieldType',
129 129
                     'label'                => __( 'Toggle', 'admin-page-framework-loader' ),
130 130
                     'description'          => __( 'allows the user to switch a button.', 'admin-page-framework-loader' ),
131
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/toggle-custom-field-type',
131
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/toggle-custom-field-type',
132 132
                     'archive_file_path'    => 'custom-field-types/toggle-custom-field-type/ToggleCustomFieldType.php',
133 133
                     'archive_dir_path'     => 'custom-field-types/toggle-custom-field-type',
134 134
                     'text_domain'          => 'admin-page-framework',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                     'class_name'           => 'NoUISliderCustomFieldType',
138 138
                     'label'                => __( 'NoUISlider (Range Slider)', 'admin-page-framework-loader' ),
139 139
                     'description'          => __( 'allows the user to set values in ranges.', 'admin-page-framework-loader' ),
140
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/nouislider-custom-field-type',
140
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/nouislider-custom-field-type',
141 141
                     'archive_file_path'    => 'custom-field-types/nouislider-custom-field-type/NoUISliderCustomFieldType.php',
142 142
                     'archive_dir_path'     => 'custom-field-types/nouislider-custom-field-type',
143 143
                     'text_domain'          => 'admin-page-framework',
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                     'class_name'           => 'Select2CustomFieldType',
147 147
                     'label'                => __( 'Select2', 'admin-page-framework-loader' ),
148 148
                     'description'          => __( 'allows the user to select items with autocomplete from a list which can be populated with AJAX.', 'admin-page-framework-loader' ),
149
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/select2-custom-field-type',
149
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/select2-custom-field-type',
150 150
                     'archive_file_path'    => 'custom-field-types/select2-custom-field-type/Select2CustomFieldType.php',
151 151
                     'archive_dir_path'     => 'custom-field-types/select2-custom-field-type',
152 152
                     'text_domain'          => 'admin-page-framework',
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     'class_name'           => 'PostTypeTaxonomyCustomFieldType',
156 156
                     'label'                => __( 'Post Type Taxonomy', 'admin-page-framework-loader' ),
157 157
                     'description'          => __( 'allows the user to select taxonomy terms of selected post types.', 'admin-page-framework-loader' ),
158
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/post_type_taxonomy_field-type',
158
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/post_type_taxonomy_field-type',
159 159
                     'archive_file_path'    => 'custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php',
160 160
                     'archive_dir_path'     => 'custom-field-types/post_type_taxonomy_field-type',
161 161
                     'text_domain'          => 'admin-page-framework',
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
 
165 165
             // Let third-party scripts add custom field types.
166 166
             $this->aCustomFieldTypes = apply_filters(
167
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
167
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
168 168
                 $this->aCustomFieldTypes
169 169
             );
170 170
 
171
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
171
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
172 172
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
173
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
173
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
174 174
             }
175 175
 
176 176
         }
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
 
187 187
                 // Check the file extension.
188 188
                 $_aAllowedExtensions = apply_filters(
189
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
189
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
190 190
                     array( 'php', 'css', 'js' )
191 191
                 );
192
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions, true ) ) {
192
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions, true ) ) {
193 193
                     return $sFileContents;
194 194
                 }
195 195
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 private function ___getModifiedIncludeList( $sFileContents ) {
220 220
                     return str_replace(
221 221
                         ');', // search
222
-                        $this->___getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
222
+                        $this->___getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
223 223
                         $sFileContents // subject
224 224
                     );
225 225
                 }
@@ -234,18 +234,18 @@  discard block
 block discarded – undo
234 234
                             $_POST,
235 235
                             array(
236 236
                                 $this->oFactory->oProp->sOptionKey,
237
-                                'compiler',    // section id
237
+                                'compiler', // section id
238 238
                                 'class_prefix'  // field id
239 239
                             ),
240 240
                             ''
241 241
                         ) );
242 242
                         $_aOutput = array();
243
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
244
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
243
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
244
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
245 245
                                 . ' => '
246
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
246
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
247 247
                         }
248
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
248
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
249 249
 
250 250
                     }
251 251
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                  */
261 261
                 private function ___getClassNameIfSelected( $sPathInArchive ) {
262 262
                     $_aSelectedCustomFieldTypes = $this->___getSelectedCustomFieldTypes( $this->aCustomFieldTypes );
263
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
263
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
264 264
                         $_sThisArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCustomFieldType, 'archive_dir_path' );
265 265
                         if ( false !== strpos( $sPathInArchive, $_sThisArchiveDirPath ) ) {
266 266
                             return $_sClassName;
@@ -308,17 +308,17 @@  discard block
 block discarded – undo
308 308
                         array( $sParsingClassName, 'text_domain' )
309 309
                     );
310 310
                     if ( $_sFieldTypeTextDomain ) {
311
-                        $_aSearches[] = $_sFieldTypeTextDomain;
312
-                        $_aReplaces[] = $_sUserTextDomain;
311
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
312
+                        $_aReplaces[ ] = $_sUserTextDomain;
313 313
                     }
314 314
 
315
-                    $_aSearches[] = 'admin-page-framework';
316
-                    $_aReplaces[] = $_sUserTextDomain;
315
+                    $_aSearches[ ] = 'admin-page-framework';
316
+                    $_aReplaces[ ] = $_sUserTextDomain;
317 317
 
318 318
                     // Return the converted string.
319 319
                     return str_replace(
320
-                        $_aSearches,    // search
321
-                        $_aReplaces,    // replace
320
+                        $_aSearches, // search
321
+                        $_aReplaces, // replace
322 322
                         $sFileContents  // subject
323 323
                     );
324 324
 
@@ -336,8 +336,8 @@  discard block
 block discarded – undo
336 336
                         );
337 337
 
338 338
                         return preg_replace(
339
-                            $this->___getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ),    // search
340
-                            $this->___getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ),    // replace
339
+                            $this->___getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ), // search
340
+                            $this->___getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ), // replace
341 341
                             $sFileContents  // subject
342 342
                         );
343 343
 
@@ -350,8 +350,8 @@  discard block
 block discarded – undo
350 350
                         private function ___getClassPrefixRegexPatterns( array $aSelectedFieldTypeClassNames ) {
351 351
 
352 352
                             $_aPregSearches = array();
353
-                            foreach( $aSelectedFieldTypeClassNames as $_sClassName ) {
354
-                                $_aPregSearches[] = '/(?<=[^a-zA-Z0-9])(' . $_sClassName . ')/';
353
+                            foreach ( $aSelectedFieldTypeClassNames as $_sClassName ) {
354
+                                $_aPregSearches[ ] = '/(?<=[^a-zA-Z0-9])('.$_sClassName.')/';
355 355
                             }
356 356
                             return $_aPregSearches;
357 357
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                              * @callback array_walk()
385 385
                              */
386 386
                             private function ___replyToSetPrefix( &$sClassName, $sKey, $sPrefix ) {
387
-                                $sClassName = $sPrefix . '$0';
387
+                                $sClassName = $sPrefix.'$0';
388 388
                             }
389 389
 
390 390
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
407 407
                 $_aCheckedCustomFieldTypes = $this->___getSelectedCustomFieldTypes( $this->aCustomFieldTypes );
408 408
                 $_aDirPathInfo             = array();
409
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
409
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
410 410
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
411 411
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
412 412
                     $_aDirPathInfo[ $_sArchiveDirPath ] = $_sSourceDirPath;
@@ -417,9 +417,9 @@  discard block
 block discarded – undo
417 417
                  * @return array The array keys of the checked items.
418 418
                  * @since  3.6.0
419 419
                  */
420
-                private function ___getSelectedCustomFieldTypes( array $aSubject=array() ) {
421
-                    static $_aCheckedCustomFieldTypes;  // cache
422
-                    if ( ! isset( $_aCheckedCustomFieldTypes ) ) {
420
+                private function ___getSelectedCustomFieldTypes( array $aSubject = array() ) {
421
+                    static $_aCheckedCustomFieldTypes; // cache
422
+                    if ( !isset( $_aCheckedCustomFieldTypes ) ) {
423 423
                         $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
424 424
                             $_POST,
425 425
                             array(
@@ -444,13 +444,13 @@  discard block
 block discarded – undo
444 444
      */
445 445
     public function replyToGetAdditionalHeaderComment( $sComment ) {
446 446
         $_aCustomFieldTypeLabels = array();
447
-        foreach( $this->___getCheckedCustomFieldTypeKeys() as $_sCheckedKey ) {
447
+        foreach ( $this->___getCheckedCustomFieldTypeKeys() as $_sCheckedKey ) {
448 448
             $_sThisLabel = $this->oFactory->oUtil->getElement( $this->aCustomFieldTypes, array( $_sCheckedKey, 'label' ) );
449
-            $_aCustomFieldTypeLabels[] = strlen( $_sThisLabel ) ? $_sThisLabel : $_sCheckedKey;
449
+            $_aCustomFieldTypeLabels[ ] = strlen( $_sThisLabel ) ? $_sThisLabel : $_sCheckedKey;
450 450
         }
451 451
         return empty( $_aCustomFieldTypeLabels )
452 452
             ? $sComment
453
-            : $sComment . PHP_EOL . ' * Custom Field Types: ' . implode( ', ', $_aCustomFieldTypeLabels );
453
+            : $sComment.PHP_EOL.' * Custom Field Types: '.implode( ', ', $_aCustomFieldTypeLabels );
454 454
     }
455 455
         /**
456 456
          * @return string[]
Please login to merge, or discard this patch.
tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $oAdminPage,
27 27
             $this->sPageSlug,
28 28
             array(
29
-                'section_id'    => $this->sTabSlug,       // avoid hyphen(dash), dots, and white spaces
29
+                'section_id'    => $this->sTabSlug, // avoid hyphen(dash), dots, and white spaces
30 30
                 'tab_slug'      => $this->sTabSlug,
31 31
                 'title'         => __( 'Download Framework', 'admin-page-framework-loader' ),
32 32
                 'description'   => array(
Please login to merge, or discard this patch.
include/class/AdminPageFrameworkLoader_Bootstrap.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @since 3.5.0
25 25
      */
26 26
     public function getClasses() {
27
-        return include( dirname( $this->sFilePath ) . '/include/loader-class-map.php' );
27
+        return include( dirname( $this->sFilePath ).'/include/loader-class-map.php' );
28 28
     }
29 29
 
30 30
     /**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             if ( $_oRequirementCheck->check() ) {
48 48
                 $_oRequirementCheck->deactivatePlugin(
49 49
                     $this->sFilePath,
50
-                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
50
+                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ), // additional message
51 51
                     true    // is in the activation hook. This will exit the script.
52 52
                 );
53 53
             }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function setLocalization() {
63 63
 
64 64
         // This plugin does not have messages to be displayed in the front end.
65
-        if ( ! $this->bIsAdmin ) {
65
+        if ( !$this->bIsAdmin ) {
66 66
             return;
67 67
         }
68 68
 
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
         load_plugin_textdomain(
71 71
             AdminPageFrameworkLoader_Registry::TEXT_DOMAIN,
72 72
             false,
73
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
73
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
74 74
         );
75 75
 
76 76
         load_plugin_textdomain(
77 77
             'admin-page-framework',
78 78
             false,
79
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
79
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
80 80
         );
81 81
 
82 82
     }
@@ -99,14 +99,14 @@  discard block
 block discarded – undo
99 99
 
100 100
             // Loader plugin admin pages.
101 101
             new AdminPageFrameworkLoader_AdminPage(
102
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
102
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
103 103
                 $this->sFilePath   // caller script path
104 104
             );
105 105
 
106 106
             // Network admin pages.
107 107
             if ( is_network_admin() ) {
108 108
                 new AdminPageFrameworkLoader_NetworkAdmin(
109
-                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
109
+                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
110 110
                     $this->sFilePath   // caller script path
111 111
                 );
112 112
             }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
          * @since  3.6.4
126 126
          */
127 127
         private function ___shouldShowAdminPages() {
128
-            if ( ! $this->bIsAdmin ) {
128
+            if ( !$this->bIsAdmin ) {
129 129
                 return false;
130 130
             }
131 131
             if ( AdminPageFrameworkLoader_Utility::isSilentMode() ) {
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Stores section set definitions.
40 40
      */
41
-    public $aSectionsets  = array(
41
+    public $aSectionsets = array(
42 42
         '_default' => array(
43 43
             'section_id'    => '_default',
44 44
         ),
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * Stores field set definitions.
49 49
      */
50
-    public $aFieldsets    = array();
50
+    public $aFieldsets = array();
51 51
 
52 52
     /**
53 53
      * Multi-dimensional array holding the saved form data.
54 54
      */
55
-    public $aSavedData    = array();
55
+    public $aSavedData = array();
56 56
 
57 57
     /**
58 58
      * The capability level of the form.
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
      * Each secitonset and fieldset has individual capability. If they are not set,
63 63
      * This value will be applied.
64 64
      */
65
-    public $sCapability = '';       // default - an empty string
65
+    public $sCapability = ''; // default - an empty string
66 66
 
67 67
     /**
68 68
      * Stores callback functions.
69 69
      * Each value will have a callback.
70 70
      */
71
-    public $aCallbacks    = array(
71
+    public $aCallbacks = array(
72 72
 
73 73
         /**
74 74
          * @return      string      The form default capability level.
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
                 'get_form_object' => array( $this, 'replyToGetSelf' ),
272 272
             )
273 273
             + $this->aCallbacks;
274
-        $this->oMsg           = $_aParameters[ 2 ] ? $_aParameters[ 2 ] : new $this->aSubClasses[ 'message' ];
274
+        $this->oMsg = $_aParameters[ 2 ] ? $_aParameters[ 2 ] : new $this->aSubClasses[ 'message' ];
275 275
 
276 276
         // Sub-class objects
277 277
         $this->___setSubClassObjects();
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                 + $this->aArguments;
295 295
             $aArguments[ 'caller_id' ] = $aArguments[ 'caller_id' ]
296 296
                 ? $aArguments[ 'caller_id' ]
297
-                : get_class( $this );  // if a caller id is empty, this class name will be used.
297
+                : get_class( $this ); // if a caller id is empty, this class name will be used.
298 298
 
299 299
             if ( $this->sStructureType ) {
300 300
                 $aArguments[ 'structure_type' ] = $this->sStructureType;
Please login to merge, or discard this patch.
_common/form/_view/resource/AdminPageFramework_Form_View__Resource.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         // Widgets can be called multiple times for the number of user-created widget instances for one class instance
42 42
         // so make sure it is processed only once per page.
43 43
         if ( $this->hasBeenCalled( 'resource_' . $oForm->aArguments[ 'caller_id' ] ) ) {
44
-             return;
44
+                return;
45 45
         }
46 46
 
47 47
         $this->___setHooks();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         /**
129 129
          * @param array $aRegister
130 130
          * @since 3.9.0
131
-        */
131
+         */
132 132
         private function ___registerScript( array $aRegister ) {
133 133
 
134 134
             $aRegister = $aRegister + array(
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         // Widgets can be called multiple times for the number of user-created widget instances for one class instance
42 42
         // so make sure it is processed only once per page.
43
-        if ( $this->hasBeenCalled( 'resource_' . $oForm->aArguments[ 'caller_id' ] ) ) {
43
+        if ( $this->hasBeenCalled( 'resource_'.$oForm->aArguments[ 'caller_id' ] ) ) {
44 44
              return;
45 45
         }
46 46
 
@@ -113,16 +113,16 @@  discard block
 block discarded – undo
113 113
      * @since       3.7.0
114 114
      */
115 115
     public function _replyToEnqueueScripts() {
116
-        if ( ! $this->oForm->isInThePage() ) {
116
+        if ( !$this->oForm->isInThePage() ) {
117 117
             return;
118 118
         }
119 119
         $_aRegister = $this->oForm->getResources( 'register' );
120
-        foreach( $this->getElementAsArray( $_aRegister, array( 'scripts' ) ) as $_iIndex => $_aRegister ) {
120
+        foreach ( $this->getElementAsArray( $_aRegister, array( 'scripts' ) ) as $_iIndex => $_aRegister ) {
121 121
             $this->___registerScript( $_aRegister );
122 122
         }
123
-        foreach( $this->oForm->getResources( 'src_scripts' ) as $_isIndex => $_asEnqueue ) {
123
+        foreach ( $this->oForm->getResources( 'src_scripts' ) as $_isIndex => $_asEnqueue ) {
124 124
             $this->___enqueueScript( $_asEnqueue );
125
-            $this->oForm->unsetResources( array( 'src_scripts', $_isIndex ) );  // no longer needed
125
+            $this->oForm->unsetResources( array( 'src_scripts', $_isIndex ) ); // no longer needed
126 126
         }
127 127
     }
128 128
         /**
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
         private function ___registerScript( array $aRegister ) {
133 133
 
134 134
             $aRegister = $aRegister + array(
135
-                'handle_id'     => '',          'src'       => '',
136
-                'dependencies'  => array(),     'version'   => false,
135
+                'handle_id'     => '', 'src'       => '',
136
+                'dependencies'  => array(), 'version'   => false,
137 137
                 'in_footer'     => false,
138
-                'translation'   => array(),     'translation_var'   => '',
138
+                'translation'   => array(), 'translation_var'   => '',
139 139
             );
140 140
             $_bRegistered = wp_register_script(
141 141
                 $aRegister[ 'handle_id' ],
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 $aRegister[ 'version' ],
145 145
                 $aRegister[ 'in_footer' ]
146 146
             );
147
-            if ( $_bRegistered && ! empty( $aRegister[ 'translation' ] ) ) {
147
+            if ( $_bRegistered && !empty( $aRegister[ 'translation' ] ) ) {
148 148
                 wp_localize_script(
149 149
                     $aRegister[ 'handle_id' ],
150 150
                     $aRegister[ 'translation_var' ] ? $aRegister[ 'translation_var' ] : $aRegister[ 'translation_var' ],
@@ -166,12 +166,12 @@  discard block
 block discarded – undo
166 166
 
167 167
             $_sSetHandleID = $this->getElement( $this->getAsArray( $asEnqueue ), 'handle_id', '' );
168 168
             $_aEnqueueItem = $this->___getFormattedEnqueueScript( $asEnqueue );
169
-            $_sCacheID     = $_sSetHandleID . $this->getElement( $_aEnqueueItem, 'src', '' );
169
+            $_sCacheID     = $_sSetHandleID.$this->getElement( $_aEnqueueItem, 'src', '' );
170 170
 
171 171
             // Do not load the same items multiple times.
172 172
             // Checking if src is not empty is because there is a case that src is empty to just use handle ID to enqueue an item
173 173
             // Allow same SRCs as field types extends another field type and script can have the same resource but with a different handle ID and translations.
174
-            if ( ! empty( $_sCacheID ) && isset( self::$_aEnqueued[ $_sCacheID ] ) ) {
174
+            if ( !empty( $_sCacheID ) && isset( self::$_aEnqueued[ $_sCacheID ] ) ) {
175 175
                 return;
176 176
             }
177 177
             self::$_aEnqueued[ $_sCacheID ] = $_aEnqueueItem;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             private function ___getFormattedEnqueueScript( $asEnqueue ) {
203 203
                 static $_iCallCount = 1;
204 204
                 $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array(
205
-                    'handle_id'         => 'admin-page-framework-script-form-' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount,
205
+                    'handle_id'         => 'admin-page-framework-script-form-'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount,
206 206
                     'src'               => null,
207 207
                     'dependencies'      => null,
208 208
                     'version'           => null,
@@ -227,14 +227,14 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function _replyToEnqueueStyles() {
229 229
 
230
-        if ( ! $this->oForm->isInThePage() ) {
230
+        if ( !$this->oForm->isInThePage() ) {
231 231
             return;
232 232
         }
233 233
         $_aRegister = $this->oForm->getResources( 'register' );
234
-        foreach( $this->getElementAsArray( $_aRegister, array( 'styles' ) ) as $_iIndex => $_aRegister ) {
234
+        foreach ( $this->getElementAsArray( $_aRegister, array( 'styles' ) ) as $_iIndex => $_aRegister ) {
235 235
             $this->___registerStyle( $_aRegister );
236 236
         }
237
-        foreach( $this->oForm->getResources( 'src_styles' ) as $_isIndex => $_asEnqueueItem ) {
237
+        foreach ( $this->oForm->getResources( 'src_styles' ) as $_isIndex => $_asEnqueueItem ) {
238 238
             $this->___enqueueStyle( $_asEnqueueItem );
239 239
             $this->oForm->unsetResources( array( 'src_styles', $_isIndex ) ); // no longer needed
240 240
         }
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
          */
247 247
         private function ___registerStyle( array $aRegister ) {
248 248
             $_aRegister = $aRegister + array(
249
-                'handle_id'     => null,     'src'           => null,
250
-                'dependencies'  => array(),  'version'       => false,
249
+                'handle_id'     => null, 'src'           => null,
250
+                'dependencies'  => array(), 'version'       => false,
251 251
                 'media'         => 'all',
252 252
             );
253 253
             wp_register_style(
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
                 $_aEnqueueItem[ 'media' ]
273 273
             );
274 274
             $_aAddData = array( 'conditional', 'rtl', 'suffix', 'alt', 'title' );
275
-            foreach( $_aAddData as $_sDataKey ) {
276
-                if ( ! isset( $aEnqueueItem[ $_sDataKey ] ) ) {
275
+            foreach ( $_aAddData as $_sDataKey ) {
276
+                if ( !isset( $aEnqueueItem[ $_sDataKey ] ) ) {
277 277
                     continue;
278 278
                 }
279 279
                 wp_style_add_data( $aEnqueueItem[ 'handle_id' ], $_sDataKey, $aEnqueueItem[ $_sDataKey ] );
@@ -285,12 +285,12 @@  discard block
 block discarded – undo
285 285
             private function ___getFormattedEnqueueStyle( $asEnqueue ) {
286 286
                 static $_iCallCount = 1;
287 287
                 $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array(
288
-                    'handle_id'     => 'admin-page-framework-style-form-' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount,
289
-                    'src'           => null,    'dependencies'  => null,
290
-                    'version'       => null,    'media'         => null,
288
+                    'handle_id'     => 'admin-page-framework-style-form-'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount,
289
+                    'src'           => null, 'dependencies'  => null,
290
+                    'version'       => null, 'media'         => null,
291 291
                     'conditional'   => null,
292
-                    'rtl'           => null,    'suffix'        => null,
293
-                    'alt'           => null,    'title'         => null,
292
+                    'rtl'           => null, 'suffix'        => null,
293
+                    'alt'           => null, 'title'         => null,
294 294
                 );
295 295
                 if ( is_string( $asEnqueue ) ) {
296 296
                     $_aEnqueueItem[ 'src' ] = $asEnqueue;
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
                 $_sSRCRaw = wp_normalize_path( $aEnqueueItem[ 'src' ] );
316 316
                 $_sSRC    = $this->getResolvedSRC( $_sSRCRaw ); // at this point, it is a URL
317 317
 
318
-                if ( ! $this->oForm->aArguments[ 'autoload_min_resource' ] ) {
318
+                if ( !$this->oForm->aArguments[ 'autoload_min_resource' ] ) {
319 319
                     return $_sSRC;
320 320
                 }
321 321
 
@@ -341,16 +341,16 @@  discard block
 block discarded – undo
341 341
                     + array( 'dirname' => '', 'filename' => '', 'basename' => '', 'extension' => '' ); // avoid undefined index warnings
342 342
 
343 343
                 // If there is no extension, avoid using a minified version.
344
-                if ( ! $_aPathParts[ 'extension' ] ) {
344
+                if ( !$_aPathParts[ 'extension' ] ) {
345 345
                     return $_sSRC;
346 346
                 }
347 347
 
348 348
                 $_aPathPartsURL = pathinfo( $_sSRC )
349 349
                     + array( 'dirname' => '', 'filename' => '', 'basename' => '', 'extension' => '' ); // avoid undefined index warnings
350 350
 
351
-                $_sPathMinifiedVersion = $_aPathParts[ 'dirname' ] . '/' . $_aPathParts[ 'filename' ] . $_sMinPrefix . '.' . $_aPathParts[ 'extension' ];
351
+                $_sPathMinifiedVersion = $_aPathParts[ 'dirname' ].'/'.$_aPathParts[ 'filename' ].$_sMinPrefix.'.'.$_aPathParts[ 'extension' ];
352 352
                 return file_exists( $_sPathMinifiedVersion )
353
-                    ? $_aPathPartsURL[ 'dirname' ] . '/' . $_aPathPartsURL[ 'filename' ] . $_sMinPrefix . '.' . $_aPathPartsURL[ 'extension' ]
353
+                    ? $_aPathPartsURL[ 'dirname' ].'/'.$_aPathPartsURL[ 'filename' ].$_sMinPrefix.'.'.$_aPathPartsURL[ 'extension' ]
354 354
                     : $_sSRC;
355 355
 
356 356
             }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function _replyToAddStyle() {
367 367
 
368
-        if ( ! $this->oForm->isInThePage() ) {
368
+        if ( !$this->oForm->isInThePage() ) {
369 369
             return;
370 370
         }
371 371
         $_sCSSRules = $this->___getFormattedInternalStyles(
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      */
408 408
     public function _replyToAddScript() {
409 409
 
410
-        if ( ! $this->oForm->isInThePage() ) {
410
+        if ( !$this->oForm->isInThePage() ) {
411 411
             return;
412 412
         }
413 413
 
Please login to merge, or discard this patch.