@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | * Stores the option values. |
29 | 29 | */ |
30 | 30 | public $aOptions = array( |
31 | - 'welcomed' => false, // if the welcome screen is displayed, this will be true. |
|
32 | - 'enable_admin_pages' => true, // whether or not to enable the admin pages of the loader plugin. |
|
31 | + 'welcomed' => false, // if the welcome screen is displayed, this will be true. |
|
32 | + 'enable_admin_pages' => true, // whether or not to enable the admin pages of the loader plugin. |
|
33 | 33 | 'enable_demo' => false, |
34 | - 'version_upgraded_from' => null, // the version number that the user has upgraded from |
|
35 | - 'version_saved' => null, // represents the option version. |
|
34 | + 'version_upgraded_from' => null, // the version number that the user has upgraded from |
|
35 | + 'version_saved' => null, // represents the option version. |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | /** |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @since 3.5.0 |
54 | 54 | */ |
55 | - static public function getInstance( $sOptionKey='' ) { |
|
55 | + static public function getInstance( $sOptionKey = '' ) { |
|
56 | 56 | |
57 | 57 | $sOptionKey = $sOptionKey |
58 | 58 | ? $sOptionKey |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function __construct( $sOptionKey ) { |
75 | 75 | |
76 | - $this->bIsNetworkAdmin = is_network_admin(); // must be done first |
|
76 | + $this->bIsNetworkAdmin = is_network_admin(); // must be done first |
|
77 | 77 | $this->sOptionKey = $sOptionKey; |
78 | 78 | $this->aOptions = $this->_getFormattedOptions( $sOptionKey ); |
79 | 79 | |
@@ -98,8 +98,8 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function hasUpgraded() { |
100 | 100 | |
101 | - $_sOptionVersion = $this->get( 'version_saved' ); |
|
102 | - if ( ! $_sOptionVersion ) { |
|
101 | + $_sOptionVersion = $this->get( 'version_saved' ); |
|
102 | + if ( !$_sOptionVersion ) { |
|
103 | 103 | return false; |
104 | 104 | } |
105 | 105 | $_sOptionVersion = $this->_getVersionByDepth( $_sOptionVersion ); |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | * Returns a stating part of version by the given depth. |
112 | 112 | * @since 3.5.0 |
113 | 113 | */ |
114 | - private function _getVersionByDepth( $sVersion, $iDepth=2 ) { |
|
115 | - if ( ! $iDepth ) { |
|
114 | + private function _getVersionByDepth( $sVersion, $iDepth = 2 ) { |
|
115 | + if ( !$iDepth ) { |
|
116 | 116 | return $sVersion; |
117 | 117 | } |
118 | 118 | $_aParts = explode( '.', $sVersion ); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * Deletes the option from the database. |
125 | 125 | */ |
126 | - public function delete() { |
|
126 | + public function delete() { |
|
127 | 127 | return $this->bIsNetworkAdmin |
128 | 128 | ? delete_site_option( $this->sOptionKey ) |
129 | 129 | : delete_option( $this->sOptionKey ); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Saves the options. |
134 | 134 | */ |
135 | - public function save( $aOptions=null ) { |
|
135 | + public function save( $aOptions = null ) { |
|
136 | 136 | |
137 | 137 | $_aOptions = $aOptions ? $aOptions : $this->aOptions; |
138 | 138 | return $this->bIsNetworkAdmin |
@@ -151,15 +151,15 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function set( /* $asKeys, $mValue */ ) { |
153 | 153 | |
154 | - $_aParameters = func_get_args(); |
|
155 | - if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) { |
|
154 | + $_aParameters = func_get_args(); |
|
155 | + if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) { |
|
156 | 156 | return; |
157 | 157 | } |
158 | 158 | $_asKeys = $_aParameters[ 0 ]; |
159 | 159 | $_mValue = $_aParameters[ 1 ]; |
160 | 160 | |
161 | 161 | // string, integer, float, boolean |
162 | - if ( ! is_array( $_asKeys ) ) { |
|
162 | + if ( !is_array( $_asKeys ) ) { |
|
163 | 163 | $this->aOptions[ $_asKeys ] = $_mValue; |
164 | 164 | return; |
165 | 165 | } |
@@ -174,8 +174,8 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function update( /* $asKeys, $mValue */ ) { |
176 | 176 | |
177 | - $_aParameters = func_get_args(); |
|
178 | - call_user_func_array( array( $this, 'set' ), $_aParameters ); |
|
177 | + $_aParameters = func_get_args(); |
|
178 | + call_user_func_array( array( $this, 'set' ), $_aParameters ); |
|
179 | 179 | $this->save(); |
180 | 180 | |
181 | 181 | } |
@@ -189,11 +189,11 @@ discard block |
||
189 | 189 | |
190 | 190 | $_mDefault = null; |
191 | 191 | $_aKeys = func_get_args(); |
192 | - if ( ! isset( $_aKeys[ 0 ] ) ) { |
|
192 | + if ( !isset( $_aKeys[ 0 ] ) ) { |
|
193 | 193 | return null; |
194 | 194 | } |
195 | 195 | if ( is_array( $_aKeys[ 0 ] ) ) { |
196 | - $_aKeys = $_aKeys[ 0 ]; |
|
196 | + $_aKeys = $_aKeys[ 0 ]; |
|
197 | 197 | $_mDefault = isset( $_aKeys[ 1 ] ) |
198 | 198 | ? $_aKeys[ 1 ] |
199 | 199 | : null; |
@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * Deletes the option from the database. |
125 | 125 | */ |
126 | - public function delete() { |
|
126 | + public function delete() { |
|
127 | 127 | return $this->bIsNetworkAdmin |
128 | 128 | ? delete_site_option( $this->sOptionKey ) |
129 | 129 | : delete_option( $this->sOptionKey ); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function _replyToSetFooterInfo() { |
38 | 38 | |
39 | - if ( ! $this->oProp->isPageAdded() ) { |
|
39 | + if ( ! $this->oProp->isPageAdded() ) { |
|
40 | 40 | return; |
41 | 41 | } |
42 | 42 | parent::_replyToSetFooterInfo(); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | public function _replyToAddSettingsLinkInPluginListingPage( $aLinks ) { |
212 | 212 | |
213 | 213 | // If the sub-pages are not added, do nothing. |
214 | - if ( count( $this->oProp->aPages ) < 1 ) { |
|
214 | + if ( count( $this->oProp->aPages ) < 1 ) { |
|
215 | 215 | return $aLinks; |
216 | 216 | } |
217 | 217 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | */ |
261 | 261 | public function _replyToAddLinkToPluginDescription( $aLinks, $sFile ) { |
262 | 262 | |
263 | - if ( $sFile !== plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ) ) { |
|
263 | + if ( $sFile !== plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ) ) { |
|
264 | 264 | return $aLinks; |
265 | 265 | } |
266 | 266 | |
@@ -271,7 +271,8 @@ discard block |
||
271 | 271 | if ( ! $_sLLinkHTML ) { |
272 | 272 | continue; |
273 | 273 | } |
274 | - if ( is_array( $_sLLinkHTML ) ) { // should not be an array |
|
274 | + if ( is_array( $_sLLinkHTML ) ) { |
|
275 | +// should not be an array |
|
275 | 276 | $_aAddingLinks = array_merge( $_sLLinkHTML, $_aAddingLinks ); |
276 | 277 | continue; |
277 | 278 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $this->oProp->aPluginTitleLinks = array_merge( |
91 | 91 | $this->oProp->aPluginTitleLinks, |
92 | 92 | $asLinks |
93 | - ); |
|
93 | + ); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $this->_addFilterHook_PluginTitleActionLink(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function _replyToSetFooterInfo() { |
38 | 38 | |
39 | - if ( ! $this->oProp->isPageAdded() ) { |
|
39 | + if ( !$this->oProp->isPageAdded() ) { |
|
40 | 40 | return; |
41 | 41 | } |
42 | 42 | parent::_replyToSetFooterInfo(); |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function _addLinkToPluginDescription( $asLinks ) { |
58 | 58 | |
59 | - if ( ! is_array( $asLinks ) ) { |
|
60 | - $this->oProp->aPluginDescriptionLinks[] = $asLinks; |
|
59 | + if ( !is_array( $asLinks ) ) { |
|
60 | + $this->oProp->aPluginDescriptionLinks[ ] = $asLinks; |
|
61 | 61 | } else { |
62 | 62 | $this->oProp->aPluginDescriptionLinks = array_merge( |
63 | 63 | $this->oProp->aPluginDescriptionLinks, |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function _addLinkToPluginTitle( $asLinks ) { |
86 | 86 | |
87 | - if ( ! is_array( $asLinks ) ) { |
|
88 | - $this->oProp->aPluginTitleLinks[] = $asLinks; |
|
87 | + if ( !is_array( $asLinks ) ) { |
|
88 | + $this->oProp->aPluginTitleLinks[ ] = $asLinks; |
|
89 | 89 | } else { |
90 | 90 | $this->oProp->aPluginTitleLinks = array_merge( |
91 | 91 | $this->oProp->aPluginTitleLinks, |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | } |
121 | 121 | $_sPluginBaseName = plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ); |
122 | 122 | add_filter( |
123 | - $this->_sFilterSuffix_PluginActionLinks . $_sPluginBaseName, |
|
123 | + $this->_sFilterSuffix_PluginActionLinks.$_sPluginBaseName, |
|
124 | 124 | array( $this, '_replyToAddPluginActionLinks' ) |
125 | 125 | ); |
126 | 126 | } |
@@ -133,14 +133,14 @@ discard block |
||
133 | 133 | * @return string |
134 | 134 | * @internal |
135 | 135 | */ |
136 | - public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) { |
|
136 | + public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) { |
|
137 | 137 | |
138 | - if ( ! $this->_isPageAdded() ) { |
|
138 | + if ( !$this->_isPageAdded() ) { |
|
139 | 139 | return $sLinkHTML; // $sLinkHTML is given by the hook. |
140 | 140 | } |
141 | - $sLinkHTML = empty( $this->oProp->aScriptInfo['sName'] ) |
|
141 | + $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] ) |
|
142 | 142 | ? $sLinkHTML |
143 | - : $this->oProp->aFooterInfo['sLeft']; |
|
143 | + : $this->oProp->aFooterInfo[ 'sLeft' ]; |
|
144 | 144 | |
145 | 145 | $_sPageSlug = $this->oProp->getCurrentPageSlug(); |
146 | 146 | $_sTabSlug = $this->oProp->getCurrentTabSlug(); |
@@ -151,11 +151,11 @@ discard block |
||
151 | 151 | array( |
152 | 152 | $this->getAOrB( |
153 | 153 | $_sTabSlug, |
154 | - 'footer_left_' . $_sPageSlug . '_' . $_sTabSlug, |
|
154 | + 'footer_left_'.$_sPageSlug.'_'.$_sTabSlug, |
|
155 | 155 | null // will be ignored |
156 | 156 | ), |
157 | - 'footer_left_' . $_sPageSlug, |
|
158 | - 'footer_left_' . $this->oProp->sClassName |
|
157 | + 'footer_left_'.$_sPageSlug, |
|
158 | + 'footer_left_'.$this->oProp->sClassName |
|
159 | 159 | ), |
160 | 160 | $sLinkHTML |
161 | 161 | ); |
@@ -169,9 +169,9 @@ discard block |
||
169 | 169 | * @return string |
170 | 170 | * @internal |
171 | 171 | */ |
172 | - public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) { |
|
172 | + public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) { |
|
173 | 173 | |
174 | - if ( ! $this->_isPageAdded() ) { |
|
174 | + if ( !$this->_isPageAdded() ) { |
|
175 | 175 | return $sLinkHTML; // $sLinkTHML is given by the hook. |
176 | 176 | } |
177 | 177 | |
@@ -184,13 +184,13 @@ discard block |
||
184 | 184 | array( |
185 | 185 | $this->getAOrB( |
186 | 186 | $_sTabSlug, |
187 | - 'footer_right_' . $_sPageSlug . '_' . $_sTabSlug, |
|
187 | + 'footer_right_'.$_sPageSlug.'_'.$_sTabSlug, |
|
188 | 188 | null // will be ignored |
189 | 189 | ), |
190 | - 'footer_right_' . $_sPageSlug, |
|
191 | - 'footer_right_' . $this->oProp->sClassName |
|
190 | + 'footer_right_'.$_sPageSlug, |
|
191 | + 'footer_right_'.$this->oProp->sClassName |
|
192 | 192 | ), |
193 | - $this->oProp->aFooterInfo['sRight'] |
|
193 | + $this->oProp->aFooterInfo[ 'sRight' ] |
|
194 | 194 | ); |
195 | 195 | |
196 | 196 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | private function _isPageAdded() { |
205 | 205 | |
206 | - if ( ! isset( $_GET[ 'page' ] ) ) { |
|
206 | + if ( !isset( $_GET[ 'page' ] ) ) { |
|
207 | 207 | return false; |
208 | 208 | } |
209 | 209 | return ( bool ) $this->oProp->isPageAdded( $_GET[ 'page' ] ); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | : $this->oProp->sLabelPluginSettingsLink; |
229 | 229 | |
230 | 230 | // If the user disables the settings link, the label property is empty. If so, do not add it. |
231 | - if ( ! $this->oProp->sLabelPluginSettingsLink ) { |
|
231 | + if ( !$this->oProp->sLabelPluginSettingsLink ) { |
|
232 | 232 | return $aLinks; |
233 | 233 | } |
234 | 234 | |
@@ -246,13 +246,13 @@ discard block |
||
246 | 246 | array_unshift( |
247 | 247 | $aLinks, |
248 | 248 | // '<a href="' . esc_url( $_sLinkURL ) . '">' |
249 | - '<a ' . $this->getAttributes( |
|
249 | + '<a '.$this->getAttributes( |
|
250 | 250 | array( |
251 | 251 | 'href' => esc_url( $_sLinkURL ), |
252 | 252 | // 3.5.7+ Added for acceptance testing |
253 | 253 | 'class' => 'apf-plugin-title-action-link apf-post-type', |
254 | 254 | ) |
255 | - ) . '>' |
|
255 | + ).'>' |
|
256 | 256 | . $this->oProp->sLabelPluginSettingsLink |
257 | 257 | . '</a>' |
258 | 258 | ); |
@@ -275,16 +275,16 @@ discard block |
||
275 | 275 | |
276 | 276 | // Backward compatibility sanitisation. |
277 | 277 | $_aAddingLinks = array(); |
278 | - foreach( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) { |
|
278 | + foreach ( array_filter( $this->oProp->aPluginDescriptionLinks ) as $_sLLinkHTML ) { |
|
279 | 279 | |
280 | - if ( ! $_sLLinkHTML ) { |
|
280 | + if ( !$_sLLinkHTML ) { |
|
281 | 281 | continue; |
282 | 282 | } |
283 | 283 | if ( is_array( $_sLLinkHTML ) ) { // should not be an array |
284 | 284 | $_aAddingLinks = array_merge( $_sLLinkHTML, $_aAddingLinks ); |
285 | 285 | continue; |
286 | 286 | } |
287 | - $_aAddingLinks[] = ( string ) $_sLLinkHTML; |
|
287 | + $_aAddingLinks[ ] = ( string ) $_sLLinkHTML; |
|
288 | 288 | |
289 | 289 | } |
290 | 290 | return array_merge( $aLinks, $_aAddingLinks ); |
@@ -301,13 +301,13 @@ discard block |
||
301 | 301 | public function _replyToAddPluginActionLinks( $aLinks ) { |
302 | 302 | |
303 | 303 | $_aAddingLinks = array(); |
304 | - foreach( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) { |
|
304 | + foreach ( array_filter( $this->oProp->aPluginTitleLinks ) as $_sLinkHTML ) { |
|
305 | 305 | |
306 | 306 | if ( is_array( $_sLinkHTML ) ) { |
307 | 307 | $_aAddingLinks = array_merge( $_sLinkHTML, $_aAddingLinks ); |
308 | 308 | continue; |
309 | 309 | } |
310 | - $_aAddingLinks[] = ( string ) $_sLinkHTML; |
|
310 | + $_aAddingLinks[ ] = ( string ) $_sLinkHTML; |
|
311 | 311 | |
312 | 312 | } |
313 | 313 | return array_merge( $aLinks, $_aAddingLinks ); |
@@ -107,8 +107,8 @@ |
||
107 | 107 | } |
108 | 108 | CSSRULES; |
109 | 109 | |
110 | - return $_sCSS . PHP_EOL |
|
111 | - . self::_getPageLoadStatsRules() . PHP_EOL |
|
110 | + return $_sCSS.PHP_EOL |
|
111 | + . self::_getPageLoadStatsRules().PHP_EOL |
|
112 | 112 | . self::_getVersionSpecificRules(); |
113 | 113 | |
114 | 114 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Stores the section definition. |
45 | 45 | */ |
46 | - public $aSection = array(); |
|
46 | + public $aSection = array(); |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Indicates the sub section index. |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | |
92 | 92 | $_aSection[ '_is_collapsible' ] = $_aSection[ 'collapsible' ] && 'section' === $_aSection[ 'collapsible' ][ 'container' ]; |
93 | 93 | |
94 | - $_aSection[ '_tag_id' ] = 'section-' . $_aSection[ 'section_id' ] . '__' . $this->iIndex; |
|
95 | - $_aSection[ '_tag_id_model' ] = 'section-' . $_aSection[ 'section_id' ] . '__' . '___i___'; |
|
94 | + $_aSection[ '_tag_id' ] = 'section-'.$_aSection[ 'section_id' ].'__'.$this->iIndex; |
|
95 | + $_aSection[ '_tag_id_model' ] = 'section-'.$_aSection[ 'section_id' ].'__'.'___i___'; |
|
96 | 96 | |
97 | 97 | return $_aSection; |
98 | 98 |
@@ -236,7 +236,7 @@ |
||
236 | 236 | */ |
237 | 237 | private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) { |
238 | 238 | |
239 | - if ( ! $aSectionset[ 'title' ] ){ |
|
239 | + if ( ! $aSectionset[ 'title' ] ) { |
|
240 | 240 | return false; |
241 | 241 | } |
242 | 242 | if ( $aSectionset[ 'collapsible' ] ) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | private function _getCaption( array $aSectionset, $iSectionIndex, $aFieldsets, $aFieldErrors, $aFieldTypeDefinitions, $aCallbacks, $oMsg ) { |
82 | 82 | |
83 | - if ( ! $aSectionset[ 'description' ] && ! $aSectionset[ 'title' ] ) { |
|
83 | + if ( !$aSectionset[ 'description' ] && !$aSectionset[ 'title' ] ) { |
|
84 | 84 | return "<caption class='admin-page-framework-section-caption' style='display:none;'></caption>"; |
85 | 85 | } |
86 | 86 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | 'collapsible' => $_abCollapsible, |
104 | 104 | 'container_type' => 'section', // section or sections |
105 | 105 | |
106 | - 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
106 | + 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
107 | 107 | ), |
108 | 108 | $aFieldsets, |
109 | 109 | $this->aSavedData, |
@@ -113,15 +113,15 @@ discard block |
||
113 | 113 | $aCallbacks // field output element callables. |
114 | 114 | ); |
115 | 115 | |
116 | - $_bShowTitle = empty( $_abCollapsible ) && ! $aSectionset[ 'section_tab_slug' ]; |
|
116 | + $_bShowTitle = empty( $_abCollapsible ) && !$aSectionset[ 'section_tab_slug' ]; |
|
117 | 117 | return |
118 | - "<caption " . $this->getAttributes( |
|
118 | + "<caption ".$this->getAttributes( |
|
119 | 119 | array( |
120 | 120 | 'class' => 'admin-page-framework-section-caption', |
121 | 121 | // data-section_tab is referred by the repeater script to hide/show the title and the description |
122 | 122 | 'data-section_tab' => $aSectionset[ 'section_tab_slug' ], |
123 | 123 | ) |
124 | - ) . ">" |
|
124 | + ).">" |
|
125 | 125 | . $_oCollapsibleSectionTitle->get() |
126 | 126 | . $this->getAOrB( |
127 | 127 | $_bShowTitle, |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | 'tag' => 'h3', |
176 | 176 | 'section_index' => $iSectionIndex, |
177 | 177 | |
178 | - 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
178 | + 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
179 | 179 | ), |
180 | 180 | $aFieldsets, |
181 | 181 | $this->aSavedData, |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $this->oMsg, |
185 | 185 | $this->aCallbacks // field output element callables. |
186 | 186 | ); |
187 | - return "<div " . $this->getAttributes( |
|
187 | + return "<div ".$this->getAttributes( |
|
188 | 188 | array( |
189 | 189 | 'class' => 'admin-page-framework-section-title', |
190 | 190 | 'style' => $this->getAOrB( |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | 'display: none;' |
194 | 194 | ), |
195 | 195 | ) |
196 | - ). ">" |
|
196 | + ).">" |
|
197 | 197 | . $_oSectionTitle->get() |
198 | 198 | . "</div>"; |
199 | 199 | } |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | if ( $aSectionset[ 'collapsible' ] ) { |
210 | 210 | return ''; |
211 | 211 | } |
212 | - if ( ! is_callable( $hfSectionCallback ) ) { |
|
212 | + if ( !is_callable( $hfSectionCallback ) ) { |
|
213 | 213 | return ''; |
214 | 214 | } |
215 | 215 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) { |
243 | 243 | |
244 | - if ( ! $aSectionset[ 'title' ] ){ |
|
244 | + if ( !$aSectionset[ 'title' ] ) { |
|
245 | 245 | return false; |
246 | 246 | } |
247 | 247 | if ( $aSectionset[ 'collapsible' ] ) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | private function _getFieldError( $aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage ) { |
66 | 66 | |
67 | 67 | // If this field has a section and the error element is set |
68 | - $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
68 | + $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
69 | 69 | if ( $this->_hasFieldError( $aErrors, $_aErrorPath ) ) { |
70 | 70 | return "<span class='field-error'>* " |
71 | 71 | . $sHeadingMessage |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | class AdminPageFramework_Form_View___Attribute_SectionTableBody extends AdminPageFramework_Form_View___Attribute_Base { |
19 | 19 | |
20 | - public $sContext = 'section_table_content'; |
|
20 | + public $sContext = 'section_table_content'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Returns an attribute array. |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | return array( |
36 | 36 | 'class' => $this->getAOrB( |
37 | 37 | $this->aArguments[ '_is_collapsible' ], |
38 | - 'admin-page-framework-collapsible-section-content' . ' ' |
|
39 | - . 'admin-page-framework-collapsible-content' . ' ' |
|
40 | - . 'accordion-section-content' . ' ' |
|
41 | - . 'admin-page-framework-collapsible-content-type-' . $_sCollapsibleType, |
|
38 | + 'admin-page-framework-collapsible-section-content'.' ' |
|
39 | + . 'admin-page-framework-collapsible-content'.' ' |
|
40 | + . 'accordion-section-content'.' ' |
|
41 | + . 'admin-page-framework-collapsible-content-type-'.$_sCollapsibleType, |
|
42 | 42 | null |
43 | 43 | ), |
44 | 44 | ); |
@@ -23,11 +23,11 @@ |
||
23 | 23 | */ |
24 | 24 | protected function _get() { |
25 | 25 | |
26 | - $_sSpinnerPath = $this->getWPAdminDirPath() . '/images/wpspin_light-2x.gif'; |
|
27 | - if ( ! file_exists( $_sSpinnerPath ) ) { |
|
26 | + $_sSpinnerPath = $this->getWPAdminDirPath().'/images/wpspin_light-2x.gif'; |
|
27 | + if ( !file_exists( $_sSpinnerPath ) ) { |
|
28 | 28 | return ''; |
29 | 29 | } |
30 | - $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
30 | + $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
31 | 31 | return <<<CSSRULES |
32 | 32 | .admin-page-framework-form-loading { |
33 | 33 | position: absolute; |
@@ -50,8 +50,8 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | $_aOutput = array(); |
53 | - foreach( $this->aDescriptions as $_sDescription ) { |
|
54 | - $_aOutput[] = "<p class='" . esc_attr( $this->sClassAttribute ) . "'>" |
|
53 | + foreach ( $this->aDescriptions as $_sDescription ) { |
|
54 | + $_aOutput[ ] = "<p class='".esc_attr( $this->sClassAttribute )."'>" |
|
55 | 55 | . "<span class='description'>" |
56 | 56 | . $_sDescription |
57 | 57 | . "</span>" |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @internal |
17 | 17 | * @extends AdminPageFramework_FrameworkUtility |
18 | 18 | */ |
19 | -class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility { |
|
19 | +class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility { |
|
20 | 20 | |
21 | 21 | public $aDescriptions = array(); |
22 | 22 |