@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function get() { |
43 | 43 | |
44 | - foreach( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) { |
|
44 | + foreach ( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) { |
|
45 | 45 | |
46 | 46 | $_aDimensionalKeys = explode( '|', $_sFlatFieldAddress ); |
47 | 47 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | // If the retrieved value does not exist, null will be given. |
54 | 54 | // This occurs with page meta boxes. |
55 | - if ( ! is_array( $_aDynamicElements ) ) { |
|
55 | + if ( !is_array( $_aDynamicElements ) ) { |
|
56 | 56 | continue; |
57 | 57 | } |
58 | 58 |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | 'confirm_perform_task' => 'Please confirm your action.', |
82 | 82 | 'specified_option_been_deleted' => 'The specified options have been deleted.', |
83 | 83 | 'nonce_verification_failed' => 'A problem occurred while processing the form data. Please try again.', |
84 | - 'check_max_input_vars' => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+ |
|
85 | - 'send_email' => 'Is it okay to send the email?', // 3.3.0+ |
|
86 | - 'email_sent' => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated |
|
84 | + 'check_max_input_vars' => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+ |
|
85 | + 'send_email' => 'Is it okay to send the email?', // 3.3.0+ |
|
86 | + 'email_sent' => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated |
|
87 | 87 | 'email_scheduled' => 'The email has been scheduled.', // 3.3.5+ |
88 | - 'email_could_not_send' => 'There was a problem sending the email', // 3.3.0+ |
|
88 | + 'email_could_not_send' => 'There was a problem sending the email', // 3.3.0+ |
|
89 | 89 | |
90 | 90 | // AdminPageFramework_PostType |
91 | 91 | 'title' => 'Title', |
@@ -112,14 +112,14 @@ discard block |
||
112 | 112 | 'upload_file' => 'Upload File', |
113 | 113 | 'use_this_file' => 'Use This File', |
114 | 114 | 'select_file' => 'Select File', |
115 | - 'remove_value' => 'Remove Value', // 3.2.0+ |
|
116 | - 'select_all' => 'Select All', // 3.3.0+ |
|
117 | - 'select_none' => 'Select None', // 3.3.0+ |
|
115 | + 'remove_value' => 'Remove Value', // 3.2.0+ |
|
116 | + 'select_all' => 'Select All', // 3.3.0+ |
|
117 | + 'select_none' => 'Select None', // 3.3.0+ |
|
118 | 118 | 'no_term_found' => 'No term found.', // 3.3.2+ |
119 | 119 | |
120 | 120 | // AdminPageFramework_Form_View___Script_{...} |
121 | 121 | 'select' => 'Select', // 3.4.2+ |
122 | - 'insert' => 'Insert', // 3.4.2+ |
|
122 | + 'insert' => 'Insert', // 3.4.2+ |
|
123 | 123 | 'use_this' => 'Use This', // 3.4.2+ |
124 | 124 | 'return_to_library' => 'Return to Library', // 3.4.2+ |
125 | 125 | |
@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | |
132 | 132 | // Repeatable sections & fields |
133 | 133 | 'repeatable_section_is_disabled' => 'The ability to repeat sections is disabled.', // 3.8.13+ |
134 | - 'repeatable_field_is_disabled' => 'The ability to repeat fields is disabled.', // 3.8.13+ |
|
135 | - 'warning_caption' => 'Warning', // 3.8.13+ |
|
134 | + 'repeatable_field_is_disabled' => 'The ability to repeat fields is disabled.', // 3.8.13+ |
|
135 | + 'warning_caption' => 'Warning', // 3.8.13+ |
|
136 | 136 | |
137 | 137 | // AdminPageFramework_FormField |
138 | 138 | 'allowed_maximum_number_of_fields' => 'The allowed maximum number of fields is {0}.', |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * @remark This class should be instantiated via this method. |
215 | 215 | * @return AdminPageFramework_Message |
216 | 216 | */ |
217 | - public static function getInstance( $sTextDomain='admin-page-framework' ) { |
|
217 | + public static function getInstance( $sTextDomain = 'admin-page-framework' ) { |
|
218 | 218 | |
219 | 219 | $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message ) |
220 | 220 | ? self::$_aInstancesByTextDomain[ $sTextDomain ] |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * Ensures that only one instance of this class object exists. ( no multiple instances of this object ) |
228 | 228 | * @deprecated 3.2.0 |
229 | 229 | */ |
230 | - public static function instantiate( $sTextDomain='admin-page-framework' ) { |
|
230 | + public static function instantiate( $sTextDomain = 'admin-page-framework' ) { |
|
231 | 231 | return self::getInstance( $sTextDomain ); |
232 | 232 | } |
233 | 233 | |
@@ -235,14 +235,14 @@ discard block |
||
235 | 235 | * Sets up properties. |
236 | 236 | * @param string $sTextDomain |
237 | 237 | */ |
238 | - public function __construct( $sTextDomain='admin-page-framework' ) { |
|
238 | + public function __construct( $sTextDomain = 'admin-page-framework' ) { |
|
239 | 239 | |
240 | 240 | $this->_sTextDomain = $sTextDomain; |
241 | 241 | |
242 | 242 | // Fill the $aMessages property with the keys extracted from the $aDefaults property |
243 | 243 | // with the value of null. The null is set to let it trigger the __get() method |
244 | 244 | // so that each translation item gets processed individually. |
245 | - $this->aMessages = array_fill_keys( |
|
245 | + $this->aMessages = array_fill_keys( |
|
246 | 246 | array_keys( $this->aDefaults ), |
247 | 247 | null |
248 | 248 | ); |
@@ -277,13 +277,13 @@ discard block |
||
277 | 277 | * @param string $sKey |
278 | 278 | * @return string|array |
279 | 279 | */ |
280 | - public function get( $sKey='' ) { |
|
281 | - if ( ! $sKey ) { |
|
280 | + public function get( $sKey = '' ) { |
|
281 | + if ( !$sKey ) { |
|
282 | 282 | return $this->_getAllMessages(); |
283 | 283 | } |
284 | 284 | return isset( $this->aMessages[ $sKey ] ) |
285 | 285 | ? __( $this->aMessages[ $sKey ], $this->_sTextDomain ) |
286 | - : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get() |
|
286 | + : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get() |
|
287 | 287 | } |
288 | 288 | /** |
289 | 289 | * Returns the all registered messag items. |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function __construct( $oFactory ) { |
30 | 30 | |
31 | - $this->oFactory = $oFactory; |
|
31 | + $this->oFactory = $oFactory; |
|
32 | 32 | |
33 | 33 | // wp_mail() will be loaded by the time 'after_setup_theme' is loaded. |
34 | 34 | // @deprecated 3.7.0 |
@@ -52,17 +52,17 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function _replyToCheckRedirects() { |
54 | 54 | |
55 | - if ( ! $this->_shouldProceed() ) { |
|
55 | + if ( !$this->_shouldProceed() ) { |
|
56 | 56 | return; |
57 | 57 | } |
58 | 58 | |
59 | 59 | // The redirect transient key. |
60 | 60 | $_sPageSlug = sanitize_text_field( $_GET[ 'page' ] ); |
61 | - $_sTransient = 'apf_rurl' . md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_sPageSlug}" ) ); |
|
61 | + $_sTransient = 'apf_rurl'.md5( trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_sPageSlug}" ) ); |
|
62 | 62 | |
63 | 63 | // Check the settings error transient. |
64 | 64 | $_aError = $this->oFactory->getFieldErrors(); |
65 | - if ( ! empty( $_aError ) ) { |
|
65 | + if ( !empty( $_aError ) ) { |
|
66 | 66 | $this->deleteTransient( $_sTransient ); // we don't need it any more. |
67 | 67 | return; |
68 | 68 | } |
@@ -89,12 +89,12 @@ discard block |
||
89 | 89 | private function _shouldProceed() { |
90 | 90 | |
91 | 91 | // Check if it's one of the plugin's added page. If not, do nothing. |
92 | - if ( ! $this->oFactory->isInThePage() ) { |
|
92 | + if ( !$this->oFactory->isInThePage() ) { |
|
93 | 93 | return false; |
94 | 94 | } |
95 | 95 | |
96 | 96 | // If the settings have not updated the options, do nothing. |
97 | - if ( ! $this->getElement( $_GET, 'settings-updated', false ) ) { |
|
97 | + if ( !$this->getElement( $_GET, 'settings-updated', false ) ) { |
|
98 | 98 | return false; |
99 | 99 | } |
100 | 100 |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | * @since 3.5.4 Added the `$aHeader` parameter. Deprecated the `$sFileName` parameter as it is included in the $aHeader definition. |
100 | 100 | * @since 2.0.0 |
101 | 101 | */ |
102 | - public function doExport( $vData, $sFormatType=null, array $aHeader=array() ) { |
|
102 | + public function doExport( $vData, $sFormatType = null, array $aHeader = array() ) { |
|
103 | 103 | |
104 | - $sFormatType = isset( $sFormatType ) |
|
104 | + $sFormatType = isset( $sFormatType ) |
|
105 | 105 | ? $sFormatType |
106 | 106 | : $this->sFormatType; |
107 | 107 | |
@@ -129,9 +129,9 @@ discard block |
||
129 | 129 | * @param string $sKey |
130 | 130 | * @return void |
131 | 131 | */ |
132 | - private function _outputHTTPHeader( array $aHeader, $sKey='' ) { |
|
132 | + private function _outputHTTPHeader( array $aHeader, $sKey = '' ) { |
|
133 | 133 | |
134 | - foreach( $aHeader as $_sKey => $_asValue ) { |
|
134 | + foreach ( $aHeader as $_sKey => $_asValue ) { |
|
135 | 135 | |
136 | 136 | // Nested items. Set the key to overrider array keys. |
137 | 137 | if ( is_array( $_asValue ) ) { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | return; |
174 | 174 | case 'json': // for json. |
175 | 175 | echo json_encode( ( array ) $vData ); |
176 | - return ; |
|
176 | + return; |
|
177 | 177 | case 'array': // for serialized PHP array. |
178 | 178 | default: // for anything else, |
179 | 179 | echo serialize( ( array ) $vData ); |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | */ |
17 | 17 | class AdminPageFrameworkLoader_Registry_Base { |
18 | 18 | |
19 | - const VERSION = '3.8.25'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!! |
|
19 | + const VERSION = '3.8.25'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!! |
|
20 | 20 | const NAME = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing. |
21 | - const SHORTNAME = 'Admin Page Framework'; // used for a menu title etc. |
|
21 | + const SHORTNAME = 'Admin Page Framework'; // used for a menu title etc. |
|
22 | 22 | const DESCRIPTION = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.'; |
23 | 23 | const URI = 'http://admin-page-framework.michaeluno.jp/'; |
24 | 24 | const AUTHOR = 'miunosoft (Michael Uno)'; |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | * @remark This is also accessed from `uninstall.php` so do not remove. |
56 | 56 | * @remark Do not exceed 8 characters as a transient name allows 45 characters or less ( 40 for site transients ) so that md5 (32 characters) can be added. |
57 | 57 | */ |
58 | - const TRANSIENT_PREFIX = 'APFL_'; |
|
58 | + const TRANSIENT_PREFIX = 'APFL_'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * The hook slug used for the prefix of action and filter hook names. |
62 | 62 | * |
63 | 63 | * @remark The ending underscore is not necessary. |
64 | 64 | */ |
65 | - const HOOK_SLUG = 'admin_page_framework_loader'; |
|
65 | + const HOOK_SLUG = 'admin_page_framework_loader'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * The text domain slug and its path. |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | static public $aAdminPages = array( |
118 | 118 | // key => 'page slug' |
119 | - 'about' => 'apfl_about', // the welcome page |
|
119 | + 'about' => 'apfl_about', // the welcome page |
|
120 | 120 | 'addon' => 'apfl_addons', |
121 | 121 | 'tool' => 'apfl_tools', |
122 | 122 | 'help' => 'apfl_contact', |
@@ -154,12 +154,12 @@ discard block |
||
154 | 154 | * @since 3.5.0 |
155 | 155 | * @return string |
156 | 156 | */ |
157 | - public static function getPluginURL( $sRelativePath='' ) { |
|
157 | + public static function getPluginURL( $sRelativePath = '' ) { |
|
158 | 158 | if ( isset( self::$_sPluginURLCache ) ) { |
159 | - return self::$_sPluginURLCache . $sRelativePath; |
|
159 | + return self::$_sPluginURLCache.$sRelativePath; |
|
160 | 160 | } |
161 | 161 | self::$_sPluginURLCache = trailingslashit( plugins_url( '', self::$sFilePath ) ); |
162 | - return self::$_sPluginURLCache . $sRelativePath; |
|
162 | + return self::$_sPluginURLCache.$sRelativePath; |
|
163 | 163 | } |
164 | 164 | /** |
165 | 165 | * @since 3.7.9 |
@@ -189,13 +189,13 @@ discard block |
||
189 | 189 | * @since 3.5.0 |
190 | 190 | * @return void |
191 | 191 | */ |
192 | - static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) { |
|
193 | - if ( ! is_admin() ) { |
|
192 | + static public function setAdminNotice( $sMessage, $sClassAttribute = 'error' ) { |
|
193 | + if ( !is_admin() ) { |
|
194 | 194 | return; |
195 | 195 | } |
196 | - self::$_aAdminNotices[] = array( |
|
196 | + self::$_aAdminNotices[ ] = array( |
|
197 | 197 | 'message' => $sMessage, |
198 | - 'class_attribute' => trim( $sClassAttribute ) . ' notice is-dismissible', |
|
198 | + 'class_attribute' => trim( $sClassAttribute ).' notice is-dismissible', |
|
199 | 199 | ); |
200 | 200 | add_action( 'admin_notices', array( __CLASS__, '_replyToSetAdminNotice' ) ); |
201 | 201 | } |
@@ -205,12 +205,12 @@ discard block |
||
205 | 205 | * @return void |
206 | 206 | */ |
207 | 207 | static public function _replyToSetAdminNotice() { |
208 | - foreach( self::$_aAdminNotices as $_aAdminNotice ) { |
|
209 | - echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>" |
|
208 | + foreach ( self::$_aAdminNotices as $_aAdminNotice ) { |
|
209 | + echo "<div class='".esc_attr( $_aAdminNotice[ 'class_attribute' ] )." notice is-dismissible'>" |
|
210 | 210 | ."<p>" |
211 | 211 | . sprintf( |
212 | - '<strong>%1$s</strong>: ' . $_aAdminNotice['message'], |
|
213 | - self::NAME . ' ' . self::VERSION |
|
212 | + '<strong>%1$s</strong>: '.$_aAdminNotice[ 'message' ], |
|
213 | + self::NAME.' '.self::VERSION |
|
214 | 214 | ) |
215 | 215 | . "</p>" |
216 | 216 | . "</div>"; |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | AdminPageFrameworkLoader_Registry::setUp( __FILE__ ); |
223 | 223 | |
224 | 224 | // Initial checks. - Do no load if accessed directly, not exiting because the 'uninstall.php' and inclusion list generator will load this file. |
225 | -if ( ! defined( 'ABSPATH' ) ) { |
|
225 | +if ( !defined( 'ABSPATH' ) ) { |
|
226 | 226 | return; |
227 | 227 | } |
228 | 228 | if ( defined( 'DOING_UNINSTALL' ) && DOING_UNINSTALL ) { |
@@ -234,8 +234,8 @@ discard block |
||
234 | 234 | |
235 | 235 | $_bFrameworkLoaded = class_exists( 'AdminPageFramework_Registry', false ); |
236 | 236 | if ( |
237 | - ! $_bFrameworkLoaded |
|
238 | - || ! defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility |
|
237 | + !$_bFrameworkLoaded |
|
238 | + || !defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility |
|
239 | 239 | || version_compare( AdminPageFramework_Registry::VERSION, AdminPageFrameworkLoader_Registry::VERSION, '<' ) |
240 | 240 | ) { |
241 | 241 | AdminPageFrameworkLoader_Registry::setAdminNotice( |
@@ -253,18 +253,18 @@ discard block |
||
253 | 253 | add_action( 'admin_init', 'AdminPageFrameworkLoader_Warning' ); |
254 | 254 | |
255 | 255 | // Include the library file - the development version will be available if you cloned the GitHub repository. |
256 | -$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/development/admin-page-framework.php'; |
|
256 | +$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/development/admin-page-framework.php'; |
|
257 | 257 | $_bDebugMode = defined( 'WP_DEBUG' ) && WP_DEBUG; |
258 | 258 | $_bLoadDevelopmentVersion = $_bDebugMode && file_exists( $_sDevelopmentVersionPath ); |
259 | 259 | include( |
260 | 260 | $_bLoadDevelopmentVersion |
261 | 261 | ? $_sDevelopmentVersionPath |
262 | - : AdminPageFrameworkLoader_Registry::$sDirPath . '/library/apf/admin-page-framework.php' |
|
262 | + : AdminPageFrameworkLoader_Registry::$sDirPath.'/library/apf/admin-page-framework.php' |
|
263 | 263 | ); |
264 | 264 | |
265 | 265 | // Include the framework loader plugin components. |
266 | 266 | include( AdminPageFramework_Registry::$aClassFiles[ 'AdminPageFramework_PluginBootstrap' ] ); |
267 | -include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/AdminPageFrameworkLoader_Bootstrap.php' ); |
|
267 | +include( AdminPageFrameworkLoader_Registry::$sDirPath.'/include/class/AdminPageFrameworkLoader_Bootstrap.php' ); |
|
268 | 268 | new AdminPageFrameworkLoader_Bootstrap( |
269 | 269 | AdminPageFrameworkLoader_Registry::$sFilePath, |
270 | 270 | AdminPageFrameworkLoader_Registry::HOOK_SLUG // hook prefix |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @since 3.8.24 |
26 | 26 | */ |
27 | 27 | static public function getHTTPRequestSanitized( array $aRequest, $bStripSlashes ) { |
28 | - foreach( $aRequest as $_isIndex => $_mValue ) { |
|
28 | + foreach ( $aRequest as $_isIndex => $_mValue ) { |
|
29 | 29 | if ( is_array( $_mValue ) ) { |
30 | 30 | $aRequest[ $_isIndex ] = self::getHTTPRequestSanitized( $_mValue, $bStripSlashes ); |
31 | 31 | continue; |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | * @sicne 3.8.25 |
48 | 48 | * @see _sanitize_text_fields() |
49 | 49 | */ |
50 | - static private function ___getHTTPRequestTextValueSanitized( $sString, $bKeepLineFeeds=true ) { |
|
50 | + static private function ___getHTTPRequestTextValueSanitized( $sString, $bKeepLineFeeds = true ) { |
|
51 | 51 | |
52 | 52 | $_sFiltered = wp_check_invalid_utf8( $sString ); |
53 | - if ( ! $bKeepLineFeeds ) { |
|
53 | + if ( !$bKeepLineFeeds ) { |
|
54 | 54 | $_sFiltered = preg_replace( '/[\r\n\t ]+/', ' ', $_sFiltered ); |
55 | 55 | } |
56 | 56 | $_sFiltered = trim( $_sFiltered ); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @return mixed |
100 | 100 | * @since 3.8.24 |
101 | 101 | */ |
102 | - static public function getObjectCache( $asName, $mDefault=null ) { |
|
102 | + static public function getObjectCache( $asName, $mDefault = null ) { |
|
103 | 103 | return self::getArrayValueByArrayKeys( self::$___aObjectCache, self::getAsArray( $asName ), $mDefault ); |
104 | 104 | } |
105 | 105 | |
@@ -114,9 +114,9 @@ discard block |
||
114 | 114 | * @param string $sProgramName |
115 | 115 | * @since 3.8.8 |
116 | 116 | */ |
117 | - static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='Admin Page Framework' ) { |
|
117 | + static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = 'Admin Page Framework' ) { |
|
118 | 118 | trigger_error( |
119 | - $sProgramName . ': ' . sprintf( |
|
119 | + $sProgramName.': '.sprintf( |
|
120 | 120 | $sAlternative |
121 | 121 | ? '<code>%1$s</code> has been deprecated. Use <code>%2$s</code> instead.' |
122 | 122 | : '<code>%1$s</code> has been deprecated.', |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | * @param string|array $asParameters Parameters to pass to the callback function. |
140 | 140 | * @return mixed |
141 | 141 | */ |
142 | - public function callBack( $oCallable, $asParameters=array() ) { |
|
143 | - $_aParameters = self::getAsArray( |
|
142 | + public function callBack( $oCallable, $asParameters = array() ) { |
|
143 | + $_aParameters = self::getAsArray( |
|
144 | 144 | $asParameters, |
145 | 145 | true // preserve empty |
146 | 146 | ); |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * @param array $aParameters |
180 | 180 | * @return string The captured output buffer. |
181 | 181 | */ |
182 | - static public function getOutputBuffer( $cCallable, array $aParameters=array() ) { |
|
182 | + static public function getOutputBuffer( $cCallable, array $aParameters = array() ) { |
|
183 | 183 | |
184 | 184 | ob_start(); |
185 | 185 | echo call_user_func_array( $cCallable, $aParameters ); |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | $_iCount = count( get_object_vars( $oInstance ) ); |
203 | 203 | $_sClassName = get_class( $oInstance ); |
204 | - return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.'; |
|
204 | + return '(object) '.$_sClassName.': '.$_iCount.' properties.'; |
|
205 | 205 | |
206 | 206 | } |
207 | 207 | |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param boolean|integer|double|string|array|object|resource|NULL $mFalse The value to return when the first parameter value yields false. |
219 | 219 | * @return mixed |
220 | 220 | */ |
221 | - static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) { |
|
221 | + static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) { |
|
222 | 222 | return $mValue ? $mTrue : $mFalse; |
223 | 223 | } |
224 | 224 |