Completed
Pull Request — dev (#237)
by
unknown
10:59
created
development/factory/admin_page/_model/AdminPageFramework_FormEmail.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -202,6 +202,7 @@
 block discarded – undo
202 202
          * 
203 203
          * @since       3.3.0
204 204
          * @since       3.4.2       Moved from the validation class.
205
+         * @param string $sKey
205 206
          */
206 207
         private function _getEmailArgument( $aInput, array $aEmailOptions, $sKey, $sSectionID ) {
207 208
             
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
         );        
278 278
     }    
279 279
     
280
-       /**
280
+        /**
281 281
          * Extracts meta box form fields options array from the given options array of an admin page.
282 282
          * 
283 283
          * @since       3.5.6
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         // Send mail.
89
-        $_bSent         = wp_mail(
89
+        $_bSent = wp_mail(
90 90
             $this->_getEmailArgument( $aInput, $aEmailOptions, 'to', $sSubmitSectionID ),
91 91
             $this->_getEmailArgument( $aInput, $aEmailOptions, 'subject', $sSubmitSectionID ),
92 92
             $_bIsHTML
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         remove_filter( 'wp_mail_from_name', array( $this, '_replyToSetEmailSenderAddress' ) );
102 102
         
103 103
         // Clean up.
104
-        foreach( $this->_aPathsToDelete as $_sPath ) {
104
+        foreach ( $this->_aPathsToDelete as $_sPath ) {
105 105
             unlink( $_sPath );
106 106
         }
107 107
         
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             }
123 123
             
124 124
             $_aAttachments = $this->getAsArray( $asAttachments );
125
-            foreach( $_aAttachments as $_iIndex => $_sPathORURL ) {
125
+            foreach ( $_aAttachments as $_iIndex => $_sPathORURL ) {
126 126
                 
127 127
                 // If it is a file path, fine.
128 128
                 if ( is_file( $_sPathORURL ) ) {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
             
215 215
             // If the key element is empty, search the corresponding item in the same section. 
216
-            if ( ! $aEmailOptions[ $sKey ] ) {
216
+            if ( !$aEmailOptions[ $sKey ] ) {
217 217
                 return $this->getArrayValueByArrayKeys( $aInput, array( $sSectionID, $sKey ) );
218 218
             }
219 219
             
Please login to merge, or discard this patch.
development/factory/admin_page/_model/AdminPageFramework_ImportOptions.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -89,6 +89,11 @@
 block discarded – undo
89 89
         return $vData;
90 90
         
91 91
     }
92
+
93
+    /**
94
+     * @param string $vData
95
+     * @param string $sFormatType
96
+     */
92 97
     public function formatImportData( &$vData, $sFormatType=null ) {
93 98
         
94 99
         $sFormatType = isset( $sFormatType ) ? $sFormatType : $this->getFormatType();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
         
58 58
     }
59 59
     
60
-    private function getElementInFilesArray( array $aFilesImport, $sInputID, $sElementKey='error' ) {
60
+    private function getElementInFilesArray( array $aFilesImport, $sInputID, $sElementKey = 'error' ) {
61 61
 
62 62
         $sElementKey = strtolower( $sElementKey );
63 63
         return $this->getElement( 
64
-            $aFilesImport,  // subject array
64
+            $aFilesImport, // subject array
65 65
             array( $sElementKey, $sInputID ), // dimensional keys
66 66
             null    // default
67 67
         );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         return $vData;
90 90
         
91 91
     }
92
-    public function formatImportData( &$vData, $sFormatType=null ) {
92
+    public function formatImportData( &$vData, $sFormatType = null ) {
93 93
         
94 94
         $sFormatType = isset( $sFormatType ) ? $sFormatType : $this->getFormatType();
95 95
         switch ( strtolower( $sFormatType ) ) {
Please login to merge, or discard this patch.
admin_page/_model/delegate/AdminPageFramework_Model__FormEmailHandler.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Sets up properties.
27 27
      * @since       3.6.3
28
+     * @param AdminPageFramework_Model_Form $oFactory
28 29
      */
29 30
     public function __construct( $oFactory ) {
30 31
        
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  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
         // Form emails.
35
-        if ( ! isset( $_GET[ 'apf_action' ], $_GET[ 'transient' ] ) ) {
35
+        if ( !isset( $_GET[ 'apf_action' ], $_GET[ 'transient' ] ) ) {
36 36
             return;
37 37
         }
38 38
         if ( 'email' !== $_GET[ 'apf_action' ] ) {
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
             self::$_bDoneEmail = true;
75 75
 
76 76
             $_sTransient = $this->getElement( $_GET, 'transient', '' );
77
-            if ( ! $_sTransient ) {
77
+            if ( !$_sTransient ) {
78 78
                 return;
79 79
             }
80 80
             $_aFormEmail = $this->getTransient( $_sTransient );
81 81
             $this->deleteTransient( $_sTransient );
82
-            if ( ! is_array( $_aFormEmail ) ) {
82
+            if ( !is_array( $_aFormEmail ) ) {
83 83
                 return;
84 84
             }
85 85
 
Please login to merge, or discard this patch.
admin_page/_model/delegate/AdminPageFramework_Model__FormSubmission.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -26,6 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Sets up hooks and properties.
28 28
      * @since       3.6.3
29
+     * @param AdminPageFramework_Model_Form $oFactory
29 30
      */
30 31
     public function __construct( $oFactory, $aSavedData, $aArguments, $aSectionsets, $aFieldsets ) {
31 32
        
@@ -250,6 +251,9 @@  discard block
 block discarded – undo
250 251
          * Do the 'submit_...' actions.
251 252
          * 
252 253
          * @internal
254
+         * @param null|string $_sSubmitSectionID
255
+         * @param null|string $_sPressedFieldID
256
+         * @param null|string $_sPressedInputID
253 257
          * @return      void
254 258
          * @since       3.5.3
255 259
          * @since       3.6.3       Moved from `AdminPageFramework_Validation`.
@@ -296,6 +300,8 @@  discard block
 block discarded – undo
296 300
          * Do the 'submit_after_...' actions.
297 301
          * 
298 302
          * @internal
303
+         * @param null|string $_sSubmitSectionID
304
+         * @param null|string $_sPressedFieldID
299 305
          * @return      void
300 306
          * @since       3.5.3
301 307
          * @since       3.6.3       Moved from `AdminPageFramework_Validation`.
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 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, $aSavedData, $aArguments, $aSectionsets, $aFieldsets ) {
31 31
        
32
-        $this->oFactory         = $oFactory;
32
+        $this->oFactory = $oFactory;
33 33
                 
34 34
         // add_action
35 35
         // @deprecated      3.7.0
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function _handleFormData() {
74 74
         
75
-        if ( ! $this->_shouldProceed() ) {
75
+        if ( !$this->_shouldProceed() ) {
76 76
             return;
77 77
         }
78 78
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         new AdminPageFramework_Model__FormSubmission__Validator( $this->oFactory );
128 128
         
129 129
         // [3.6.3+] Apply filters. All the sub-routines of handling form submit data use this filter hook.
130
-        $_aInputs    = $this->addAndApplyFilters(
130
+        $_aInputs = $this->addAndApplyFilters(
131 131
             $this->oFactory,
132 132
             "validation_pre_{$this->oFactory->oProp->sClassName}",
133 133
             $_aInputs,
@@ -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
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         private function _shouldProceed() {
178 178
             
179 179
             if (
180
-                ! isset(
180
+                !isset(
181 181
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started
182 182
                     $_POST[ '_wp_http_referer' ]
183 183
                 )
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             
195 195
             // Check if all the form fields are sent. 
196 196
             if (
197
-                ! isset(
197
+                !isset(
198 198
                     // these keys are supposed to be embedded at the end of the form.
199 199
                     // if the server truncates the form input values for `max_input_vars`, these will be lost in PHP 5.3.9 or above.
200 200
                     $_POST[ '_is_admin_page_framework' ], // holds the form nonce
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 return false;
216 216
             }
217 217
                         
218
-            $_sNonceTransientKey = 'form_' . md5( $this->oFactory->oProp->sClassName . get_current_user_id() );
218
+            $_sNonceTransientKey = 'form_'.md5( $this->oFactory->oProp->sClassName.get_current_user_id() );
219 219
             if ( $_POST[ '_is_admin_page_framework' ] !== $this->getTransient( $_sNonceTransientKey ) ) {
220 220
                 $this->oFactory->setAdminNotice( $this->oFactory->oMsg->get( 'nonce_verification_failed' ) );
221 221
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
          */
235 235
         private function _getUserInputsFromPOST() {
236 236
 
237
-            $_aInputs     = $this->getElementAsArray(
237
+            $_aInputs = $this->getElementAsArray(
238 238
                 $_POST,
239 239
                 $this->oFactory->oProp->sOptionKey,
240 240
                 array()
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             // Warnings for deprecated hooks.
263 263
             if ( has_action( "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}" ) ) {
264 264
                 trigger_error(
265
-                    'Admin Page Framework: ' . ' : '
265
+                    'Admin Page Framework: '.' : '
266 266
                         . sprintf(
267 267
                             __( 'The hook <code>%1$s</code>is deprecated. Use <code>%2$s</code> instead.', $this->oFactory->oProp->sTextDomain ),
268 268
                             "submit_{instantiated class name}_{pressed input id}",
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                 $this->oFactory,
276 276
                 array(
277 277
                     // @todo deprecate the hook with the input ID
278
-                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}",  // will be deprecated in near future release
278
+                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}", // will be deprecated in near future release
279 279
                     $_sSubmitSectionID
280 280
                         ? "submit_{$this->oFactory->oProp->sClassName}_{$_sSubmitSectionID}_{$_sPressedFieldID}"
281 281
                         : "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedFieldID}",
@@ -358,9 +358,9 @@  discard block
 block discarded – undo
358 358
             
359 359
             // Drop the 'field_errors' key.
360 360
             $_aRemoveQueries = array();
361
-            if ( ! isset( $aStatus[ 'field_errors' ] ) || ! $aStatus[ 'field_errors' ] ) {
361
+            if ( !isset( $aStatus[ 'field_errors' ] ) || !$aStatus[ 'field_errors' ] ) {
362 362
                 unset( $aStatus[ 'field_errors' ] );
363
-                $_aRemoveQueries[] = 'field_errors';
363
+                $_aRemoveQueries[ ] = 'field_errors';
364 364
             }
365 365
          
366 366
             return $this->addAndApplyFilters(    // 3.4.4+
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
          */
386 386
         private function _removePageElements( $aOptions, $sPageSlug, $sTabSlug ) {
387 387
             
388
-            if ( ! $sPageSlug && ! $sTabSlug ) {
388
+            if ( !$sPageSlug && !$sTabSlug ) {
389 389
                 return $aOptions;
390 390
             }
391 391
             
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,8 @@
 block discarded – undo
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.
_model/delegate/AdminPageFramework_Model__FormSubmission_Base.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -79,6 +79,7 @@
 block discarded – undo
79 79
      * @since       3.5.3
80 80
      * @since       3.6.3       Moved from `AdminPageFramework_Form_Model_Validation_Option`.
81 81
      * @internal
82
+     * @param boolean $bIsInputEmtpy
82 83
      * @return      void
83 84
      * @remark      Accessed from some of the parent/child classes.
84 85
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
47 47
      * @return      null|string     Returns `null` if no value is found and the associated link url if found. 
48 48
      * Otherwise, the found value.
49 49
      */
50
-    protected function _getPressedSubmitButtonData( array $aPostElements, $sTargetKey='field_id' ) {
50
+    protected function _getPressedSubmitButtonData( array $aPostElements, $sTargetKey = 'field_id' ) {
51 51
 
52
-        foreach( $aPostElements as $_sInputID => $_aSubElements ) {
52
+        foreach ( $aPostElements as $_sInputID => $_aSubElements ) {
53 53
             
54 54
             // The 'name' key must be set.
55
-            if ( ! isset( $_aSubElements[ 'name' ] ) ) {
55
+            if ( !isset( $_aSubElements[ 'name' ] ) ) {
56 56
                 continue;
57 57
             }
58 58
             $_aNameKeys = explode( '|', $_aSubElements[ 'name' ] );
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Export.php 3 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
              * 
93 93
              * @since       3.5.4
94 94
              * @since       3.6.3       Moved from `AdminPageFramework_Form_Model_Export`.
95
+             * @param string $sFileName
95 96
              * @return      array
96 97
              */
97 98
             private function _getExportHeaderArray( array $aArguments, $sFileName, $mData ) {
@@ -132,6 +133,7 @@  discard block
 block discarded – undo
132 133
              * @since       3.5.3
133 134
              * @since       3.6.3       Moved from `AdminPageFramework_Form_Model_Export`.
134 135
              * @internal   
136
+             * @param string $mData
135 137
              * @return      string      The export file name.
136 138
              */        
137 139
             private function _getExportFileName( array $aArguments, $sExportFileName, $mData ) {        
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides utility methods which can be accessed among different components of the framework.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
35 35
         
36
-        if ( ! $this->_shouldProceed() ) {
36
+        if ( !$this->_shouldProceed() ) {
37 37
             return;
38 38
         }
39 39
         $this->_exportOptions(
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
          */
67 67
         protected function _exportOptions( $mData, $sPageSlug, $sTabSlug ) {
68 68
 
69
-            $_oExport           = new AdminPageFramework_ExportOptions(
69
+            $_oExport = new AdminPageFramework_ExportOptions(
70 70
                 $_POST[ '__export' ],
71 71
                 $this->oFactory->oProp->sClassName
72 72
             );
73
-            $_aArguments        = array(
73
+            $_aArguments = array(
74 74
                 'class_name'        => $this->oFactory->oProp->sClassName,
75 75
                 'page_slug'         => $sPageSlug,
76 76
                 'tab_slug'          => $sTabSlug,
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     $sExportFileName,
143 143
                     $aArguments[ 'pressed_field_id' ],
144 144
                     $aArguments[ 'pressed_input_id' ],
145
-                    $mData,     // 3.4.6+
145
+                    $mData, // 3.4.6+
146 146
                     $this->oFactory       // 3.4.6+
147 147
                 );
148 148
             }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Import.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -143,6 +143,7 @@  discard block
 block discarded – undo
143 143
                 /**
144 144
                  * Sets update admin notice.
145 145
                  * @since       3.5.3
146
+                 * @param boolean $bEmpty
146 147
                  * @return      void
147 148
                  */
148 149
                 private function _setImportAdminNotice( $bEmpty ) {
@@ -204,6 +205,8 @@  discard block
 block discarded – undo
204 205
                  * @since       3.5.3
205 206
                  * @since       3.6.3       Moved from `AdminPageFramework_Form_Model_Import`.
206 207
                  * @internal   
208
+                 * @param string $sFormatType
209
+                 * @param string $sImportOptionKey
207 210
                  * @return      string      The filtered import data.
208 211
                  */    
209 212
                 private function _getFilteredImportData( array $aArguments, $mData, $aStoredOptions, $sFormatType, $sImportOptionKey ) {
@@ -232,6 +235,7 @@  discard block
 block discarded – undo
232 235
      * @param       string      The filter prefix.
233 236
      * @param       mixed       The subject filtering value.
234 237
      * @param       array       An argument array holding submit information. Part of this will be passed to the filter callbacks but this itself does not mean is for the filter callbacks.
238
+     * @param string $sPrefix
235 239
      */
236 240
     protected function _getFilteredItemForPortByPrefix( $sPrefix, $mFilteringValue, array $aArguments ) {
237 241
         return $this->addAndApplyFilters(
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @callback    action      try_validation_after_{class name}
33 33
      */
34 34
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
35
-        if ( ! $this->_shouldProceed() ) {
35
+        if ( !$this->_shouldProceed() ) {
36 36
             return;
37 37
         }
38 38
         $this->_doImportOptions(
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
                 // Check the uploaded file MIME type.
105 105
                 $_aMIMEType = $this->_getImportMIMEType( $_aArguments );
106 106
                 $_sType     = $_oImport->getType();
107
-                if ( ! in_array( $_sType, $_aMIMEType ) ) {
107
+                if ( !in_array( $_sType, $_aMIMEType ) ) {
108 108
                     $this->oFactory->setSettingNotice( sprintf( $this->oFactory->oMsg->get( 'uploaded_file_type_not_supported' ), $_sType ) );
109 109
 
110
-                    return $aStoredOptions;        // do not change the framework's options.
110
+                    return $aStoredOptions; // do not change the framework's options.
111 111
                 }
112 112
 
113 113
                 // Retrieve the importing data.
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
                         array(
175 175
                             'text/plain',
176 176
                             'application/octet-stream', // .json file is dealt as a binary file.
177
-                            'application/json',         // 3.7.0+ some servers cannot upload json files without this
178
-                            'text/html',                // 3.7.2+
179
-                            'application/txt',          // 3.7.2+
177
+                            'application/json', // 3.7.0+ some servers cannot upload json files without this
178
+                            'text/html', // 3.7.2+
179
+                            'application/txt', // 3.7.2+
180 180
                         ),
181 181
                         $aArguments
182 182
                     );
@@ -265,18 +265,18 @@  discard block
 block discarded – undo
265 265
     protected function _getPortFilterHookNames( $sPrefix, array $aArguments ) {
266 266
         
267 267
         return array(
268
-            $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'pressed_input_id' ],
268
+            $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'pressed_input_id' ],
269 269
             $aArguments[ 'section_id' ]
270
-                ? $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'section_id' ] .'_' . $aArguments[ 'pressed_field_id' ]
271
-                : $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'pressed_field_id' ],
270
+                ? $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'section_id' ].'_'.$aArguments[ 'pressed_field_id' ]
271
+                : $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'pressed_field_id' ],
272 272
             $aArguments[ 'section_id' ]
273
-                ? $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'section_id' ]
273
+                ? $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'section_id' ]
274 274
                 : null,
275 275
             $aArguments[ 'tab_slug' ]
276
-                ? $sPrefix . $aArguments[ 'page_slug' ] . '_' . $aArguments[ 'tab_slug' ]
276
+                ? $sPrefix.$aArguments[ 'page_slug' ].'_'.$aArguments[ 'tab_slug' ]
277 277
                 : null,
278
-            $sPrefix . $aArguments[ 'page_slug' ],
279
-            $sPrefix . $aArguments[ 'class_name' ],
278
+            $sPrefix.$aArguments[ 'page_slug' ],
279
+            $sPrefix.$aArguments[ 'class_name' ],
280 280
         );
281 281
         
282 282
     }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Redirect.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -66,6 +66,7 @@
 block discarded – undo
66 66
          * Sets the given URL's transient.
67 67
          * @since       unknown
68 68
          * @since       3.6.3       Moved from `AdminPageFramework_Validation`.
69
+         * @param string $sURL
69 70
          */
70 71
         private function _setRedirectTransients( $sURL, $sPageSlug ) {
71 72
             if ( empty( $sURL ) ) { 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             $aSubmits,
36 36
             'redirect_url'
37 37
         );
38
-        if ( ! $_sRedirectURL ) {
38
+        if ( !$_sRedirectURL ) {
39 39
             return;
40 40
         }
41 41
         
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
             if ( empty( $sURL ) ) {
72 72
                 return;
73 73
             }
74
-            $_sTransient = 'apf_rurl' . md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$sPageSlug}" ) );
74
+            $_sTransient = 'apf_rurl'.md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$sPageSlug}" ) );
75 75
 
76
-            return $this->setTransient( $_sTransient, $sURL , 60*2 );
76
+            return $this->setTransient( $_sTransient, $sURL, 60 * 2 );
77 77
         }
78 78
  
79 79
 }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Reset.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@
 block discarded – undo
60 60
          * @since       3.6.3       Moved from `AdminPageFramework_Validation`.
61 61
          * @remark      `$aInputs` has only the page elements that called the validation callback. 
62 62
          * In other words, it does not hold other pages' option keys.
63
+         * @param string $sKeyToReset
63 64
          * @return      array       The modified input array.
64 65
          */
65 66
         private function _resetOptions( $sKeyToReset, array $aInputs, array $aSubmitInformation ) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
37 37
             
38
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
38
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
39 39
             return;
40 40
         }
41 41
             
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             'reset_key'
46 46
         );
47 47
         $_sKeyToReset = trim( $_sKeyToReset );
48
-        if ( ! $_sKeyToReset ) {
48
+        if ( !$_sKeyToReset ) {
49 49
             return;
50 50
         }
51 51
         $_oException = new Exception( 'aReturn' );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          * @return      boolean
63 63
          */
64 64
         protected function _shouldProceed( $oFactory, $aSubmits ) {
65
-            return ! $oFactory->hasFieldError();
65
+            return !$oFactory->hasFieldError();
66 66
         }
67 67
         
68 68
         /**
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
             $this->_doResetActions( $sKeyToReset, $aInputs, $aSubmitInformation );
81 81
             
82 82
             // As of 3.1.0, an empty value is accepted for the option key.
83
-            if ( ! $this->oFactory->oProp->sOptionKey ) {
83
+            if ( !$this->oFactory->oProp->sOptionKey ) {
84 84
                 return array();
85 85
             }
86 86
             
87 87
             // The key to delete is not specified, 1 is sent from the form input.
88
-            if ( in_array( $sKeyToReset, array( '1', ), true ) ) {
88
+            if ( in_array( $sKeyToReset, array( '1',), true ) ) {
89 89
                 delete_option( $this->oFactory->oProp->sOptionKey );
90 90
 
91 91
                 return array();
Please login to merge, or discard this patch.