Test Failed
Branch dev (2230d2)
by Michael
38:39
created
form/_view/fieldset/AdminPageFramework_Form_View___Fieldset_Base.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
                     'href'      => empty( $aArguments[ 'disabled' ] )
273 273
                         ? null
274 274
                         : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
275
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
275
+                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
+                            . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
277 277
                 );
278 278
                 return $this->getAttributes( $_sPlusButtonAttributes );
279 279
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             private function ___getRemoveButtonAttributes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
286 286
                 $_aMinusButtonAttributes = array(
287 287
                     'class'     => 'repeatable-field-remove-button button-secondary repeatable-field-button button'
288
-                         . $sSmallButtonSelector,
288
+                            . $sSmallButtonSelector,
289 289
                     'title'     => $this->oMsg->get( 'remove' ),
290 290
                     'style'     => $iFieldCount <= 1
291 291
                         ? 'visibility: hidden'
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param       object      $oMsg                   An object storing the system messages.
68 68
      * @param       array       $aCallbacks             An array storing the form-field specific callbacks.     
69 69
      */
70
-    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks=array() ) {
70
+    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks = array() ) {
71 71
 
72 72
         // Set up the properties that will be accessed later in the methods.
73 73
         $this->aFieldset                = $this->_getFormatted( $aFieldset, $aFieldTypeDefinitions );
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
         $this->aErrors                  = $this->getAsArray( $aErrors );
77 77
         $this->oMsg                     = $oMsg;
78 78
         $this->aCallbacks               = $aCallbacks + array(
79
-            'hfID'              => null,    // the input id attribute
80
-            'hfTagID'           => null,    // the fieldset/field row container id attribute
81
-            'hfName'            => null,    // the input name attribute
82
-            'hfNameFlat'        => null,    // the flat input name attribute                
79
+            'hfID'              => null, // the input id attribute
80
+            'hfTagID'           => null, // the fieldset/field row container id attribute
81
+            'hfName'            => null, // the input name attribute
82
+            'hfNameFlat'        => null, // the flat input name attribute                
83 83
             'hfInputName'       => null,
84 84
             'hfInputNameFlat'   => null,
85
-            'hfClass'           => null,    // the class attribute
85
+            'hfClass'           => null, // the class attribute
86 86
         );
87 87
 
88 88
     }    
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $_aSettings  = $this->getAsArray( $aSettings );
143 143
         $_oFormatter = new AdminPageFramework_Form_Model___Format_RepeatableField( $_aSettings, $this->oMsg ); // @todo Move this formatting routine to the field-set formatter class.
144 144
         $_aSettings  = $_oFormatter->get();
145
-        return "<div class='hidden repeatable-field-buttons-model' " . $this->getDataAttributes( $_aSettings ) . ">"
145
+        return "<div class='hidden repeatable-field-buttons-model' ".$this->getDataAttributes( $_aSettings ).">"
146 146
                 . $this->___getRepeatableButtonHTML( $sFieldsContainerID, $_aSettings, $iFieldCount, false )
147 147
             . "</div>";
148 148
     }
@@ -156,30 +156,30 @@  discard block
 block discarded – undo
156 156
          * @param   integer $iFieldCount
157 157
          * @param   boolean $bSmall                 @deprecated
158 158
          */
159
-        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall=true ) {
159
+        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall = true ) {
160 160
 
161 161
             $_aArguments            = $aArguments;
162 162
             $_sSmallButtonSelector  = $bSmall ? ' button-small' : '';
163 163
             $_sDisabledContent      = $this->getModalForDisabledRepeatableElement(
164
-                'repeatable_field_disabled_' . $sFieldsContainerID,
164
+                'repeatable_field_disabled_'.$sFieldsContainerID,
165 165
                 $_aArguments[ 'disabled' ]
166 166
             );
167 167
             if ( version_compare( $GLOBALS[ 'wp_version' ], '5.3', '>=' ) ) {
168
-                return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
169
-                        . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
168
+                return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
169
+                        . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
170 170
                             . "<span class='dashicons dashicons-minus'></span>"
171 171
                         . "</a>"
172
-                        . "<a " . $this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
172
+                        . "<a ".$this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
173 173
                             . "<span class='dashicons dashicons-plus-alt2'></span>"
174 174
                         ."</a>"
175 175
                     . "</div>"
176 176
                     . $_sDisabledContent;
177 177
             }
178
-            return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
179
-                    . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
178
+            return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
179
+                    . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
180 180
                         . "-"
181 181
                     . "</a>"
182
-                    . "<a " . $this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
182
+                    . "<a ".$this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
183 183
                         . "+"
184 184
                     ."</a>"
185 185
                 . "</div>"
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
                     'data-id'   => $sFieldsContainerID,
201 201
                     'href'      => empty( $aArguments[ 'disabled' ] )
202 202
                         ? null
203
-                        : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
204
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
205
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
203
+                        : '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
204
+                          . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
205
+                          . '&inlineId='.'repeatable_field_disabled_'.$sFieldsContainerID,
206 206
                 );
207 207
                 return $this->getAttributes( $_sPlusButtonAttributes );
208 208
             }
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
              * @return      string
230 230
              */
231 231
             private function ___getContainerAttributes( $aArguments ) {
232
-                $_aContainerAttributes   = array(
232
+                $_aContainerAttributes = array(
233 233
                     'class' => $this->getClassAttribute(
234 234
                         'admin-page-framework-repeatable-field-buttons',
235
-                        ! empty( $aArguments[ 'disabled' ] )
235
+                        !empty( $aArguments[ 'disabled' ] )
236 236
                             ? 'disabled'
237 237
                             : ''
238 238
                     ),
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                     unset( $aArguments[ 'disabled' ] );
246 246
                 }
247 247
                 return $this->getAttributes( $_aContainerAttributes )
248
-                    . ' ' . $this->getDataAttributes( $aArguments );
248
+                    . ' '.$this->getDataAttributes( $aArguments );
249 249
             }
250 250
 
251 251
 }
252 252
\ No newline at end of file
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_PageMetaBox.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,21 +76,21 @@
 block discarded – undo
76 76
      * @param       string          $sPriority      The priority, either `high`, `core`, `default` or `low`.
77 77
      * @param       string          $sCapability    The capability. See <a href="https://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Roles and Capabilities</a>.
78 78
      */
79
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
79
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
80 80
 
81 81
         if ( empty( $asPageSlugs ) ) {
82 82
             return;
83 83
         }
84 84
 
85
-        if ( ! $this->_isInstantiatable() ) {
85
+        if ( !$this->_isInstantiatable() ) {
86 86
             return;
87 87
         }
88 88
 
89 89
         // The property object needs to be done first before the parent constructor.
90 90
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
91 91
             ? $this->aSubClassNames[ 'oProp' ]
92
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
93
-        $this->oProp             = new $_sPropertyClassName(
92
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
93
+        $this->oProp = new $_sPropertyClassName(
94 94
             $this,
95 95
             get_class( $this ),
96 96
             $sCapability,
Please login to merge, or discard this patch.
development/factory/taxonomy_field/AdminPageFramework_TaxonomyField.php 1 patch
Spacing   +3 added lines, -3 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
-    function __construct( $asTaxonomySlug, $sOptionKey='', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
48
+    function __construct( $asTaxonomySlug, $sOptionKey = '', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
49 49
 
50 50
         if ( empty( $asTaxonomySlug ) ) {
51 51
             return;
@@ -54,8 +54,8 @@  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,
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,16 +38,16 @@
 block discarded – undo
38 38
      * @since       3.7.4       Changed the default capability value to `read`.
39 39
      * @todo        Examine the appropriate default capability level.
40 40
      */
41
-    public function __construct( $sCapability='read', $sTextDomain='admin-page-framework' ) {
41
+    public function __construct( $sCapability = 'read', $sTextDomain = 'admin-page-framework' ) {
42 42
 
43 43
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
44 44
             ? $this->aSubClassNames[ 'oProp' ]
45
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
45
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
46 46
         $this->oProp = new $_sPropertyClassName(
47
-            $this,                  // the caller object
48
-            get_class( $this ),     // the caller class name
49
-            $sCapability,           // the capability level
50
-            $sTextDomain,           // the text domain
47
+            $this, // the caller object
48
+            get_class( $this ), // the caller class name
49
+            $sCapability, // the capability level
50
+            $sTextDomain, // the text domain
51 51
             $this->_sStructureType  // the structure type
52 52
         );
53 53
 
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_View_Page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
                 $this->oProp->aInPageTabs,
33 33
                 array( $this->oProp->getCurrentPageSlug(), $this->oProp->getCurrentTabSlug(), 'title' )
34 34
             );
35
-        if ( ! $_sTabTitle ) {
35
+        if ( !$_sTabTitle ) {
36 36
             return $sAdminTitle;
37 37
         }
38
-        return $_sTabTitle . ' &lsaquo; ' . $sAdminTitle;
38
+        return $_sTabTitle.' &lsaquo; '.$sAdminTitle;
39 39
     }
40 40
 
41 41
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @return      void
83 83
      * @internal
84 84
      */
85
-    protected function _renderPage( $sPageSlug, $sTabSlug=null ) {
85
+    protected function _renderPage( $sPageSlug, $sTabSlug = null ) {
86 86
         $_oPageRenderer = new AdminPageFramework_View__PageRenderer( $this, $sPageSlug, $sTabSlug );
87 87
         $_oPageRenderer->render();
88 88
     }
Please login to merge, or discard this patch.
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.