@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | * @since 3.5.9 |
323 | 323 | * @return void |
324 | 324 | */ |
325 | - private function _setOptionsProperties( $aisOptionKey, $sClassName ) { |
|
325 | + private function _setOptionsProperties( $aisOptionKey, $sClassName ) { |
|
326 | 326 | |
327 | 327 | $_aArguments = is_array( $aisOptionKey ) |
328 | 328 | ? $aisOptionKey |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * @since 2.1.0 Set the default value to the parameter and if the parameter value is empty, it applies the current $_GET[ 'page' ] value. |
514 | 514 | * @return boolean Returns true if it is of framework's added page; otherwise, false. |
515 | 515 | */ |
516 | - public function isPageAdded( $sPageSlug='' ) { |
|
516 | + public function isPageAdded( $sPageSlug='' ) { |
|
517 | 517 | |
518 | 518 | $sPageSlug = trim( $sPageSlug ); |
519 | 519 | $sPageSlug = $sPageSlug |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | |
555 | 555 | // It is possible that the tab slug is not set if it is the default tab. |
556 | 556 | $_sTabSlug = $this->getElement( $_GET, 'tab' ); |
557 | - if ( $_sTabSlug ) { |
|
557 | + if ( $_sTabSlug ) { |
|
558 | 558 | return $_sTabSlug; |
559 | 559 | } |
560 | 560 | $sCurrentPageSlug = $sCurrentPageSlug |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | */ |
586 | 586 | public function getDefaultInPageTab( $sPageSlug ) { |
587 | 587 | |
588 | - if ( ! $sPageSlug ) { |
|
588 | + if ( ! $sPageSlug ) { |
|
589 | 589 | return ''; |
590 | 590 | } |
591 | 591 | return $this->getElement( |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | */ |
219 | 219 | public $aDisallowedQueryKeys = array( |
220 | 220 | 'settings-updated', |
221 | - 'confirmation', // 3.3.0+ |
|
221 | + 'confirmation', // 3.3.0+ |
|
222 | 222 | 'field_errors' // 3.4.1+ |
223 | 223 | ); |
224 | 224 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * Stores the cache lifetime of the transient used for the form options when the user passes an integer to the option key parameter. |
265 | 265 | * @since 3.5.9 |
266 | 266 | */ |
267 | - public $iOptionTransientDuration = 0; |
|
267 | + public $iOptionTransientDuration = 0; |
|
268 | 268 | |
269 | 269 | /** |
270 | 270 | * Constructs the instance of AdminPageFramework_Property_admin_page class object. |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | * @since 2.0.0 |
274 | 274 | * @since 2.1.5 The $oCaller parameter was added. |
275 | 275 | */ |
276 | - public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
276 | + public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) { |
|
277 | 277 | |
278 | 278 | // 3.7.0+ This must be set before the parent constructor. As the form arguments array uses this value. |
279 | - $this->_sFormRegistrationHook = 'load_after_' . $sClassName; |
|
279 | + $this->_sFormRegistrationHook = 'load_after_'.$sClassName; |
|
280 | 280 | |
281 | 281 | parent::__construct( |
282 | 282 | $oCaller, |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | } |
353 | 353 | // The user want to save options in a transient. |
354 | 354 | if ( in_array( $_sType, array( 'integer' ) ) ) { |
355 | - return 'apf_' . md5( site_url() . '_' . $sClassName . '_' . get_current_user_id() ); |
|
355 | + return 'apf_'.md5( site_url().'_'.$sClassName.'_'.get_current_user_id() ); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | // Unknown type - maybe the user is trying to do something advanced. |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | */ |
380 | 380 | protected function _isAdminPage() { |
381 | 381 | |
382 | - if ( ! is_admin() ) { |
|
382 | + if ( !is_admin() ) { |
|
383 | 383 | return false; |
384 | 384 | } |
385 | 385 | return isset( $_GET[ 'page' ] ); |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | case 'transient': |
420 | 420 | return $this->getAsArray( |
421 | 421 | $this->getTransient( |
422 | - $this->sOptionKey, // transient key |
|
422 | + $this->sOptionKey, // transient key |
|
423 | 423 | array() // default |
424 | 424 | ) |
425 | 425 | ); |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * @since 3.1.1 Made it return a value. |
434 | 434 | * @return boolean True if saved; otherwise, false. |
435 | 435 | */ |
436 | - public function updateOption( $aOptions=null ) { |
|
436 | + public function updateOption( $aOptions = null ) { |
|
437 | 437 | |
438 | 438 | if ( $this->_bDisableSavingOptions ) { |
439 | 439 | return false; |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | ); |
462 | 462 | case 'transient': |
463 | 463 | return $this->setTransient( |
464 | - $this->sOptionKey, // transient key |
|
464 | + $this->sOptionKey, // transient key |
|
465 | 465 | $aOptions, |
466 | 466 | $this->iOptionTransientDuration |
467 | 467 | ); |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | * @since 2.1.0 Set the default value to the parameter and if the parameter value is empty, it applies the current $_GET[ 'page' ] value. |
477 | 477 | * @return boolean Returns true if it is of framework's added page; otherwise, false. |
478 | 478 | */ |
479 | - public function isPageAdded( $sPageSlug='' ) { |
|
479 | + public function isPageAdded( $sPageSlug = '' ) { |
|
480 | 480 | |
481 | 481 | $sPageSlug = trim( $sPageSlug ); |
482 | 482 | $sPageSlug = $sPageSlug |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | */ |
496 | 496 | public function getCurrentPageSlug() { |
497 | 497 | return $this->getElement( |
498 | - $_GET, // subject array |
|
498 | + $_GET, // subject array |
|
499 | 499 | 'page', // key |
500 | 500 | '' // default |
501 | 501 | ); |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * @return string The found tab slug. An empty string if not found. |
514 | 514 | * @remark Do not return `null` when not found as some framework methods check the returned value with `isset()` and if null is given, `isset()` yields `false` while it does `true` for an empty string (''). |
515 | 515 | */ |
516 | - public function getCurrentTabSlug( $sCurrentPageSlug='' ) { |
|
516 | + public function getCurrentTabSlug( $sCurrentPageSlug = '' ) { |
|
517 | 517 | |
518 | 518 | // It is possible that the tab slug is not set if it is the default tab. |
519 | 519 | $_sTabSlug = $this->getElement( $_GET, 'tab' ); |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * |
534 | 534 | * @deprecated 3.5.3 |
535 | 535 | */ |
536 | - public function getCurrentTab( $sCurrentPageSlug='' ) { |
|
536 | + public function getCurrentTab( $sCurrentPageSlug = '' ) { |
|
537 | 537 | return $this->getCurrentTabSlug( $sCurrentPageSlug ); |
538 | 538 | } |
539 | 539 | |
@@ -548,11 +548,11 @@ discard block |
||
548 | 548 | */ |
549 | 549 | public function getDefaultInPageTab( $sPageSlug ) { |
550 | 550 | |
551 | - if ( ! $sPageSlug ) { |
|
551 | + if ( !$sPageSlug ) { |
|
552 | 552 | return ''; |
553 | 553 | } |
554 | 554 | return $this->getElement( |
555 | - $this->aDefaultInPageTabs, // subject array |
|
555 | + $this->aDefaultInPageTabs, // subject array |
|
556 | 556 | $sPageSlug, // key |
557 | 557 | '' // default |
558 | 558 | ); |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function _replyToEnableMetaBox() { |
53 | 53 | |
54 | - if ( ! $this->_isMetaBoxAdded() ) { |
|
54 | + if ( !$this->_isMetaBoxAdded() ) { |
|
55 | 55 | return; |
56 | 56 | } |
57 | 57 | |
58 | - $_sCurrentScreenID = $this->getCurrentScreenID(); |
|
58 | + $_sCurrentScreenID = $this->getCurrentScreenID(); |
|
59 | 59 | |
60 | 60 | // Trigger the add_meta_boxes hooks to allow meta boxes to be added. |
61 | 61 | do_action( "add_meta_boxes_{$_sCurrentScreenID}", null ); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | // 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. |
86 | 86 | if ( isset( $GLOBALS[ 'page_hook' ] ) ) { |
87 | 87 | add_action( |
88 | - "admin_footer-{$GLOBALS['page_hook']}", |
|
88 | + "admin_footer-{$GLOBALS[ 'page_hook' ]}", |
|
89 | 89 | array( $this, '_replyToAddMetaboxScript' ) |
90 | 90 | ); |
91 | 91 | } |
@@ -109,11 +109,11 @@ discard block |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | $_sPageSlug = $this->getElement( $_GET, 'page', '' ); |
112 | - if ( ! $_sPageSlug ) { |
|
112 | + if ( !$_sPageSlug ) { |
|
113 | 113 | return false; |
114 | 114 | } |
115 | 115 | |
116 | - foreach( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) { |
|
116 | + foreach ( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) { |
|
117 | 117 | if ( $this->_isPageOfMetaBox( $_sPageSlug, $_oMetaBox ) ) { |
118 | 118 | return true; |
119 | 119 | } |
@@ -131,10 +131,10 @@ discard block |
||
131 | 131 | */ |
132 | 132 | private function _isPageOfMetaBox( $sPageSlug, $oMetaBox ) { |
133 | 133 | |
134 | - if ( in_array( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) { |
|
134 | + if ( in_array( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) { |
|
135 | 135 | return true; // for numeric keys with a string value. |
136 | 136 | } |
137 | - if ( ! array_key_exists( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) { |
|
137 | + if ( !array_key_exists( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) { |
|
138 | 138 | return false; // for keys of page slugs, the key does not exist, it means not added. |
139 | 139 | } |
140 | 140 |
@@ -109,12 +109,12 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | $_sPageSlug = $this->getElement( $_GET, 'page', '' ); |
112 | - if ( ! $_sPageSlug ) { |
|
112 | + if ( ! $_sPageSlug ) { |
|
113 | 113 | return false; |
114 | 114 | } |
115 | 115 | |
116 | 116 | foreach( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) { |
117 | - if ( $this->_isPageOfMetaBox( $_sPageSlug, $_oMetaBox ) ) { |
|
117 | + if ( $this->_isPageOfMetaBox( $_sPageSlug, $_oMetaBox ) ) { |
|
118 | 118 | return true; |
119 | 119 | } |
120 | 120 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if ( in_array( $oProp->sClassName, self::$aClassNames ) ) |
32 | 32 | return self::$_oInstance; |
33 | 33 | |
34 | - self::$aClassNames[] = $oProp->sClassName; |
|
34 | + self::$aClassNames[ ] = $oProp->sClassName; |
|
35 | 35 | self::$_oInstance = new AdminPageFramework_PageLoadInfo_Page( $oProp, $oMsg ); |
36 | 36 | |
37 | 37 | return self::$_oInstance; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public static function instantiate( $oProp, $oMsg ) { |
30 | 30 | |
31 | - if ( in_array( $oProp->sClassName, self::$aClassNames ) ) { |
|
31 | + if ( in_array( $oProp->sClassName, self::$aClassNames ) ) { |
|
32 | 32 | return self::$_oInstance; |
33 | 33 | } |
34 | 34 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * @return void |
65 | 65 | * @internal |
66 | 66 | */ |
67 | - protected function _renderPage( $sPageSlug, $sTabSlug=null ) { |
|
67 | + protected function _renderPage( $sPageSlug, $sTabSlug = null ) { |
|
68 | 68 | $_oPageRenderer = new AdminPageFramework_View__PageRenderer( $this, $sPageSlug, $sTabSlug ); |
69 | 69 | $_oPageRenderer->render(); |
70 | 70 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @since 2.1.0 |
55 | 55 | * @internal |
56 | 56 | */ |
57 | - protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) { |
|
57 | + protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents = array() ) { |
|
58 | 58 | |
59 | 59 | if ( empty( $aContents ) ) { |
60 | 60 | return; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ) |
72 | 72 | ); |
73 | 73 | |
74 | - if ( ! empty( $aSideBarContents ) ) { |
|
74 | + if ( !empty( $aSideBarContents ) ) { |
|
75 | 75 | $this->_oScreen->set_help_sidebar( implode( PHP_EOL, $aSideBarContents ) ); |
76 | 76 | } |
77 | 77 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @internal |
84 | 84 | */ |
85 | 85 | protected function _formatHelpDescription( $sHelpDescription ) { |
86 | - return "<div class='contextual-help-description'>" . $sHelpDescription . "</div>"; |
|
86 | + return "<div class='contextual-help-description'>".$sHelpDescription."</div>"; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | |
@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | * @remark This method just adds the given text into the class property. The actual registration will be performed with the <em>replyToRegisterHelpTabTextForMetaBox()</em> method. |
107 | 107 | * @internal |
108 | 108 | */ |
109 | - public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent="" ) { |
|
109 | + public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent = "" ) { |
|
110 | 110 | |
111 | - $this->oProp->aHelpTabText[] = "<div class='contextual-help-description'>" . $sHTMLContent . "</div>"; |
|
112 | - $this->oProp->aHelpTabTextSide[] = "<div class='contextual-help-description'>" . $sHTMLSidebarContent . "</div>"; |
|
111 | + $this->oProp->aHelpTabText[ ] = "<div class='contextual-help-description'>".$sHTMLContent."</div>"; |
|
112 | + $this->oProp->aHelpTabTextSide[ ] = "<div class='contextual-help-description'>".$sHTMLSidebarContent."</div>"; |
|
113 | 113 | |
114 | 114 | } |
115 | 115 | |
@@ -125,9 +125,9 @@ discard block |
||
125 | 125 | * @remark This method just adds the given text into the class property. The actual registration will be performed with the `replyToRegisterHelpTabTextForMetaBox()` method. |
126 | 126 | * @internal |
127 | 127 | */ |
128 | - public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar="" ) { |
|
128 | + public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar = "" ) { |
|
129 | 129 | $this->_addHelpText( |
130 | - "<span class='contextual-help-tab-title'>" . $sFieldTitle . "</span> - " . PHP_EOL |
|
130 | + "<span class='contextual-help-tab-title'>".$sFieldTitle."</span> - ".PHP_EOL |
|
131 | 131 | . $sHelpText, |
132 | 132 | $sHelpTextSidebar |
133 | 133 | ); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | public function _replyToRegisterHelpTabText() { |
146 | 146 | |
147 | 147 | // Check if the currently loaded page is of meta box page. |
148 | - if ( ! $this->_isInThePage() ) { |
|
148 | + if ( !$this->_isInThePage() ) { |
|
149 | 149 | return false; |
150 | 150 | } |
151 | 151 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) { |
58 | 58 | |
59 | - if ( empty( $aContents ) ) { |
|
59 | + if ( empty( $aContents ) ) { |
|
60 | 60 | return; |
61 | 61 | } |
62 | 62 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | public function _replyToRegisterHelpTabText() { |
146 | 146 | |
147 | 147 | // Check if the currently loaded page is of meta box page. |
148 | - if ( ! $this->_isInThePage() ) { |
|
148 | + if ( ! $this->_isInThePage() ) { |
|
149 | 149 | return false; |
150 | 150 | } |
151 | 151 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $_aParameters = func_get_args() + array( |
36 | 36 | $this->aSubject, |
37 | 37 | ); |
38 | - $this->aSubject = $_aParameters[ 0 ]; |
|
38 | + $this->aSubject = $_aParameters[ 0 ]; |
|
39 | 39 | |
40 | 40 | } |
41 | 41 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Stores the tab items. |
28 | 28 | */ |
29 | - public $aTabs = array(); |
|
29 | + public $aTabs = array(); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Stores container attributes. |
@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | ); |
37 | 37 | |
38 | 38 | public $aTab = array( |
39 | - 'slug' => null, // (string) tab slug (id) |
|
40 | - 'title' => null, // (string) tab title |
|
41 | - 'href' => null, // (string) link url |
|
42 | - 'disabled' => null, // (boolean) |
|
43 | - 'class' => null, // (string) class selector to append to the class attribute |
|
39 | + 'slug' => null, // (string) tab slug (id) |
|
40 | + 'title' => null, // (string) tab title |
|
41 | + 'href' => null, // (string) link url |
|
42 | + 'disabled' => null, // (boolean) |
|
43 | + 'class' => null, // (string) class selector to append to the class attribute |
|
44 | 44 | 'attributes' => array(), |
45 | 45 | ); |
46 | 46 | |
@@ -59,11 +59,11 @@ discard block |
||
59 | 59 | * @param array $aTabs An array holding each tab definitions |
60 | 60 | * @param array|string $asActiveTabSlugs The default tab slug. |
61 | 61 | */ |
62 | - public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag='h2', $aAttributes=array( 'class' => 'nav-tab-wrapper', ), $aCallbacks=array() ) { |
|
62 | + public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag = 'h2', $aAttributes = array( 'class' => 'nav-tab-wrapper',), $aCallbacks = array() ) { |
|
63 | 63 | |
64 | - $this->aCallbacks = $aCallbacks + array( |
|
64 | + $this->aCallbacks = $aCallbacks + array( |
|
65 | 65 | 'format' => null, |
66 | - 'arguments' => null, // custom arguments to pass to the callback functions. |
|
66 | + 'arguments' => null, // custom arguments to pass to the callback functions. |
|
67 | 67 | ); |
68 | 68 | $this->aTabs = $this->_getFormattedTabs( $aTabs ); |
69 | 69 | $this->aActiveSlugs = $this->getAsArray( $asActiveTabSlugs ); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * @return array |
78 | 78 | */ |
79 | 79 | private function _getFormattedTabs( array $aTabs ) { |
80 | - foreach( $aTabs as $_isKey => &$_aTab ) { |
|
80 | + foreach ( $aTabs as $_isKey => &$_aTab ) { |
|
81 | 81 | $_aFormattedTab = $this->_getFormattedTab( $_aTab, $aTabs ); |
82 | 82 | if ( isset( $_aFormattedTab[ 'slug' ] ) ) { |
83 | 83 | $_aTab = $_aFormattedTab; |
@@ -128,12 +128,12 @@ discard block |
||
128 | 128 | private function _getTabs() { |
129 | 129 | |
130 | 130 | $_aOutput = array(); |
131 | - foreach( $this->aTabs as $_aTab ) { |
|
131 | + foreach ( $this->aTabs as $_aTab ) { |
|
132 | 132 | $_sTab = $this->_getTab( $_aTab ); |
133 | - if ( ! $_sTab ) { |
|
133 | + if ( !$_sTab ) { |
|
134 | 134 | continue; |
135 | 135 | } |
136 | - $_aOutput[] = $_sTab; |
|
136 | + $_aOutput[ ] = $_sTab; |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | $_aContainerAttributes = $this->aAttributes + array( 'class' => null ); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | return empty( $_aOutput ) |
146 | 146 | ? '' |
147 | - : "<{$this->sTabTag} " . $this->getAttributes( $_aContainerAttributes ) . ">" |
|
147 | + : "<{$this->sTabTag} ".$this->getAttributes( $_aContainerAttributes ).">" |
|
148 | 148 | . implode( '', $_aOutput ) |
149 | 149 | . "</{$this->sTabTag}>"; |
150 | 150 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @subpackage Tab |
17 | 17 | * @internal |
18 | 18 | */ |
19 | -class AdminPageFramework_TabNavigationBar extends AdminPageFramework_FrameworkUtility { |
|
19 | +class AdminPageFramework_TabNavigationBar extends AdminPageFramework_FrameworkUtility { |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * The HTML tag used for the tag. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @since 3.3.0 |
38 | 38 | */ |
39 | - public function __construct( $oMsg=null ) { |
|
39 | + public function __construct( $oMsg = null ) { |
|
40 | 40 | |
41 | 41 | $_sClassName = get_class( $this ); |
42 | 42 | if ( in_array( $_sClassName, self::$_aEnqueued ) ) { |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function _replyToPrintScript() { |
76 | 76 | $_sScript = $this->getScript( $this->oMsg ); |
77 | - if ( ! $_sScript ) { |
|
77 | + if ( !$_sScript ) { |
|
78 | 78 | return; |
79 | 79 | } |
80 | - echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>" |
|
80 | + echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>" |
|
81 | 81 | . $_sScript |
82 | 82 | . "</script>"; |
83 | 83 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @since 3.7.9 Added the second parameter to accept an action hook name. |
28 | 28 | */ |
29 | 29 | |
30 | - public function __construct( $oFactory, $sActionHookName='admin_notices' ) { |
|
30 | + public function __construct( $oFactory, $sActionHookName = 'admin_notices' ) { |
|
31 | 31 | |
32 | 32 | $this->oFactory = $oFactory; |
33 | 33 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function _replyToPrintSettingNotice() { |
48 | 48 | |
49 | - if ( ! $this->_shouldProceed() ) { |
|
49 | + if ( !$this->_shouldProceed() ) { |
|
50 | 50 | return; |
51 | 51 | } |
52 | 52 | $this->oFactory->oForm->printSubmitNotices(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | private function _shouldProceed() { |
62 | 62 | |
63 | - if ( ! $this->oFactory->_isInThePage() ) { |
|
63 | + if ( !$this->oFactory->_isInThePage() ) { |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | private function _shouldProceed() { |
62 | 62 | |
63 | - if ( ! $this->oFactory->_isInThePage() ) { |
|
63 | + if ( ! $this->oFactory->_isInThePage() ) { |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 |