Passed
Branch dev (d5661a)
by Michael
22:34
created
development/factory/meta_box/AdminPageFramework_MetaBox.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
      * @param       string            $sTextDomain              (optional) The text domain applied to the displayed text messages. Default: `admin-page-framework`.
54 54
      * @return      void
55 55
      */
56
-    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) {
56
+    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) {
57 57
 
58
-        if ( ! $this->_isInstantiatable() ) {
58
+        if ( !$this->_isInstantiatable() ) {
59 59
             return;
60 60
         }
61 61
         if ( empty( $asPostTypeOrScreenID ) ) {
@@ -65,15 +65,15 @@  discard block
 block discarded – undo
65 65
         // A property object needs to be done first.
66 66
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
67 67
             ? $this->aSubClassNames[ 'oProp' ]
68
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
69
-        $this->oProp                = new $_sPropertyClassName(
68
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
69
+        $this->oProp = new $_sPropertyClassName(
70 70
             $this,
71 71
             get_class( $this ),
72 72
             $sCapability,
73 73
             $sTextDomain,
74 74
             $this->_sStructureType
75 75
         );
76
-        $this->oProp->aPostTypes    = is_string( $asPostTypeOrScreenID )
76
+        $this->oProp->aPostTypes = is_string( $asPostTypeOrScreenID )
77 77
             ? array( $asPostTypeOrScreenID )
78 78
             : $asPostTypeOrScreenID;
79 79
 
Please login to merge, or discard this patch.
development/factory/term_meta/AdminPageFramework_TermMeta.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param       string          The text domain. Default: `admin-page-framework`.
46 46
      * @return      void
47 47
      */
48
-    public function __construct( $asTaxonomySlug, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
48
+    public function __construct( $asTaxonomySlug, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
49 49
 
50 50
         if ( empty( $asTaxonomySlug ) ) {
51 51
             return;
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
         // Properties
55 55
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
56 56
             ? $this->aSubClassNames[ 'oProp' ]
57
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
58
-        $this->oProp        = new $_sPropertyClassName(
57
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
58
+        $this->oProp = new $_sPropertyClassName(
59 59
             $this,
60 60
             get_class( $this ),
61 61
             $sCapability,
62 62
             $sTextDomain,
63 63
             $this->_sStructureType
64 64
         );
65
-        $this->oProp->aTaxonomySlugs    = ( array ) $asTaxonomySlug;
65
+        $this->oProp->aTaxonomySlugs = ( array ) $asTaxonomySlug;
66 66
 
67 67
         parent::__construct( $this->oProp );
68 68
 
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility_URL.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             0 => '',
53 53
             1 => 's',
54 54
         );
55
-        $_sProtocol         = substr( $_sServerProtocol, 0, strpos( $_sServerProtocol, '/' ) )
55
+        $_sProtocol = substr( $_sServerProtocol, 0, strpos( $_sServerProtocol, '/' ) )
56 56
             . $_aProtocolSuffix[ ( int ) $_bSSL ];
57 57
 
58 58
         // Port: e.g. :80
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
                 ? $_SERVER[ 'HTTP_HOST' ]
66 66
                 : $_SERVER[ 'SERVER_NAME' ]
67 67
             );
68
-        $_sHost             = preg_replace( '/:.+/', '', $_sHost ); // remove the port part in case it is added.
69
-        return $_sProtocol . '://' . $_sHost . $_sPort . $_SERVER[ 'REQUEST_URI' ];
68
+        $_sHost = preg_replace( '/:.+/', '', $_sHost ); // remove the port part in case it is added.
69
+        return $_sProtocol.'://'.$_sHost.$_sPort.$_SERVER[ 'REQUEST_URI' ];
70 70
 
71 71
     }
72 72
         /**
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
                 ? ( string ) $_SERVER[ 'SERVER_PORT' ]
81 81
                 : '';
82 82
             $_aPort     = array(
83
-                0 => ':' . $_sPort,
83
+                0 => ':'.$_sPort,
84 84
                 1 => '',
85 85
             );
86
-            $_bPortSet  = ( ! $bSSL && '80' === $_sPort ) || ( $bSSL && '443' === $_sPort );
86
+            $_bPortSet = ( !$bSSL && '80' === $_sPort ) || ( $bSSL && '443' === $_sPort );
87 87
             return $_aPort[ ( int ) $_bPortSet ];
88 88
         }
89 89
 
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_Option.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param   array|string    $asPrefixes
37 37
      * @retuen  void
38 38
      */
39
-    public static function cleanTransients( $asPrefixes=array( 'apf' ) ) {
39
+    public static function cleanTransients( $asPrefixes = array( 'apf' ) ) {
40 40
 
41 41
         $_aPrefixes = self::getAsArray( $asPrefixes );
42 42
         if ( self::isNetworkAdmin() ) {
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
         /**
47 47
          * @var wpdb
48 48
          */
49
-        $_oWPDB     = $GLOBALS[ 'wpdb' ];
50
-        foreach( $_aPrefixes as $_sPrefix ) {
49
+        $_oWPDB = $GLOBALS[ 'wpdb' ];
50
+        foreach ( $_aPrefixes as $_sPrefix ) {
51 51
             $_sSQLQuery = "DELETE FROM `{$_oWPDB->options}` "
52 52
                 . "WHERE `option_name` "
53
-                . "LIKE ( '_transient_%{$_sPrefix}%' )";    // this also matches _transient_timeout_{prefix}
53
+                . "LIKE ( '_transient_%{$_sPrefix}%' )"; // this also matches _transient_timeout_{prefix}
54 54
             $_oWPDB->query( $_sSQLQuery );
55 55
         }
56 56
 
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
         /**
67 67
          * @var wpdb
68 68
          */
69
-        $_oWPDB     = $GLOBALS[ 'wpdb' ];
70
-        foreach( $_aPrefixes as $_sPrefix ) {
69
+        $_oWPDB = $GLOBALS[ 'wpdb' ];
70
+        foreach ( $_aPrefixes as $_sPrefix ) {
71 71
             $_sSQLQuery = "DELETE FROM `{$_oWPDB->sitemeta}` "
72 72
                 . "WHERE "
73 73
                 // this matches _site_transient_timeout_{...} as well
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @return array
83 83
      * @since  3.8.23
84 84
      */
85
-    static public function getTransientAsArray( $sTransientKey, $mDefault=null ) {
85
+    static public function getTransientAsArray( $sTransientKey, $mDefault = null ) {
86 86
         return self::getAsArray(
87 87
             self::getTransient( $sTransientKey, $mDefault )
88 88
         );
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @return array
95 95
      * @since  3.8.23
96 96
      */
97
-    static public function getTransientWithoutCacheAsArray( $sTransientKey, $mDefault=null ) {
97
+    static public function getTransientWithoutCacheAsArray( $sTransientKey, $mDefault = null ) {
98 98
         return self::getAsArray(
99 99
             self::getTransientWithoutCache( $sTransientKey, $mDefault )
100 100
         );
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
      * @sicne   3.8.23
112 112
      * @return  mixed|false `false` on failing to retrieve the transient value.
113 113
      */
114
-    static public function getTransientWithoutCache( $sTransientKey, $mDefault=null ) {
114
+    static public function getTransientWithoutCache( $sTransientKey, $mDefault = null ) {
115 115
 
116
-        $sTransientKey  = self::_getCompatibleTransientKey( $sTransientKey );
116
+        $sTransientKey = self::_getCompatibleTransientKey( $sTransientKey );
117 117
         if ( self::isNetworkAdmin() ) {
118 118
             return self::getTransientWithoutCacheForNetwork( $sTransientKey, $mDefault );
119 119
         }
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
         $_mData = $_oWPDB->get_var(
132 132
             $_oWPDB->prepare(
133 133
                 $_sSQLQuery,
134
-                '_transient_' . $sTransientKey,
135
-                '_transient_timeout_' . $sTransientKey
134
+                '_transient_'.$sTransientKey,
135
+                '_transient_timeout_'.$sTransientKey
136 136
             )
137 137
         );
138 138
         return is_null( $_mData ) ? $mDefault : maybe_unserialize( $_mData );
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @since   3.8.23
146 146
      * @return  mixed
147 147
      */
148
-    static public function getTransientWithoutCacheForNetwork($sTransientKey, $mDefault ) {
148
+    static public function getTransientWithoutCacheForNetwork( $sTransientKey, $mDefault ) {
149 149
 
150 150
         /**
151 151
          * @var wpdb $_oWPDB
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
         $_mData = $_oWPDB->get_var(
162 162
             $_oWPDB->prepare(
163 163
                 $_sSQLQuery,
164
-                '_site_transient_' . $sTransientKey,
165
-                '_site_transient_timeout_' . $sTransientKey,
164
+                '_site_transient_'.$sTransientKey,
165
+                '_site_transient_timeout_'.$sTransientKey,
166 166
                 get_current_network_id()
167 167
             )
168 168
         );
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             0 => 'delete_transient',
196 196
             1 => 'delete_site_transient',
197 197
         );
198
-        $_vTransient     = $_aFunctionNames[ ( integer ) self::isNetworkAdmin() ]( $sTransientKey );
198
+        $_vTransient = $_aFunctionNames[ ( integer ) self::isNetworkAdmin() ]( $sTransientKey );
199 199
 
200 200
         // reset prior value of $_wp_using_ext_object_cache
201 201
         $_wp_using_ext_object_cache = $_bWpUsingExtObjectCacheTemp;
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @param   mixed   $vDefault
212 212
      * @return  mixed
213 213
      */
214
-    static public function getTransient( $sTransientKey, $vDefault=null ) {
214
+    static public function getTransient( $sTransientKey, $vDefault = null ) {
215 215
 
216 216
         // Temporarily disable $_wp_using_ext_object_cache
217 217
         global $_wp_using_ext_object_cache;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             0 => 'get_transient',
224 224
             1 => 'get_site_transient',
225 225
         );
226
-        $_vTransient     = $_aFunctionNames[ ( integer ) self::isNetworkAdmin() ]( $sTransientKey );
226
+        $_vTransient = $_aFunctionNames[ ( integer ) self::isNetworkAdmin() ]( $sTransientKey );
227 227
 
228 228
         // Restore the prior value of `$_wp_using_ext_object_cache`.
229 229
         $_wp_using_ext_object_cache = $_bWpUsingExtObjectCacheTemp;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      * @param       mixed       $vValue
246 246
      * @param       integer     $iExpiration
247 247
      */
248
-    static public function setTransient( $sTransientKey, $vValue, $iExpiration=0 ) {
248
+    static public function setTransient( $sTransientKey, $vValue, $iExpiration = 0 ) {
249 249
 
250 250
         // Temporarily disable `$_wp_using_ext_object_cache`.
251 251
         global $_wp_using_ext_object_cache;
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
          * @return      string
277 277
          * @todo it is said as of WordPress 4.3, it will be 255 since the database table column type becomes VARCHAR(255).
278 278
          */
279
-        static public function _getCompatibleTransientKey( $sSubject, $iDeprecated=null ) {
279
+        static public function _getCompatibleTransientKey( $sSubject, $iDeprecated = null ) {
280 280
 
281 281
             $_iAllowedCharacterLength = isset( $iDeprecated )
282 282
                 ? $iDeprecated
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                 0, // start position
295 295
                 $_iPrefixLengthToKeep - 1 // how many characters to extract
296 296
             );
297
-            return $_sPrefixToKeep . '_' . md5( $sSubject );
297
+            return $_sPrefixToKeep.'_'.md5( $sSubject );
298 298
 
299 299
         }
300 300
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * @param   array           $aAdditionalOptions     an additional options array to merge with the options array.
310 310
      * @return  mixed
311 311
      */
312
-    static public function getOption( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array() ) {
312
+    static public function getOption( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array() ) {
313 313
         return self::_getOptionByFunctionName( $sOptionKey, $asKey, $vDefault, $aAdditionalOptions );
314 314
     }
315 315
     /**
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @remark  Used in the network admin area.
325 325
      * @return  mixed
326 326
      */
327
-    static public function getSiteOption( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array() ) {
327
+    static public function getSiteOption( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array() ) {
328 328
         return self::_getOptionByFunctionName( $sOptionKey, $asKey, $vDefault, $aAdditionalOptions, 'get_site_option' );
329 329
     }
330 330
 
@@ -340,16 +340,16 @@  discard block
 block discarded – undo
340 340
          * @return      mixed
341 341
          * @since       3.5.3
342 342
          */
343
-        static private function _getOptionByFunctionName( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array(), $sFunctionName='get_option' ) {
343
+        static private function _getOptionByFunctionName( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array(), $sFunctionName = 'get_option' ) {
344 344
 
345 345
             // Entire options
346
-            if ( ! isset( $asKey ) ) {
346
+            if ( !isset( $asKey ) ) {
347 347
                 $_aOptions = $sFunctionName(
348 348
                     $sOptionKey,
349 349
                     isset( $vDefault )
350 350
                         ? $vDefault
351 351
                         : array()
352
-                );;
352
+                ); ;
353 353
                 return empty( $aAdditionalOptions )
354 354
                     ? $_aOptions
355 355
                     : self::uniteArrays(
Please login to merge, or discard this patch.
form/_model/modifier/AdminPageFramework_Form_Model___Modifier_SortInput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
development/factory/admin_page/_model/AdminPageFramework_ExportOptions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
development/factory/widget/_model/AdminPageFramework_Property_widget.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * Stores method names of the `WP_Widget` class, referred when the class is assumed as a WP_Widget subclass.
116 116
      * @since       3.8.17
117 117
      */
118
-    public $aWPWidgetMethods    = array();
118
+    public $aWPWidgetMethods = array();
119 119
     /**
120 120
      * Stores property names of the `WP_Widget` class, , referred when the class is assumed as a WP_Widget subclass.
121 121
      * @since       3.8.17
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
      * Sets up properties.
127 127
      * @since       3.7.0
128 128
      */
129
-    public function __construct( $oCaller, $sCallerPath, $sClassName, $sCapability='manage_options', $sTextDomain='admin-page-framework', $sStructureType='' ) {
129
+    public function __construct( $oCaller, $sCallerPath, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType = '' ) {
130 130
 
131 131
         // 3.7.0+
132
-        $this->_sFormRegistrationHook   = 'load_' . $sClassName;
132
+        $this->_sFormRegistrationHook   = 'load_'.$sClassName;
133 133
 
134 134
         // 3.7.9+ - setting a custom action hook for admin notices prevents the form object from being instantiated unnecessarily.
135
-        $this->sSettingNoticeActionHook = 'load_' . $sClassName;
135
+        $this->sSettingNoticeActionHook = 'load_'.$sClassName;
136 136
 
137 137
         parent::__construct(
138 138
             $oCaller,
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility_String.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
      * @since       3.8.4   When non-true value is passed, `0px` will be returned.
36 36
      * @return      string
37 37
      */
38
-    static public function getLengthSanitized( $sLength, $sUnit='px' ) {
38
+    static public function getLengthSanitized( $sLength, $sUnit = 'px' ) {
39 39
         $sLength = $sLength ? $sLength : 0;
40 40
         return is_numeric( $sLength )
41
-            ? $sLength . $sUnit
41
+            ? $sLength.$sUnit
42 42
             : $sLength;
43 43
     }
44 44
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
      * @since       3.8.11      Renamed from `fixNumber()`.
81 81
      * @return      string|integer      A numeric value will be returned.
82 82
      */
83
-    static public function getNumberFixed( $nToFix, $nDefault, $nMin='', $nMax='' ) {
83
+    static public function getNumberFixed( $nToFix, $nDefault, $nMin = '', $nMax = '' ) {
84 84
 
85
-        if ( ! is_numeric( trim( $nToFix ) ) ) {
85
+        if ( !is_numeric( trim( $nToFix ) ) ) {
86 86
             return $nDefault;
87 87
         }
88 88
         if ( $nMin !== '' && $nToFix < $nMin ) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
          * @return      string|integer      A numeric value will be returned.
101 101
          * @deprecated  3.8.11
102 102
          */
103
-        static public function fixNumber( $nToFix, $nDefault, $nMin='', $nMax='' ) {
103
+        static public function fixNumber( $nToFix, $nDefault, $nMin = '', $nMax = '' ) {
104 104
             return self::getNumberFixed( $nToFix, $nDefault, $nMin, $nMax );
105 105
         }
106 106
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     static public function getCSSMinified( $sCSSRules ) {
115 115
         return str_replace(
116
-            array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    '),  // remove line breaks, tab, and white sspaces.
116
+            array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    ' ), // remove line breaks, tab, and white sspaces.
117 117
             '',
118 118
             preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $sCSSRules ) // remove comments
119 119
         );
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
      */
151 151
     static public function getNumberOfReadableSize( $nSize ) {
152 152
 
153
-        $_nReturn     = substr( $nSize, 0, -1 );
154
-        switch( strtoupper( substr( $nSize, -1 ) ) ) {
153
+        $_nReturn = substr( $nSize, 0, -1 );
154
+        switch ( strtoupper( substr( $nSize, -1 ) ) ) {
155 155
             case 'P':
156 156
                 $_nReturn *= 1024;
157 157
             case 'T':
@@ -175,13 +175,13 @@  discard block
 block discarded – undo
175 175
      * @since       3.8.26 Added the `$iRoundPrecision` parameter.
176 176
      * @return      string
177 177
      */
178
-    static public function getReadableBytes( $nBytes, $iRoundPrecision=2 ) {
178
+    static public function getReadableBytes( $nBytes, $iRoundPrecision = 2 ) {
179 179
         $_aUnits = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB' );
180 180
         $_nLog   = log( $nBytes, 1024 );
181 181
         $_iPower = ( int ) $_nLog;
182 182
         $_ifSize = pow( 1024, $_nLog - $_iPower );
183 183
         $_ifSize = round( $_ifSize, $iRoundPrecision );
184
-        return $_ifSize . $_aUnits[ $_iPower ];
184
+        return $_ifSize.$_aUnits[ $_iPower ];
185 185
     }
186 186
 
187 187
     /**
Please login to merge, or discard this patch.
factory/_common/_abstract/_view/AdminPageFramework_PageLoadInfo_Base.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function __construct( $oProp, $oMsg ) {
29 29
 
30
-        if ( ! $this->_shouldProceed( $oProp ) ) {
30
+        if ( !$this->_shouldProceed( $oProp ) ) {
31 31
             return;
32 32
         }
33 33
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
          */
45 45
         private function _shouldProceed( $oProp ) {
46 46
 
47
-            if ( $oProp->bIsAdminAjax || ! $oProp->bIsAdmin ) {
47
+            if ( $oProp->bIsAdminAjax || !$oProp->bIsAdmin ) {
48 48
                 return false;
49 49
             }
50 50
             return ( boolean ) $oProp->bShowDebugInfo;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function _replyToGetPageLoadInfo( $sFooterHTML ) {
72 72
 
73 73
         // 3.8.8+ The `bShowDebugInfo` property may be updated by the user during the page load.
74
-        if ( ! $this->oProp->bShowDebugInfo ) {
74
+        if ( !$this->oProp->bShowDebugInfo ) {
75 75
             return $sFooterHTML;
76 76
         }
77 77
 
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
             $_sInitialMemoryUsage = $this->getReadableBytes( $_nInitialMemoryUsage );
106 106
             return "<div id='admin-page-framework-page-load-stats'>"
107 107
                     . "<ul>"
108
-                        . "<li>" . sprintf( $this->oMsg->get( 'queries_in_seconds' ), $_nQueryCount, $_nSeconds ) . "</li>"
109
-                        . "<li>" . sprintf( $this->oMsg->get( 'out_of_x_memory_used' ), $_sMemoryUsage, $_sMemoryLimit, round( ( $_nMemoryUsage / $_nMemoryLimit ), 2 ) * 100 . '%' ) . "</li>"
110
-                        . "<li>" . sprintf( $this->oMsg->get( 'peak_memory_usage' ), $_sMemoryPeakUsage ) . "</li>"
111
-                        . "<li>" . sprintf( $this->oMsg->get( 'initial_memory_usage' ), $_sInitialMemoryUsage ) . "</li>"
108
+                        . "<li>".sprintf( $this->oMsg->get( 'queries_in_seconds' ), $_nQueryCount, $_nSeconds )."</li>"
109
+                        . "<li>".sprintf( $this->oMsg->get( 'out_of_x_memory_used' ), $_sMemoryUsage, $_sMemoryLimit, round( ( $_nMemoryUsage / $_nMemoryLimit ), 2 ) * 100.'%' )."</li>"
110
+                        . "<li>".sprintf( $this->oMsg->get( 'peak_memory_usage' ), $_sMemoryPeakUsage )."</li>"
111
+                        . "<li>".sprintf( $this->oMsg->get( 'initial_memory_usage' ), $_sInitialMemoryUsage )."</li>"
112 112
                     . "</ul>"
113 113
                 . "</div>";
114 114
 
Please login to merge, or discard this patch.