Test Failed
Branch dev (2230d2)
by Michael
38:39
created
_common/form/field_type/hidden/AdminPageFramework_FieldType_hidden.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                     . ( $aField[ 'label' ]
67 67
                         ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">"
68 68
                             . $aField[ 'label' ]
69
-                          . "</span>"
69
+                            . "</span>"
70 70
                         : ""
71 71
                     )
72 72
                     . "<input " . $this->getAttributes( $aField[ 'attributes' ] ) . " />"
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
65 65
                 . "<label for='{$aField[ 'input_id' ]}'>"
66 66
                     . $aField[ 'before_input' ]
67 67
                     . ( $aField[ 'label' ]
68
-                        ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">"
68
+                        ? "<span ".$this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ).">"
69 69
                             . $aField[ 'label' ]
70 70
                           . "</span>"
71 71
                         : ""
72 72
                     )
73
-                    . "<input " . $this->getAttributes( $aField[ 'attributes' ] ) . " />"
73
+                    . "<input ".$this->getAttributes( $aField[ 'attributes' ] )." />"
74 74
                     . $aField[ 'after_input' ]
75 75
                 . "</label>"
76 76
             . "</div>"
Please login to merge, or discard this patch.
_common/form/field_type/default/AdminPageFramework_FieldType_default.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,21 +36,21 @@
 block discarded – undo
36 36
      */
37 37
     public function _replyToGetField( $aField ) {
38 38
         return
39
-            $aField['before_label']
39
+            $aField[ 'before_label' ]
40 40
             . "<div class='admin-page-framework-input-label-container'>"
41
-                . "<label for='{$aField['input_id']}'>"
42
-                    . $aField['before_input']
43
-                    . ( $aField['label'] && ! $aField['repeatable']
44
-                        ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">"
41
+                . "<label for='{$aField[ 'input_id' ]}'>"
42
+                    . $aField[ 'before_input' ]
43
+                    . ( $aField[ 'label' ] && !$aField[ 'repeatable' ]
44
+                        ? "<span ".$this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ).">"
45 45
                                 . $aField[ 'label' ]
46 46
                             . "</span>"
47 47
                         : ""
48 48
                     )
49
-                    . $aField['value']
50
-                    . $aField['after_input']
49
+                    . $aField[ 'value' ]
50
+                    . $aField[ 'after_input' ]
51 51
                 . "</label>"
52 52
             . "</div>"
53
-            . $aField['after_label']
53
+            . $aField[ 'after_label' ]
54 54
         ;
55 55
     }
56 56
 
Please login to merge, or discard this patch.
_common/form/field_type/export/AdminPageFramework_FieldType_export.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * Defines the field type slugs used for this field type.
53 53
      */
54
-    public $aFieldTypeSlugs = array( 'export', );
54
+    public $aFieldTypeSlugs = array( 'export',);
55 55
 
56 56
     /**
57 57
      * Defines the default key-values of this field type.
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
      * @remark $_aDefaultKeys holds shared default key-values defined in the base class.
60 60
      */
61 61
     protected $aDefaultKeys = array(
62
-        'data'          => null,        // ( array|string|object ) This is for the export field type. Do not set a value here.
63
-        'format'        => 'json',      // ( string ) for the export field type. Do not set a default value here. Currently array, json, and text are supported.
64
-        'file_name'     => null,        // ( string ) for the export field type. Do not set a default value here.
62
+        'data'          => null, // ( array|string|object ) This is for the export field type. Do not set a value here.
63
+        'format'        => 'json', // ( string ) for the export field type. Do not set a default value here. Currently array, json, and text are supported.
64
+        'file_name'     => null, // ( string ) for the export field type. Do not set a default value here.
65 65
         'attributes'    => array(
66 66
             'class' => 'button button-primary',
67 67
         ),
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
     protected function getField( $aField ) {
79 79
 
80 80
         /* Set the transient data to export - If the value is not an array and the export data is set. */
81
-        if ( isset( $aField['data'] ) ) {
82
-            $this->setTransient( md5( "{$aField['class_name']}_{$aField['input_id']}" ), $aField['data'], 60*2 ); // 2 minutes.
81
+        if ( isset( $aField[ 'data' ] ) ) {
82
+            $this->setTransient( md5( "{$aField[ 'class_name' ]}_{$aField[ 'input_id' ]}" ), $aField[ 'data' ], 60 * 2 ); // 2 minutes.
83 83
         }
84 84
 
85 85
         /* Set some required values */
86
-        $aField['attributes']['name']   = "__export[submit][{$aField['input_id']}]";
87
-        $aField['file_name']            = $aField['file_name'] ? $aField['file_name'] : $this->___generateExportFileName( $aField['option_key'] ? $aField['option_key'] : $aField['class_name'], $aField['format'] );
88
-        $aField['label']                = $aField['label'] ? $aField['label'] : $this->oMsg->get( 'export' );
86
+        $aField[ 'attributes' ][ 'name' ]   = "__export[submit][{$aField[ 'input_id' ]}]";
87
+        $aField[ 'file_name' ]            = $aField[ 'file_name' ] ? $aField[ 'file_name' ] : $this->___generateExportFileName( $aField[ 'option_key' ] ? $aField[ 'option_key' ] : $aField[ 'class_name' ], $aField[ 'format' ] );
88
+        $aField[ 'label' ]                = $aField[ 'label' ] ? $aField[ 'label' ] : $this->oMsg->get( 'export' );
89 89
 
90 90
         return parent::getField( $aField );
91 91
 
@@ -101,42 +101,42 @@  discard block
 block discarded – undo
101 101
 
102 102
         $_aAttributes = array( 'type' => 'hidden' );
103 103
         return
104
-            "<input " . $this->getAttributes(
104
+            "<input ".$this->getAttributes(
105 105
                 array(
106
-                    'name' => "__export[{$aField['input_id']}][input_id]",
107
-                    'value' => $aField['input_id'],
106
+                    'name' => "__export[{$aField[ 'input_id' ]}][input_id]",
107
+                    'value' => $aField[ 'input_id' ],
108 108
                 ) + $_aAttributes
109
-            ) . "/>"
110
-            . "<input " . $this->getAttributes(
109
+            )."/>"
110
+            . "<input ".$this->getAttributes(
111 111
                 array(
112
-                    'name' => "__export[{$aField['input_id']}][field_id]",
113
-                    'value' => $aField['field_id'],
112
+                    'name' => "__export[{$aField[ 'input_id' ]}][field_id]",
113
+                    'value' => $aField[ 'field_id' ],
114 114
                 ) + $_aAttributes
115
-            ) . "/>"
116
-            . "<input " . $this->getAttributes(
115
+            )."/>"
116
+            . "<input ".$this->getAttributes(
117 117
                 array(
118
-                    'name' => "__export[{$aField['input_id']}][section_id]",
119
-                    'value' => isset( $aField['section_id'] ) && $aField['section_id'] != '_default' ? $aField['section_id'] : '',
118
+                    'name' => "__export[{$aField[ 'input_id' ]}][section_id]",
119
+                    'value' => isset( $aField[ 'section_id' ] ) && $aField[ 'section_id' ] != '_default' ? $aField[ 'section_id' ] : '',
120 120
                 ) + $_aAttributes
121
-            ) . "/>"
122
-            . "<input " . $this->getAttributes(
121
+            )."/>"
122
+            . "<input ".$this->getAttributes(
123 123
                 array(
124
-                    'name' => "__export[{$aField['input_id']}][file_name]",
125
-                    'value' => $aField['file_name'],
124
+                    'name' => "__export[{$aField[ 'input_id' ]}][file_name]",
125
+                    'value' => $aField[ 'file_name' ],
126 126
                 ) + $_aAttributes
127
-            ) . "/>"
128
-            . "<input " . $this->getAttributes(
127
+            )."/>"
128
+            . "<input ".$this->getAttributes(
129 129
                 array(
130
-                    'name' => "__export[{$aField['input_id']}][format]",
131
-                    'value' => $aField['format'],
130
+                    'name' => "__export[{$aField[ 'input_id' ]}][format]",
131
+                    'value' => $aField[ 'format' ],
132 132
                 ) + $_aAttributes
133
-            ) . "/>"
134
-            . "<input " . $this->getAttributes(
133
+            )."/>"
134
+            . "<input ".$this->getAttributes(
135 135
                 array(
136
-                    'name' => "__export[{$aField['input_id']}][transient]",
137
-                    'value' => isset( $aField['data'] ),
136
+                    'name' => "__export[{$aField[ 'input_id' ]}][transient]",
137
+                    'value' => isset( $aField[ 'data' ] ),
138 138
                 ) + $_aAttributes
139
-            ) . "/>"
139
+            )."/>"
140 140
             ;
141 141
     }
142 142
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
          * @since 2.1.5 Moved from the AdminPageFramework_FormField class.
151 151
          * @internal
152 152
          */
153
-        private function ___generateExportFileName( $sOptionKey, $sExportFormat='json' ) {
153
+        private function ___generateExportFileName( $sOptionKey, $sExportFormat = 'json' ) {
154 154
 
155 155
             switch ( trim( strtolower( $sExportFormat ) ) ) {
156 156
                 case 'text': // for plain text.
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                     break;
166 166
             }
167 167
 
168
-            return $sOptionKey . '_' . date("Ymd") . '.' . $sExt;
168
+            return $sOptionKey.'_'.date( "Ymd" ).'.'.$sExt;
169 169
 
170 170
         }
171 171
 
Please login to merge, or discard this patch.
factory/_common/utility/admin_notice/AdminPageFramework_AdminNotice.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public $sNotice     = '';
46 46
     public $aAttributes = array();
47 47
     public $aCallbacks  = array(
48
-        'should_show'   => null,    // determines whether the admin notice should be displayed.
48
+        'should_show'   => null, // determines whether the admin notice should be displayed.
49 49
     );
50 50
     /**#@-*/
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * </ul>
62 62
      * @since 3.5.0
63 63
      */
64
-    public function __construct( $sNotice, array $aAttributes=array( 'class' => 'error' ), array $aCallbacks=array() ) {
64
+    public function __construct( $sNotice, array $aAttributes = array( 'class' => 'error' ), array $aCallbacks = array() ) {
65 65
 
66 66
         $this->aAttributes            = $aAttributes + array(
67 67
             'class' => 'error', // 'updated' etc.
@@ -69,17 +69,17 @@  discard block
 block discarded – undo
69 69
         $this->aAttributes[ 'class' ] = $this->getClassAttribute(
70 70
             $this->aAttributes[ 'class' ],
71 71
             'admin-page-framework-settings-notice-message',
72
-            'admin-page-framework-settings-notice-container',   // Moved from `AdminPageFramework_Factory_View`.
72
+            'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`.
73 73
             'notice',
74 74
             'is-dismissible'    // 3.5.12+
75 75
         );
76
-        $this->aCallbacks             = $aCallbacks + $this->aCallbacks;
76
+        $this->aCallbacks = $aCallbacks + $this->aCallbacks;
77 77
 
78 78
         // Load resources.
79 79
         new AdminPageFramework_AdminNotice___Script;
80 80
 
81 81
         // An empty value may be set in order only to load the fade-in script.
82
-        if ( ! $sNotice ) {
82
+        if ( !$sNotice ) {
83 83
             return;
84 84
         }
85 85
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
          */
100 100
         public function _replyToDisplayAdminNotice() {
101 101
 
102
-            if ( ! $this->___shouldProceed() ) {
102
+            if ( !$this->___shouldProceed() ) {
103 103
                 return;
104 104
             }
105 105
 
@@ -110,14 +110,14 @@  discard block
 block discarded – undo
110 110
                 'display: none'
111 111
             );
112 112
 
113
-            echo "<div " . $this->getAttributes( $_aAttributes ) . ">"
113
+            echo "<div ".$this->getAttributes( $_aAttributes ).">"
114 114
                     . "<p>"
115 115
                         . self::$___aNotices[ $this->sNotice ]
116 116
                     . "</p>"
117 117
                 . "</div>"
118 118
                 // Insert the same message except it is not hidden.
119 119
                 . "<noscript>"
120
-                    . "<div " . $this->getAttributes( $this->aAttributes ) . ">"
120
+                    . "<div ".$this->getAttributes( $this->aAttributes ).">"
121 121
                         . "<p>"
122 122
                             . self::$___aNotices[ $this->sNotice ]
123 123
                         . "</p>"
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
              * @internal
135 135
              */
136 136
             private function ___shouldProceed() {
137
-                if ( ! is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
137
+                if ( !is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
138 138
                     return true;
139 139
                 }
140
-                return call_user_func_array( $this->aCallbacks[ 'should_show' ], array( true, ) );
140
+                return call_user_func_array( $this->aCallbacks[ 'should_show' ], array( true,) );
141 141
             }
142 142
 
143 143
 }
144 144
\ No newline at end of file
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_Deprecated.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @deprecated  3.8.0       Use `getLengthSanitized()` instead.
31 31
      * @since       3.8.8       Moved from `AdminPageFramework_Utility_String`.
32 32
      */
33
-    static public function sanitizeLength( $sLength, $sUnit='px' ) {
33
+    static public function sanitizeLength( $sLength, $sUnit = 'px' ) {
34 34
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getLengthSanitized()' );
35 35
         return AdminPageFramework_Utility_String::getLengthSanitized( $sLength, $sUnit );
36 36
     }
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
50 50
      * @deprecated  3.5.3           Use `getElement()`.
51 51
      */
52
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {
52
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault = '', $bBlankToDefault = false ) {
53 53
 
54 54
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
55 55
 
56 56
         // If $vSubject is null,
57
-        if ( ! isset( $vSubject ) ) {
57
+        if ( !isset( $vSubject ) ) {
58 58
             return $sDefault;
59 59
         }
60 60
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         // If $vSubject is not an array,
67
-        if ( ! is_array( $vSubject ) ) {
67
+        if ( !is_array( $vSubject ) ) {
68 68
             return ( string ) $vSubject;
69 69
         } // consider it as string.
70 70
 
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
      * @since       3.5.3       Moved from `AdminPageFramework_FieldType_Base`.
105 105
      * @deprecated  3.5.3       Use the `getElement()` method.
106 106
      */
107
-    protected function getFieldElementByKey( $asElement, $sKey, $asDefault='' ) {
107
+    protected function getFieldElementByKey( $asElement, $sKey, $asDefault = '' ) {
108 108
 
109 109
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
110 110
 
111
-        if ( ! is_array( $asElement ) || ! isset( $sKey ) ) {
111
+        if ( !is_array( $asElement ) || !isset( $sKey ) ) {
112 112
             return $asElement;
113 113
         }
114 114
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__ );
133 133
 
134
-        foreach( $aArray as &$vElem ) {
134
+        foreach ( $aArray as &$vElem ) {
135 135
 
136 136
             if ( $vElem ) { break; }
137 137
             unset( $vElem );
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_HTMLAttribute.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
      */
40 40
     static public function getAttributes( array $aAttributes ) {
41 41
 
42
-        $_sQuoteCharactor   ="'";
42
+        $_sQuoteCharactor   = "'";
43 43
         $_aOutput           = array();
44
-        foreach( $aAttributes as $sAttribute => $sProperty ) {
45
-            if ( ! is_scalar( $sProperty ) ) {
44
+        foreach ( $aAttributes as $sAttribute => $sProperty ) {
45
+            if ( !is_scalar( $sProperty ) ) {
46 46
                 continue;
47 47
             }
48
-            $_aOutput[] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
48
+            $_aOutput[ ] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
49 49
         }
50 50
         return implode( ' ', $_aOutput );
51 51
 
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
      */
72 72
     static public function getInlineCSS( array $aCSSRules ) {
73 73
         $_aOutput = array();
74
-        foreach( $aCSSRules as $_sProperty => $_sValue ) {
74
+        foreach ( $aCSSRules as $_sProperty => $_sValue ) {
75 75
             if ( is_null( $_sValue ) ) {
76 76
                 continue;
77 77
             }
78
-            $_aOutput[] = $_sProperty . ': ' . $_sValue;
78
+            $_aOutput[ ] = $_sProperty.': '.$_sValue;
79 79
         }
80 80
         return implode( '; ', $_aOutput );
81 81
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     static public function getStyleAttribute( $asInlineCSSes ) {
107 107
 
108 108
         $_aCSSRules = array();
109
-        foreach( array_reverse( func_get_args() ) as $_asCSSRules ) {
109
+        foreach ( array_reverse( func_get_args() ) as $_asCSSRules ) {
110 110
 
111 111
             // For array, store in the container.
112 112
             if ( is_array( $_asCSSRules ) ) {
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
 
117 117
             // At this point, it is a string. Break them down to array elements.
118 118
             $__aCSSRules = explode( ';', $_asCSSRules );
119
-            foreach( $__aCSSRules as $_sPair ) {
119
+            foreach ( $__aCSSRules as $_sPair ) {
120 120
                 $_aCSSPair = explode( ':', $_sPair );
121
-                if ( ! isset( $_aCSSPair[ 0 ], $_aCSSPair[ 1 ] ) ) {
121
+                if ( !isset( $_aCSSPair[ 0 ], $_aCSSPair[ 1 ] ) ) {
122 122
                     continue;
123 123
                 }
124 124
                 $_aCSSRules[ $_aCSSPair[ 0 ] ] = $_aCSSPair[ 1 ];
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
155 155
      */
156 156
     static public function getClassAttribute( /* $asClassSelectors1, $asClassSelectors12, ... */ ) {
157 157
 
158
-        $_aClasses  = array();
159
-        foreach( func_get_args() as $_asClasses ) {
160
-            if ( ! in_array( gettype( $_asClasses ), array( 'array', 'string' ) ) ) {
158
+        $_aClasses = array();
159
+        foreach ( func_get_args() as $_asClasses ) {
160
+            if ( !in_array( gettype( $_asClasses ), array( 'array', 'string' ) ) ) {
161 161
                 continue;
162 162
             }
163 163
             $_aClasses = array_merge(
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     : explode( ' ', $_asClasses )
168 168
             );
169 169
         }
170
-        $_aClasses  = array_unique( array_filter( $_aClasses ) );
170
+        $_aClasses = array_unique( array_filter( $_aClasses ) );
171 171
 
172 172
         // @todo examine if it is okay to remove the trim() function below.
173 173
         return trim( implode( ' ', $_aClasses ) );
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         static public function generateClassAttribute( /* $asClassSelectors1, $asClassSelectors12 ... */ ) {
184 184
             $_aParams = func_get_args();
185 185
             return call_user_func_array(
186
-                array( __CLASS__ , 'getClassAttribute' ),
186
+                array( __CLASS__, 'getClassAttribute' ),
187 187
                 $_aParams
188 188
             );
189 189
         }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     static public function getDataAttributeArray( array $aArray ) {
201 201
 
202 202
         $_aNewArray = array();
203
-        foreach( $aArray as $sKey => $v ) {
203
+        foreach ( $aArray as $sKey => $v ) {
204 204
 
205 205
             if ( in_array( gettype( $v ), array( 'object', 'NULL' ) ) ) {
206 206
                 continue;
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_Time.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param boolean     $bAdjustGMT
23 23
      * @return string
24 24
      */
25
-    static public function getSiteReadableDate( $iTimeStamp, $sDateTimeFormat=null, $bAdjustGMT=false ) {
25
+    static public function getSiteReadableDate( $iTimeStamp, $sDateTimeFormat = null, $bAdjustGMT = false ) {
26 26
 
27 27
         static $_iOffsetSeconds, $_sDateFormat, $_sTimeFormat;
28 28
         $_iOffsetSeconds = $_iOffsetSeconds
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
             : get_option( 'time_format' );
37 37
         $sDateTimeFormat = $sDateTimeFormat
38 38
             ? $sDateTimeFormat
39
-            : $_sDateFormat . ' ' . $_sTimeFormat;
39
+            : $_sDateFormat.' '.$_sTimeFormat;
40 40
 
41
-        if ( ! $iTimeStamp ) {
41
+        if ( !$iTimeStamp ) {
42 42
             return 'n/a';
43 43
         }
44 44
         $iTimeStamp = $bAdjustGMT ? $iTimeStamp + $_iOffsetSeconds : $iTimeStamp;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         try {
72 72
             $_sTimeZone     = self::___getSiteTimeZone();
73 73
             $_oDateTimeZone = new DateTimeZone( $_sTimeZone );
74
-            $_oDateTime     = new DateTime("now", $_oDateTimeZone );
74
+            $_oDateTime     = new DateTime( "now", $_oDateTimeZone );
75 75
         } catch ( Exception $oException ) {
76 76
             self::setObjectCache( __METHOD__, 0 );
77 77
             return 0;
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
          */
88 88
         static private function ___getSiteTimeZone() {
89 89
             $_sTimeZone = get_option( 'timezone_string' );
90
-            if ( ! empty( $_sTimeZone ) ) {
90
+            if ( !empty( $_sTimeZone ) ) {
91 91
                 return $_sTimeZone;
92 92
             }
93
-            $_fOffset   = get_option( 'gmt_offset', 0 ); // e.g. 5.5
93
+            $_fOffset = get_option( 'gmt_offset', 0 ); // e.g. 5.5
94 94
             return self::___getNumberedOffsetString( $_fOffset );
95 95
         }
96 96
 
Please login to merge, or discard this patch.
_common/utility/wp_utility/AdminPageFramework_WPUtility_SiteInformation.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,20 +27,20 @@  discard block
 block discarded – undo
27 27
      * @since  3.9.0
28 28
      * @see    WP_Debug_Data::debug_data()
29 29
      */
30
-    static public function getSiteData( $asKeys=array() ) {
31
-        $_sWPDebugClassFilePath = ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
30
+    static public function getSiteData( $asKeys = array() ) {
31
+        $_sWPDebugClassFilePath = ABSPATH.'wp-admin/includes/class-wp-debug-data.php';
32 32
         if ( file_exists( $_sWPDebugClassFilePath ) ) {
33 33
             include_once( $_sWPDebugClassFilePath );
34 34
         }
35
-        if ( ! class_exists( 'WP_Debug_Data' ) ) {
35
+        if ( !class_exists( 'WP_Debug_Data' ) ) {
36 36
             return array();
37 37
         }
38 38
         try {
39
-            $_mCache = self::getObjectCache( __CLASS__ . '::' . __METHOD__ );
40
-            $_aDebugData = ! isset( $_mCache )
39
+            $_mCache = self::getObjectCache( __CLASS__.'::'.__METHOD__ );
40
+            $_aDebugData = !isset( $_mCache )
41 41
                 ? WP_Debug_Data::debug_data()
42 42
                 : $_mCache;
43
-            self::setObjectCache( __CLASS__ . '::' . __METHOD__, $_aDebugData );
43
+            self::setObjectCache( __CLASS__.'::'.__METHOD__, $_aDebugData );
44 44
             return empty( $asKeys )
45 45
                 ? $_aDebugData
46 46
                 : self::getElement( $_aDebugData, $asKeys );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @since       3.5.3
85 85
      * @return      string      The site language.
86 86
      */
87
-    static public function getSiteLanguage( $sDefault='en_US' ) {
87
+    static public function getSiteLanguage( $sDefault = 'en_US' ) {
88 88
         return defined( 'WPLANG' ) && WPLANG ? WPLANG : $sDefault;
89 89
     }
90 90
 
Please login to merge, or discard this patch.
utility/wp_utility/AdminPageFramework_WPUtility_SystemInformation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 : @mysql_get_server_info(),
43 43
         );
44 44
 
45
-        foreach( ( array ) $wpdb->get_results( "SHOW VARIABLES", ARRAY_A ) as $_iIndex => $_aItem ) {
45
+        foreach ( ( array ) $wpdb->get_results( "SHOW VARIABLES", ARRAY_A ) as $_iIndex => $_aItem ) {
46 46
             $_aItem     = array_values( $_aItem );
47 47
             $_sKey      = array_shift( $_aItem );
48 48
             $_sValue    = array_shift( $_aItem );
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
      * @since  3.4.6
72 72
      * @return string
73 73
      */
74
-    static public function getMySQLErrorLog( $iLines=1 ) {
74
+    static public function getMySQLErrorLog( $iLines = 1 ) {
75 75
         $_sLog = self::getFileTailContents( self::getMySQLErrorLogPath(), $iLines );
76
-        return $_sLog ? $_sLog : '';    // @todo If empty, return an alternative.
76
+        return $_sLog ? $_sLog : ''; // @todo If empty, return an alternative.
77 77
     }
78 78
 
79 79
 }
80 80
\ No newline at end of file
Please login to merge, or discard this patch.