Completed
Branch master (a559c4)
by
unknown
05:07
created
development/factory/admin_page/model/AdminPageFramework_ExportOptions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
      * @since       2.0.0
95 95
      * @since       3.5.4       Added the `$aHeader` parameter. Deprecated the `$sFileName` parameter as it is included in the $aHeader definition.
96 96
      */ 
97
-    public function doExport( $vData, $sFormatType=null, array $aHeader=array() ) {
97
+    public function doExport( $vData, $sFormatType = null, array $aHeader = array() ) {
98 98
 
99
-        $sFormatType    = isset( $sFormatType ) 
99
+        $sFormatType = isset( $sFormatType ) 
100 100
             ? $sFormatType 
101 101
             : $this->sFormatType;
102 102
 
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
          * @since       3.5.4
123 123
          * @return      void
124 124
          */
125
-        private function _outputHTTPHeader( array $aHeader, $sKey='' ) {
125
+        private function _outputHTTPHeader( array $aHeader, $sKey = '' ) {
126 126
             
127
-            foreach( $aHeader as $_sKey => $_asValue ) {
127
+            foreach ( $aHeader as $_sKey => $_asValue ) {
128 128
                 
129 129
                 // Nested items. Set the key to overrider array keys.
130 130
                 if ( is_array( $_asValue ) ) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                     return;
165 165
                 case 'json': // for json.
166 166
                     echo json_encode( ( array ) $vData );
167
-                    return ;
167
+                    return;
168 168
                 case 'array': // for serialized PHP array.
169 169
                 default: // for anything else, 
170 170
                     echo serialize( ( array ) $vData );
Please login to merge, or discard this patch.
admin_page/model/delegate/AdminPageFramework_Model_FormEmailHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function __construct( $oFactory ) {
30 30
        
31
-        $this->oFactory         = $oFactory;        
31
+        $this->oFactory = $oFactory;        
32 32
 
33 33
         // Form emails.
34
-        if ( ! isset( $_GET[ 'apf_action' ], $_GET[ 'transient' ] ) ) {
34
+        if ( !isset( $_GET[ 'apf_action' ], $_GET[ 'transient' ] ) ) {
35 35
             return;
36 36
         }
37
-        if ( 'email' !== $_GET['apf_action'] ) {
37
+        if ( 'email' !== $_GET[ 'apf_action' ] ) {
38 38
             return;
39 39
         }
40 40
       
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
             self::$_bDoneEmail = true;
74 74
 
75 75
             $_sTransient = $this->getElement( $_GET, 'transient', '' );
76
-            if ( ! $_sTransient ) {
76
+            if ( !$_sTransient ) {
77 77
                 return;
78 78
             }
79 79
             $_aFormEmail = $this->getTransient( $_sTransient );
80 80
             $this->deleteTransient( $_sTransient );
81
-            if ( ! is_array( $_aFormEmail ) ) {
81
+            if ( !is_array( $_aFormEmail ) ) {
82 82
                 return;
83 83
             }
84 84
 
Please login to merge, or discard this patch.
admin_page/model/delegate/AdminPageFramework_Model_FormRedirectHandler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function __construct( $oFactory ) {
30 30
        
31
-        $this->oFactory         = $oFactory;        
31
+        $this->oFactory = $oFactory;        
32 32
         
33 33
         // wp_mail() will be loaded by the time 'after_setup_theme' is loaded.
34 34
         // @deprecated      DEVVER
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function _replyToCheckRedirects() {
54 54
   
55
-        if ( ! $this->_shouldProceed() ) {
55
+        if ( !$this->_shouldProceed() ) {
56 56
             return;
57 57
         }
58 58
 
59 59
         // The redirect transient key.
60
-        $_sTransient = 'apf_rurl' . md5( 
61
-            trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_GET['page']}" )
60
+        $_sTransient = 'apf_rurl'.md5( 
61
+            trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_GET[ 'page' ]}" )
62 62
         );
63 63
         
64 64
         // Check the settings error transient.
65 65
         $_aError = $this->oFactory->_getFieldErrors( $_GET[ 'page' ], false );
66
-        if ( ! empty( $_aError ) ) {
66
+        if ( !empty( $_aError ) ) {
67 67
             $this->deleteTransient( $_sTransient ); // we don't need it any more.
68 68
             return;
69 69
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         private function _shouldProceed() {
91 91
 
92 92
             // Check if it's one of the plugin's added page. If not, do nothing.
93
-            if ( ! $this->oFactory->_isInThePage() ) {
93
+            if ( !$this->oFactory->_isInThePage() ) {
94 94
                 return false;
95 95
             }
96 96
             
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 'settings-updated',
104 104
                 false
105 105
             );            
106
-            if ( ! $_bsSettingsUpdatedFlag ) {
106
+            if ( !$_bsSettingsUpdatedFlag ) {
107 107
                 return false;
108 108
             }
109 109
             
Please login to merge, or discard this patch.
admin_page/model/delegate/AdminPageFramework_Model_FormRegistration.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function __construct( $oFactory ) {
30 30
        
31
-        $this->oFactory         = $oFactory;        
31
+        $this->oFactory = $oFactory;        
32 32
         
33 33
         add_action( 
34 34
             "load_after_{$this->oFactory->oProp->sClassName}", 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */ 
61 61
     public function _replyToRegisterSettings() {
62 62
 
63
-        if ( ! $this->oFactory->_isInThePage() ) { 
63
+        if ( !$this->oFactory->_isInThePage() ) { 
64 64
             return;
65 65
         }
66 66
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             "sections_{$this->oFactory->oProp->sClassName}", 
71 71
             $this->oFactory->oForm->aSections 
72 72
         );
73
-        foreach( $this->oFactory->oForm->aFields as $_sSectionID => &$_aFields ) {
73
+        foreach ( $this->oFactory->oForm->aFields as $_sSectionID => &$_aFields ) {
74 74
             $_aFields = $this->addAndApplyFilter( // Parameters: $oCallerObject, $aFilters, $vInput, $vArgs...
75 75
                 $this->oFactory,
76 76
                 "fields_{$this->oFactory->oProp->sClassName}_{$_sSectionID}",
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->oFactory->loadFieldTypeDefinitions();
112 112
 
113 113
         /* 4. Set up the contextual help pane for sections. */ 
114
-        foreach( $this->oFactory->oForm->aConditionedSections as $_aSection ) {
114
+        foreach ( $this->oFactory->oForm->aConditionedSections as $_aSection ) {
115 115
                                     
116 116
             if ( empty( $_aSection[ 'help' ] ) ) {
117 117
                 continue;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */ 
61 61
     public function _replyToRegisterSettings() {
62 62
 
63
-        if ( ! $this->oFactory->_isInThePage() ) { 
63
+        if ( ! $this->oFactory->_isInThePage() ) {
64 64
             return;
65 65
         }
66 66
 
Please login to merge, or discard this patch.
admin_page/model/delegate/AdminPageFramework_Model_FormSubmission.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct( $oFactory ) {
31 31
        
32
-        $this->oFactory         = $oFactory;        
32
+        $this->oFactory = $oFactory;        
33 33
                 
34 34
         // add_action
35 35
         add_action( 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */    
71 71
     public function _replyToProcessFormData() {
72 72
         
73
-        if ( ! $this->_shouldProceed() ) {
73
+        if ( !$this->_shouldProceed() ) {
74 74
             return;
75 75
         }
76 76
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         new AdminPageFramework_Model_FormSubmission_Validator( $this->oFactory );
121 121
         
122 122
         // [3.6.3+] Apply filters. All sub-routines of handling form submit data use this filter hook.
123
-        $_aInputs    = $this->addAndApplyFilters(    
123
+        $_aInputs = $this->addAndApplyFilters(    
124 124
             $this->oFactory, 
125 125
             "validation_pre_{$this->oFactory->oProp->sClassName}", 
126 126
             $_aInputs,
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         
132 132
         // Save the data.
133 133
         $_bUpdated = false;
134
-        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {  
134
+        if ( !$this->oFactory->oProp->_bDisableSavingOptions ) {  
135 135
             $_bUpdated = $this->oFactory->oProp->updateOption( $_aInputs );
136 136
         }
137 137
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         private function _shouldProceed() {
173 173
             
174 174
             if ( 
175
-                ! isset( 
175
+                !isset( 
176 176
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started
177 177
                     $_POST[ '_wp_http_referer' ]
178 178
                 ) 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             
190 190
             // Check if all the form fields are sent. 
191 191
             if (
192
-                ! isset(
192
+                !isset(
193 193
                     // these keys are supposed to be embedded at the end of the form.
194 194
                     // if the server truncates the form input values for `max_input_vars`, these will be lost in PHP 5.3.9 or above.
195 195
                     $_POST[ '_is_admin_page_framework' ], // holds the form nonce
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                 return false;
210 210
             }
211 211
                         
212
-            $_sNonceTransientKey = 'form_' . md5( $this->oFactory->oProp->sClassName . get_current_user_id() );
212
+            $_sNonceTransientKey = 'form_'.md5( $this->oFactory->oProp->sClassName.get_current_user_id() );
213 213
             if ( $_POST[ '_is_admin_page_framework' ] !== $this->getTransient( $_sNonceTransientKey ) ) {
214 214
                 $this->oFactory->setAdminNotice( $this->oFactory->oMsg->get( 'nonce_verification_failed' ) );
215 215
                 return false;
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
          */
228 228
         private function _getUserInputsFromPOST() {
229 229
 
230
-            $_aInputs     = $this->getElementAsArray( 
230
+            $_aInputs = $this->getElementAsArray( 
231 231
                 $_POST, 
232 232
                 $this->oFactory->oProp->sOptionKey, 
233 233
                 array() 
234 234
             );
235
-            $_aInputs     = stripslashes_deep( $_aInputs );  
235
+            $_aInputs = stripslashes_deep( $_aInputs );  
236 236
             return $this->oFactory->getSortedInputs( $_aInputs ); // 3.6.0+
237 237
         
238 238
         }        
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             // Warnings for deprecated hooks.
251 251
             if ( has_action( "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}" ) ) {
252 252
                 trigger_error( 
253
-                    'Admin Page Framework: ' . ' : ' 
253
+                    'Admin Page Framework: '.' : ' 
254 254
                         . sprintf( 
255 255
                             __( 'The hook <code>%1$s</code>is deprecated. Use <code>%2$s</code> instead.', $this->oFactory->oProp->sTextDomain ), 
256 256
                             "submit_{instantiated class name}_{pressed input id}", 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                 $this->oFactory,
264 264
                 array( 
265 265
                     // @todo deprecate the hook with the input ID
266
-                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}",  // will be deprecated in near future release
266
+                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}", // will be deprecated in near future release
267 267
                     $_sSubmitSectionID 
268 268
                         ? "submit_{$this->oFactory->oProp->sClassName}_{$_sSubmitSectionID}_{$_sPressedFieldID}" 
269 269
                         : "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedFieldID}",
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
             
347 347
             // Drop the 'field_errors' key.
348 348
             $_aRemoveQueries = array();
349
-            if ( ! isset( $aStatus[ 'field_errors' ] ) || ! $aStatus[ 'field_errors' ] ) {
349
+            if ( !isset( $aStatus[ 'field_errors' ] ) || !$aStatus[ 'field_errors' ] ) {
350 350
                 unset( $aStatus[ 'field_errors' ] );
351
-                $_aRemoveQueries[] = 'field_errors';
351
+                $_aRemoveQueries[ ] = 'field_errors';
352 352
             }        
353 353
          
354 354
             return $this->addAndApplyFilters(    // 3.4.4+
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
          */
374 374
         private function _removePageElements( $aOptions, $sPageSlug, $sTabSlug ) {
375 375
             
376
-            if ( ! $sPageSlug && ! $sTabSlug ) {
376
+            if ( !$sPageSlug && !$sTabSlug ) {
377 377
                 return $aOptions;
378 378
             }
379 379
             
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         
139 139
         // Save the data.
140 140
         $_bUpdated = false;
141
-        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {  
141
+        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {
142 142
             $_bUpdated = $this->oFactory->oProp->updateOption( $_aInputs );
143 143
         }
144 144
 
@@ -181,14 +181,15 @@  discard block
 block discarded – undo
181 181
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started
182 182
                     $_POST[ '_wp_http_referer' ]
183 183
                 ) 
184
-            ) {     
184
+            ) {
185 185
                 return false;
186 186
             }
187 187
             
188 188
             // Referrer
189 189
             $_sRequestURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), wp_unslash( $_SERVER[ 'REQUEST_URI' ] ) );
190 190
             $_sReffererURI  = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), $_POST[ '_wp_http_referer' ] );
191
-            if ( $_sRequestURI != $_sReffererURI ) { // see the function definition of wp_referer_field() in functions.php.
191
+            if ( $_sRequestURI != $_sReffererURI ) {
192
+// see the function definition of wp_referer_field() in functions.php.
192 193
                 return false;
193 194
             }
194 195
             
Please login to merge, or discard this patch.
delegate/validaor/AdminPageFramework_Model_FormSubmission_Validator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $this->oFactory = $oFactory;
31 31
         
32 32
         add_filter(
33
-            "validation_pre_" . $this->oFactory->oProp->sClassName,
33
+            "validation_pre_".$this->oFactory->oProp->sClassName,
34 34
             array( $this, '_replyToValiateUserFormInputs' ),
35 35
             10,
36 36
             4
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $_sSubmitSectionID  = $this->_getPressedSubmitButtonData( $_aSubmits, 'section_id' );
62 62
             
63 63
             // Submit Information - [3.5.0+] this will be passed to validation callback methods.
64
-            $_aSubmitsInformation        = array(
64
+            $_aSubmitsInformation = array(
65 65
                 'page_slug'     => $_sPageSlug,
66 66
                 'tab_slug'      => $_sTabSlug,
67 67
                 'input_id'      => $this->_getPressedSubmitButtonData( $_aSubmits, 'input_id' ), 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 'AdminPageFramework_Model__FormSubmission__Validator__ContactFormConfirm',
86 86
                 
87 87
             );
88
-            foreach( $_aClassNames as $_sClassName ) {
88
+            foreach ( $_aClassNames as $_sClassName ) {
89 89
                 new $_sClassName( $this->oFactory );
90 90
             }
91 91
             
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 
95 95
                 $this->addAndDoActions(
96 96
                     $this->oFactory,
97
-                    'try_validation_before_' . $this->oFactory->oProp->sClassName,
97
+                    'try_validation_before_'.$this->oFactory->oProp->sClassName,
98 98
                     $aInputs,
99 99
                     $aRawInputs,
100 100
                     $_aSubmits,
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
                 $this->addAndDoActions(
115 115
                     $this->oFactory,
116
-                    'try_validation_after_' . $this->oFactory->oProp->sClassName,
116
+                    'try_validation_after_'.$this->oFactory->oProp->sClassName,
117 117
                     $aInputs,
118 118
                     $aRawInputs,
119 119
                     $_aSubmits,
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model_FormSubmission_Validator_Base.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             : 'add_filter';
37 37
             
38 38
         $_sFunctionName(
39
-            $this->sActionHookPrefix . $this->oFactory->oProp->sClassName,
39
+            $this->sActionHookPrefix.$this->oFactory->oProp->sClassName,
40 40
             array( $this, $this->sCallbackName ),
41 41
             $this->iHookPriority,
42 42
             $this->iCallbackParameters
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
      * @since   3.6.3       Moved from `AdminPageFramework_Validation`.
57 57
      * @return  array       The intact stored options.
58 58
      */
59
-    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType='reset' ) {
59
+    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType = 'reset' ) {
60 60
         
61
-        switch( $sType ) {
61
+        switch ( $sType ) {
62 62
             default:
63 63
             case 'reset':
64 64
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'reset_options' );
65
-                $_sTransientKey      =  'apf_rc_' . md5( $sPressedInputName . get_current_user_id() );
65
+                $_sTransientKey      = 'apf_rc_'.md5( $sPressedInputName.get_current_user_id() );
66 66
                 break;
67 67
             case 'email':
68 68
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'send_email' );
69
-                $_sTransientKey      =  'apf_ec_' . md5( $sPressedInputName . get_current_user_id() );
69
+                $_sTransientKey      = 'apf_ec_'.md5( $sPressedInputName.get_current_user_id() );
70 70
                 break;                
71 71
         }
72 72
         
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->oFactory->setFieldErrors( $_aErrors );
89 89
             
90 90
         // Set a flag that the confirmation is displayed
91
-        $this->setTransient( $_sTransientKey, $sPressedInputName, 60*2 );
91
+        $this->setTransient( $_sTransientKey, $sPressedInputName, 60 * 2 );
92 92
         
93 93
         // Set the admin notice
94 94
         $this->oFactory->setSettingNotice( $this->oFactory->oMsg->get( 'confirm_perform_task' ), 'error confirmation' );
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model_FormSubmission_Validator_ContactForm.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
35 35
                 
36 36
         // Check whether sending an email has been confirmed by the user or not.
37
-        $_bConfirmedToSendEmail     = ( bool ) $this->_getPressedSubmitButtonData( 
37
+        $_bConfirmedToSendEmail = ( bool ) $this->_getPressedSubmitButtonData( 
38 38
             $aSubmits, 
39 39
             'confirmed_sending_email' 
40 40
         );
41
-        if ( ! $_bConfirmedToSendEmail ) {
41
+        if ( !$_bConfirmedToSendEmail ) {
42 42
             return;
43 43
         }
44 44
         
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
             $this->getElement( $aSubmitInformation, 'section_id' )
50 50
         );
51 51
         $this->oFactory->oProp->_bDisableSavingOptions = true;
52
-        $this->deleteTransient( 'apf_tfd' . md5( 'temporary_form_data_' . $this->oFactory->oProp->sClassName . get_current_user_id() ) );
52
+        $this->deleteTransient( 'apf_tfd'.md5( 'temporary_form_data_'.$this->oFactory->oProp->sClassName.get_current_user_id() ) );
53 53
         
54 54
         // Schedule to remove the confirmation url query key.
55 55
         add_action( "setting_update_url_{$this->oFactory->oProp->sClassName}", array( $this, '_replyToRemoveConfirmationQueryKey' ) );
56 56
         
57 57
         // Go to the catch clause.
58
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clasue.
58
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue.
59 59
         $_oException->aReturn = $aInputs;
60 60
         throw $_oException;
61 61
     
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
          */
74 74
         private function _sendEmailInBackground( $aInputs, $sPressedInputNameFlat, $sSubmitSectionID ) {
75 75
             
76
-            $_sTranskentKey = 'apf_em_' . md5( $sPressedInputNameFlat . get_current_user_id() );
76
+            $_sTranskentKey = 'apf_em_'.md5( $sPressedInputNameFlat.get_current_user_id() );
77 77
             $_aEmailOptions = $this->getTransient( $_sTranskentKey );
78 78
             $this->deleteTransient( $_sTranskentKey );
79 79
 
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
                 'name'          => '',
89 89
             );
90 90
 
91
-            $_sTransientKey  = 'apf_emd_' . md5( $sPressedInputNameFlat . get_current_user_id() );
91
+            $_sTransientKey  = 'apf_emd_'.md5( $sPressedInputNameFlat.get_current_user_id() );
92 92
             $_aFormEmailData = array(
93 93
                 'email_options' => $_aEmailOptions,
94 94
                 'input'         => $aInputs,
95 95
                 'section_id'    => $sSubmitSectionID,
96 96
             );
97
-            $_bIsSet = $this->setTransient( $_sTransientKey,  $_aFormEmailData, 100 );
97
+            $_bIsSet = $this->setTransient( $_sTransientKey, $_aFormEmailData, 100 );
98 98
             
99 99
             // Send the email in the background.
100 100
             wp_remote_get( 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             );  
113 113
             
114 114
             // @remark      Not possible to tell whether it is sent or not at the moment because it is performed in the background.
115
-            $_bSent      = $_bIsSet;    
115
+            $_bSent = $_bIsSet;    
116 116
             $this->oFactory->setSettingNotice( 
117 117
                 $this->oFactory->oMsg->get( 
118 118
                     $this->getAOrB( 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
          * @return      string
135 135
          */
136 136
         public function _replyToRemoveConfirmationQueryKey( $sSettingUpdateURL ) {
137
-            return remove_query_arg( array( 'confirmation', ), $sSettingUpdateURL );
137
+            return remove_query_arg( array( 'confirmation',), $sSettingUpdateURL );
138 138
         }      
139 139
         
140 140
 }
141 141
\ No newline at end of file
Please login to merge, or discard this patch.
AdminPageFramework_Model_FormSubmission_Validator_ContactFormConfirm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
         if ( $this->oFactory->hasFieldError() ) {
37 37
             return;
38 38
         }
39
-        $_bConfirmingToSendEmail    = ( bool ) $this->_getPressedSubmitButtonData( 
39
+        $_bConfirmingToSendEmail = ( bool ) $this->_getPressedSubmitButtonData( 
40 40
             $aSubmits, 
41 41
             'confirming_sending_email' 
42 42
         );
43
-        if ( ! $_bConfirmingToSendEmail ) {
43
+        if ( !$_bConfirmingToSendEmail ) {
44 44
             return;
45 45
         }
46 46
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         );            
54 54
         
55 55
         // Go to the catch clause.
56
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clasue.
56
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue.
57 57
         $_oException->aReturn = $this->_confirmSubmitButtonAction( 
58 58
             $this->getElement( $aSubmitInformation, 'input_name' ), 
59 59
             $this->getElement( $aSubmitInformation, 'section_id' ), 
Please login to merge, or discard this patch.