Passed
Branch dev (d5661a)
by Michael
22:34
created
factory/admin_page/_controller/AdminPageFramework_HelpPane_admin_page.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -65,18 +65,18 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function _replyToRegisterHelpTabs() {
67 67
 
68
-        if ( ! $this->oProp->oCaller->isInThePage() ) {
68
+        if ( !$this->oProp->oCaller->isInThePage() ) {
69 69
             return;
70 70
         }
71 71
 
72 72
         $_sCurrentPageSlug  = $this->oProp->getCurrentPageSlug();
73 73
         $_sCurrentTabSlug   = $this->oProp->getCurrentTabSlug( $_sCurrentPageSlug );
74 74
 
75
-        if ( ! $this->oProp->isPageAdded( $_sCurrentPageSlug ) ) {
75
+        if ( !$this->oProp->isPageAdded( $_sCurrentPageSlug ) ) {
76 76
             return;
77 77
         }
78 78
 
79
-        foreach( $this->oProp->aHelpTabs as $aHelpTab ) {
79
+        foreach ( $this->oProp->aHelpTabs as $aHelpTab ) {
80 80
             $this->_registerHelpTab( $aHelpTab, $_sCurrentPageSlug, $_sCurrentTabSlug );
81 81
         }
82 82
 
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
          */
90 90
         private function _registerHelpTab( array $aHelpTab, $sCurrentPageSlug, $sCurrentTabSlug ) {
91 91
 
92
-            if ( $sCurrentPageSlug != $aHelpTab['sPageSlug'] ) {
92
+            if ( $sCurrentPageSlug != $aHelpTab[ 'sPageSlug' ] ) {
93 93
                 return;
94 94
             }
95
-            if ( isset( $aHelpTab['sPageTabSlug'] ) && ! empty( $aHelpTab['sPageTabSlug'] ) && $sCurrentTabSlug != $aHelpTab['sPageTabSlug'] ) {
95
+            if ( isset( $aHelpTab[ 'sPageTabSlug' ] ) && !empty( $aHelpTab[ 'sPageTabSlug' ] ) && $sCurrentTabSlug != $aHelpTab[ 'sPageTabSlug' ] ) {
96 96
                 return;
97 97
             }
98 98
 
@@ -131,24 +131,24 @@  discard block
 block discarded – undo
131 131
         $aHelpTab = ( array ) $aHelpTab + self::$_aStructure_HelpTabUserArray;
132 132
 
133 133
         // If the key is not set, that means the help tab array is not created yet. So create it and go back.
134
-        if ( ! isset( $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] ) ) {
135
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] = array(
136
-                'sID'           => $aHelpTab['help_tab_id'],
137
-                'sTitle'        => $aHelpTab['help_tab_title'],
138
-                'aContent'      => ! empty( $aHelpTab['help_tab_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_content'] ) ) : array(),
139
-                'aSidebar'      => ! empty( $aHelpTab['help_tab_sidebar_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] ) ) : array(),
140
-                'sPageSlug'     => $aHelpTab['page_slug'],
141
-                'sPageTabSlug'  => $aHelpTab['page_tab_slug'],
134
+        if ( !isset( $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] ) ) {
135
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] = array(
136
+                'sID'           => $aHelpTab[ 'help_tab_id' ],
137
+                'sTitle'        => $aHelpTab[ 'help_tab_title' ],
138
+                'aContent'      => !empty( $aHelpTab[ 'help_tab_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] ) ) : array(),
139
+                'aSidebar'      => !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) : array(),
140
+                'sPageSlug'     => $aHelpTab[ 'page_slug' ],
141
+                'sPageTabSlug'  => $aHelpTab[ 'page_tab_slug' ],
142 142
             );
143 143
             return;
144 144
         }
145 145
 
146 146
         // This line will be reached if the help tab array is already set. In this case, just append an array element into the keys.
147
-        if ( ! empty( $aHelpTab['help_tab_content'] ) ) {
148
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aContent'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_content'] );
147
+        if ( !empty( $aHelpTab[ 'help_tab_content' ] ) ) {
148
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aContent' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] );
149 149
         }
150
-        if ( ! empty( $aHelpTab['help_tab_sidebar_content'] ) ) {
151
-            $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aSidebar'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] );
150
+        if ( !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) {
151
+            $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aSidebar' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] );
152 152
         }
153 153
 
154 154
     }
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Controller.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -218,24 +218,24 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
     /**
221
-    * Adds the given link(s) into the description cell of the plugin listing table.
222
-    *
223
-    * <h4>Example</h4>
224
-    * <code>$this->addLinkToPluginDescription(
225
-    *       "<a href='http://www.google.com'>Google</a>",
226
-    *       "<a href='http://www.yahoo.com'>Yahoo!</a>"
227
-    * );</code>
228
-    *
229
-    * @since        2.0.0
230
-    * @since        3.0.0       Changed the scope to public from protected.
231
-    * @since        3.3.1       Moved from `AdminPageFramework`.
232
-    * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
233
-    * @param        string      the tagged HTML link text.
234
-    * @param        string      (optional) another tagged HTML link text.
235
-    * @param        string      (optional) add more as many as want by adding items to the next parameters.
236
-    * @access       public
237
-    * @return       void
238
-    */
221
+     * Adds the given link(s) into the description cell of the plugin listing table.
222
+     *
223
+     * <h4>Example</h4>
224
+     * <code>$this->addLinkToPluginDescription(
225
+     *       "<a href='http://www.google.com'>Google</a>",
226
+     *       "<a href='http://www.yahoo.com'>Yahoo!</a>"
227
+     * );</code>
228
+     *
229
+     * @since        2.0.0
230
+     * @since        3.0.0       Changed the scope to public from protected.
231
+     * @since        3.3.1       Moved from `AdminPageFramework`.
232
+     * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
233
+     * @param        string      the tagged HTML link text.
234
+     * @param        string      (optional) another tagged HTML link text.
235
+     * @param        string      (optional) add more as many as want by adding items to the next parameters.
236
+     * @access       public
237
+     * @return       void
238
+     */
239 239
     public function addLinkToPluginDescription( $sTaggedLinkHTML1, $sTaggedLinkHTML2=null, $_and_more=null ) {
240 240
         if ( 'plugins.php' !== $this->oProp->sPageNow ) {
241 241
             return;
@@ -244,23 +244,23 @@  discard block
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-    * Adds the given link(s) into the title cell of the plugin listing table.
248
-    *
249
-    * <h4>Example</h4>
250
-    * <code>$this->addLinkToPluginTitle(
251
-    *       "<a href='http://www.wordpress.org'>WordPress</a>"
252
-    * );</code>
253
-    *
254
-    * @since        2.0.0
255
-    * @since        3.0.0       Changed the scope to public from protected.
256
-    * @since        3.3.1       Moved from `AdminPageFramework`.
257
-    * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
258
-    * @param        string      the tagged HTML link text.
259
-    * @param        string      (optional) another tagged HTML link text.
260
-    * @param        string      (optional) add more as many as want by adding items to the next parameters.
261
-    * @access       public
262
-    * @return       void
263
-    */
247
+     * Adds the given link(s) into the title cell of the plugin listing table.
248
+     *
249
+     * <h4>Example</h4>
250
+     * <code>$this->addLinkToPluginTitle(
251
+     *       "<a href='http://www.wordpress.org'>WordPress</a>"
252
+     * );</code>
253
+     *
254
+     * @since        2.0.0
255
+     * @since        3.0.0       Changed the scope to public from protected.
256
+     * @since        3.3.1       Moved from `AdminPageFramework`.
257
+     * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
258
+     * @param        string      the tagged HTML link text.
259
+     * @param        string      (optional) another tagged HTML link text.
260
+     * @param        string      (optional) add more as many as want by adding items to the next parameters.
261
+     * @access       public
262
+     * @return       void
263
+     */
264 264
     public function addLinkToPluginTitle( $sTaggedLinkHTML1, $sTaggedLinkHTML2=null, $_and_more=null ) {
265 265
 
266 266
         if ( 'plugins.php' !== $this->oProp->sPageNow ) {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     * @access       public
269 269
     * @return       void
270 270
     */
271
-    public function addLinkToPluginDescription( $sTaggedLinkHTML1, $sTaggedLinkHTML2=null, $_and_more=null ) {
271
+    public function addLinkToPluginDescription( $sTaggedLinkHTML1, $sTaggedLinkHTML2 = null, $_and_more = null ) {
272 272
         if ( 'plugins.php' !== $this->oProp->sPageNow ) {
273 273
             return;
274 274
         }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     * @access       public
294 294
     * @return       void
295 295
     */
296
-    public function addLinkToPluginTitle( $sTaggedLinkHTML1, $sTaggedLinkHTML2=null, $_and_more=null ) {
296
+    public function addLinkToPluginTitle( $sTaggedLinkHTML1, $sTaggedLinkHTML2 = null, $_and_more = null ) {
297 297
 
298 298
         if ( 'plugins.php' !== $this->oProp->sPageNow ) {
299 299
             return;
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      * @param       string      (optional) The class selector used in the message HTML element. 'error' and 'updated' are prepared by WordPress but it's not limited to them and can pass a custom name. Default: 'error'.
353 353
      * @param       string      (optional) The ID of the message. If not set, the hash of the message will be used.
354 354
      */
355
-    public function setAdminNotice( $sMessage, $sClassSelector='error', $sID='' ) {
355
+    public function setAdminNotice( $sMessage, $sClassSelector = 'error', $sID = '' ) {
356 356
 
357 357
         $sID = $sID ? $sID : md5( $sMessage );
358 358
 
@@ -389,9 +389,9 @@  discard block
 block discarded – undo
389 389
      * @param       boolean         If true, the passed key(s) will be appended to the property; otherwise, it will override the property.
390 390
      * @return      void
391 391
      */
392
-    public function setDisallowedQueryKeys( $asQueryKeys, $bAppend=true ) {
392
+    public function setDisallowedQueryKeys( $asQueryKeys, $bAppend = true ) {
393 393
 
394
-        if ( ! $bAppend ) {
394
+        if ( !$bAppend ) {
395 395
             $this->oProp->aDisallowedQueryKeys = ( array ) $asQueryKeys;
396 396
             return;
397 397
         }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      * @param       mixed       $vDefault       the default value that will be returned if nothing is stored.
435 435
      * @return      mixed       If the field ID is not specified
436 436
      */
437
-    static public function getOption( $sOptionKey, $asKey=null, $vDefault=null ) {
437
+    static public function getOption( $sOptionKey, $asKey = null, $vDefault = null ) {
438 438
         return AdminPageFramework_WPUtility::getOption( $sOptionKey, $asKey, $vDefault );
439 439
     }
440 440
 
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Controller_Page.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @return      void
94 94
      */
95 95
     public function addInPageTabs( /* $aTab1, $aTab2=null, $_and_more=null */ ) {
96
-        foreach( func_get_args() as $asTab ) {
96
+        foreach ( func_get_args() as $asTab ) {
97 97
             $this->addInPageTab( $asTab );
98 98
         }
99 99
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         // Target page slug - will be applied when no page slug is specified.
117 117
         static $__sTargetPageSlug;
118
-        if ( ! is_array( $asInPageTab ) ) {
118
+        if ( !is_array( $asInPageTab ) ) {
119 119
             $__sTargetPageSlug = is_string( $asInPageTab )
120 120
                 ? $asInPageTab
121 121
                 : $__sTargetPageSlug; // set the target page slug
@@ -130,23 +130,23 @@  discard block
 block discarded – undo
130 130
         );
131 131
 
132 132
         // Set the target page slug for next calls
133
-        $__sTargetPageSlug  = $aInPageTab[ 'page_slug' ];
133
+        $__sTargetPageSlug = $aInPageTab[ 'page_slug' ];
134 134
 
135 135
         // Required keys
136
-        if ( ! isset( $aInPageTab[ 'page_slug' ], $aInPageTab[ 'tab_slug' ] ) ) {
136
+        if ( !isset( $aInPageTab[ 'page_slug' ], $aInPageTab[ 'tab_slug' ] ) ) {
137 137
             return;
138 138
         }
139 139
 
140 140
         // Count - the number of added in-page tabs.
141
-        $_aElements         = $this->oUtil->getElement(
141
+        $_aElements = $this->oUtil->getElement(
142 142
             $this->oProp->aInPageTabs,
143 143
             $aInPageTab[ 'page_slug' ],
144 144
             array()
145 145
         );
146
-        $_iCountElement      = count( $_aElements );
146
+        $_iCountElement = count( $_aElements );
147 147
 
148 148
         // Pre-format
149
-        $aInPageTab         = array(
149
+        $aInPageTab = array(
150 150
             'page_slug' => $this->oUtil->sanitizeSlug( $aInPageTab[ 'page_slug' ] ),
151 151
             'tab_slug'  => $this->oUtil->sanitizeSlug( $aInPageTab[ 'tab_slug' ] ),
152 152
             'order'     => $this->oUtil->getAOrB(
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * @param       boolean     $bShow If false, the page title will not be displayed.
175 175
      * @return      void
176 176
      */
177
-    public function setPageTitleVisibility( $bShow=true, $sPageSlug='' ) {
177
+    public function setPageTitleVisibility( $bShow = true, $sPageSlug = '' ) {
178 178
         $this->_setPageProperty(
179 179
             'bShowPageTitle',
180 180
             'show_page_title',
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * @remark      Page-heading tabs and in-page tabs are different. The former displays page titles and the latter displays tab titles.
199 199
      * @remark      If the second parameter is omitted, it sets the default value.
200 200
      */
201
-    public function setPageHeadingTabsVisibility( $bShow=true, $sPageSlug='' ) {
201
+    public function setPageHeadingTabsVisibility( $bShow = true, $sPageSlug = '' ) {
202 202
         $this->_setPageProperty(
203 203
             'bShowPageHeadingTabs',
204 204
             'show_page_heading_tabs',
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @param       string      $sPageSlug  The page to apply the visibility setting. If not set, it applies to all the pages.
220 220
      * @remark      If the second parameter is omitted, it sets the default value.
221 221
      */
222
-    public function setInPageTabsVisibility( $bShow=true, $sPageSlug='' ) {
222
+    public function setInPageTabsVisibility( $bShow = true, $sPageSlug = '' ) {
223 223
         $this->_setPageProperty(
224 224
             'bShowInPageTabs',
225 225
             'show_in_page_tabs',
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * @param       string      $sPageSlug      The page slug that applies the setting.
243 243
      * @remark      If the second parameter is omitted, it sets the default value.
244 244
      */
245
-    public function setInPageTabTag( $sTag='h3', $sPageSlug='' ) {
245
+    public function setInPageTabTag( $sTag = 'h3', $sPageSlug = '' ) {
246 246
         $this->_setPageProperty(
247 247
             'sInPageTabTag',
248 248
             'in_page_tab_tag',
@@ -265,9 +265,9 @@  discard block
 block discarded – undo
265 265
      * @param       string      $sPageSlug  The page slug that applies the setting.
266 266
      * @remark      If the second parameter is omitted, it sets the default value.
267 267
      */
268
-    public function setPageHeadingTabTag( $sTag='h2', $sPageSlug='' ) {
268
+    public function setPageHeadingTabTag( $sTag = 'h2', $sPageSlug = '' ) {
269 269
         $this->_setPageProperty(
270
-            'sPageHeadingTabTag',   // property name
270
+            'sPageHeadingTabTag', // property name
271 271
             'page_heading_tab_tag', // property key
272 272
             $sTag, // value
273 273
             $sPageSlug  // page slug
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
             $this->oProp->{$sPropertyName} = $mValue;
291 291
 
292
-            foreach( $this->oProp->aPages as &$_aPage ) {
292
+            foreach ( $this->oProp->aPages as &$_aPage ) {
293 293
                 $_aPage[ $sPropertyKey ] = $mValue;
294 294
 
295 295
             }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
36 36
         $_sLinkURL = $this->_getPressedSubmitButtonData( $aSubmits, 'href' );
37
-        if ( ! $_sLinkURL ) {
37
+        if ( !$_sLinkURL ) {
38 38
             return;
39 39
         }
40 40
         $this->goToURL( $_sLinkURL );
Please login to merge, or discard this patch.
AdminPageFramework_Model__FormSubmission__Validator__ResetConfirm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
33 33
 
34 34
         // if the 'reset' key in the field definition array is set, this value will be set.
35
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
35
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
36 36
             return;
37 37
         }
38 38
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         );
43 43
 
44 44
         // Go to the catch clause.
45
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clasue.
45
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue.
46 46
         $_oException->aReturn = $this->_confirmSubmitButtonAction(
47 47
             $this->getElement( $aSubmitInformation, 'input_name' ),
48 48
             $this->getElement( $aSubmitInformation, 'section_id' ),
Please login to merge, or discard this patch.
AdminPageFramework_Model__FormSubmission__Validator__ContactFormConfirm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
34 34
 
35
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
35
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
36 36
             return;
37 37
         }
38 38
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         );
46 46
 
47 47
         // Go to the catch clause.
48
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clasue.
48
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue.
49 49
         $_oException->aReturn = $this->_confirmSubmitButtonAction(
50 50
             $this->getElement( $aSubmitInformation, 'input_name' ),
51 51
             $this->getElement( $aSubmitInformation, 'section_id' ),
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
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             : 'add_filter';
36 36
 
37 37
         $_sFunctionName(
38
-            $this->sActionHookPrefix . $this->oFactory->oProp->sClassName,
38
+            $this->sActionHookPrefix.$this->oFactory->oProp->sClassName,
39 39
             array( $this, $this->sCallbackName ),
40 40
             $this->iHookPriority,
41 41
             $this->iCallbackParameters
@@ -55,17 +55,17 @@  discard block
 block discarded – undo
55 55
      * @since   3.6.3       Moved from `AdminPageFramework_Validation`.
56 56
      * @return  array       The intact stored options.
57 57
      */
58
-    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType='reset' ) {
58
+    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType = 'reset' ) {
59 59
 
60
-        switch( $sType ) {
60
+        switch ( $sType ) {
61 61
             default:
62 62
             case 'reset':
63 63
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'reset_options' );
64
-                $_sTransientKey      =  'apf_rc_' . md5( $sPressedInputName . get_current_user_id() );
64
+                $_sTransientKey      = 'apf_rc_'.md5( $sPressedInputName.get_current_user_id() );
65 65
                 break;
66 66
             case 'email':
67 67
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'send_email' );
68
-                $_sTransientKey      =  'apf_ec_' . md5( $sPressedInputName . get_current_user_id() );
68
+                $_sTransientKey      = 'apf_ec_'.md5( $sPressedInputName.get_current_user_id() );
69 69
                 break;
70 70
         }
71 71
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $this->oFactory->setFieldErrors( $_aErrors );
88 88
 
89 89
         // Set a flag that the confirmation is displayed
90
-        $this->setTransient( $_sTransientKey, $sPressedInputName, 60*2 );
90
+        $this->setTransient( $_sTransientKey, $sPressedInputName, 60 * 2 );
91 91
 
92 92
         // Set the admin notice
93 93
         $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__Reset.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
36 36
 
37
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
37
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
38 38
             return;
39 39
         }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             'reset_key'
45 45
         );
46 46
         $_sKeyToReset = trim( $_sKeyToReset );
47
-        if ( ! $_sKeyToReset ) {
47
+        if ( !$_sKeyToReset ) {
48 48
             return;
49 49
         }
50 50
         $_oException = new Exception( 'aReturn' );
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
          * @return      boolean
62 62
          */
63 63
         protected function _shouldProceed( $oFactory, $aSubmits ) {
64
-            return ! $oFactory->hasFieldError();
64
+            return !$oFactory->hasFieldError();
65 65
         }
66 66
 
67 67
         /**
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
             $this->_doResetActions( $sKeyToReset, $aInputs, $aSubmitInformation );
80 80
 
81 81
             // As of 3.1.0, an empty value is accepted for the option key.
82
-            if ( ! $this->oFactory->oProp->sOptionKey ) {
82
+            if ( !$this->oFactory->oProp->sOptionKey ) {
83 83
                 return array();
84 84
             }
85 85
 
86 86
             // The key to delete is not specified, 1 is sent from the form input.
87
-            if ( in_array( $sKeyToReset, array( '1', ), true ) ) {
87
+            if ( in_array( $sKeyToReset, array( '1',), true ) ) {
88 88
                 delete_option( $this->oFactory->oProp->sOptionKey );
89 89
                 return array();
90 90
             }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Redirect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $aSubmits,
35 35
             'redirect_url'
36 36
         );
37
-        if ( ! $_sRedirectURL ) {
37
+        if ( !$_sRedirectURL ) {
38 38
             return;
39 39
         }
40 40
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
             if ( empty( $sURL ) ) {
71 71
                 return;
72 72
             }
73
-            $_sTransient = 'apf_rurl' . md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$sPageSlug}" ) );
74
-            return $this->setTransient( $_sTransient, $sURL , 60*2 );
73
+            $_sTransient = 'apf_rurl'.md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$sPageSlug}" ) );
74
+            return $this->setTransient( $_sTransient, $sURL, 60 * 2 );
75 75
         }
76 76
 
77 77
 }
Please login to merge, or discard this patch.