Completed
Branch master (0a34ef)
by
unknown
20:07 queued 10:25
created
development/factory/_common/utility/AdminPageFramework_FrameworkUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             return;
32 32
         }
33 33
 
34
-        foreach( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
35
-            if ( ! isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
34
+        foreach ( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
35
+            if ( !isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
36 36
                 continue;
37 37
             }       
38 38
             ksort( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] );
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @param       boolean     $bTrimDevVer           Whether the `.dev` suffix should be removed or not.
52 52
      * @return      string
53 53
      */
54
-    static public function getFrameworkVersion( $bTrimDevVer=false ) {
54
+    static public function getFrameworkVersion( $bTrimDevVer = false ) {
55 55
         $_sVersion = AdminPageFramework_Registry::getVersion();
56 56
         return $bTrimDevVer
57 57
             ? self::getSuffixRemoved( $_sVersion, '.dev' )
Please login to merge, or discard this patch.
development/factory/_common/utility/AdminPageFramework_ArrayHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
      * 
22 22
      * @since       3.6.0
23 23
      */
24
-    public $aData            = array();
24
+    public $aData = array();
25 25
     
26 26
     /**
27 27
      * Stores the defaulte values.
28 28
      */
29
-    public $aDefault         = array();
29
+    public $aDefault = array();
30 30
     
31 31
     /**
32 32
      * Sets up properties.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $_aKeys     = func_get_args() + array( null );
55 55
         
56 56
         // If no key is specified, return the whole array.
57
-        if ( ! isset( $_aKeys[ 0 ] ) ) {
57
+        if ( !isset( $_aKeys[ 0 ] ) ) {
58 58
             return $this->uniteArrays(
59 59
                 $this->aData,
60 60
                 $this->aDefault
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
         
70 70
         // Now either the section ID or field ID is given. 
71 71
         return $this->getArrayValueByArrayKeys( 
72
-            $this->aData,   // subject array
73
-            $_aKeys,        // dimensional keys
72
+            $this->aData, // subject array
73
+            $_aKeys, // dimensional keys
74 74
             $this->getDefaultValue( // default value
75 75
                 $_mDefault, 
76 76
                 $_aKeys 
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function set( /* $asKeys, $mValue */ ) {
100 100
         
101
-        $_aParameters   = func_get_args();
102
-        if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
101
+        $_aParameters = func_get_args();
102
+        if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
103 103
             return;
104 104
         }
105 105
         $_asKeys        = $_aParameters[ 0 ];
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function delete( /* $sKey1, $sKey2, $sKey3 ... OR $aKeys */ ) {
125 125
         
126
-        $_aParameters   = func_get_args();
127
-        if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
126
+        $_aParameters = func_get_args();
127
+        if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
128 128
             return;
129 129
         }
130 130
         $_asKeys        = $_aParameters[ 0 ];
Please login to merge, or discard this patch.
factory/_common/utility/admin_notice/AdminPageFramework_AdminNotice.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public $sNotice     = '';    
35 35
     public $aAttributes = array();
36 36
     public $aCallbacks  = array(
37
-        'should_show'   => null,    // detemines whether the admin notice should be displayed.
37
+        'should_show'   => null, // detemines whether the admin notice should be displayed.
38 38
     );
39 39
      
40 40
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param       array       $aCallbacks     DEVVER+ Stores callbacks.
46 46
      * @since       3.5.0
47 47
      */
48
-    public function __construct( $sNotice, array $aAttributes=array( 'class' => 'error' ), array $aCallbacks=array() ) {
48
+    public function __construct( $sNotice, array $aAttributes = array( 'class' => 'error' ), array $aCallbacks = array() ) {
49 49
 
50 50
         $this->aAttributes            = $aAttributes + array(
51 51
             'class' => 'error', // 'updated' etc.
@@ -53,17 +53,17 @@  discard block
 block discarded – undo
53 53
         $this->aAttributes[ 'class' ] = $this->getClassAttribute(
54 54
             $this->aAttributes[ 'class' ],
55 55
             'admin-page-framework-settings-notice-message',
56
-            'admin-page-framework-settings-notice-container',   // Moved from `AdminPageFramework_Factory_View`.
56
+            'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`.
57 57
             'notice',
58 58
             'is-dismissible'    // 3.5.12+
59 59
         );
60
-        $this->aCallbacks             = $aCallbacks + $this->aCallbacks;
60
+        $this->aCallbacks = $aCallbacks + $this->aCallbacks;
61 61
   
62 62
         // Load resources.
63 63
         new AdminPageFramework_AdminNotice___Script;
64 64
         
65 65
         // An empty value may be set in oreder only to laode the fade-in script.
66
-        if ( ! $sNotice ) {
66
+        if ( !$sNotice ) {
67 67
             return;
68 68
         }
69 69
         
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
          */
85 85
         public function _replyToDisplayAdminNotice() {
86 86
             
87
-            if ( ! $this->_shouldProceed() ) {
87
+            if ( !$this->_shouldProceed() ) {
88 88
                 return;
89 89
             }
90 90
             
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
                 'display: none' 
96 96
             );
97 97
             
98
-            echo "<div " . $this->getAttributes( $_aAttributes ) . ">"
98
+            echo "<div ".$this->getAttributes( $_aAttributes ).">"
99 99
                     . "<p>"
100 100
                         . self::$_aNotices[ $this->sNotice ]
101 101
                     . "</p>"
102 102
                 . "</div>"
103 103
                 // Insert the same message except it is not hidden.
104 104
                 . "<noscript>"
105
-                    . "<div " . $this->getAttributes( $this->aAttributes ) . ">"
105
+                    . "<div ".$this->getAttributes( $this->aAttributes ).">"
106 106
                         . "<p>" 
107 107
                             . self::$_aNotices[ $this->sNotice ]
108 108
                         . "</p>"
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
              */
119 119
             private function _shouldProceed() {
120 120
                 
121
-                if ( ! is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
121
+                if ( !is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
122 122
                     return true;
123 123
                 }
124 124
                 return call_user_func_array(
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_Meta.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
      * Retrieves meta data by given keys and type (user or post).
39 39
      * @return      array
40 40
      */
41
-    static public function getMetaDataByKeys( $iObjectID, $aKeys, $sMetaType='post' ) {
41
+    static public function getMetaDataByKeys( $iObjectID, $aKeys, $sMetaType = 'post' ) {
42 42
                
43 43
         $_aSavedMeta = array();
44 44
                     
45
-        if ( ! $iObjectID ) {
45
+        if ( !$iObjectID ) {
46 46
             return $_aSavedMeta;
47 47
         }
48 48
         
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         if ( is_string( $_sCustomMenuSlug ) ) {
29 29
             return $_sCustomMenuSlug;
30 30
         }
31
-        return 'edit.php?post_type=' . $sPostTypeSlug;
31
+        return 'edit.php?post_type='.$sPostTypeSlug;
32 32
     }             
33 33
  
34 34
     /**
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     static public function getWPAdminDirPath() {
62 62
          
63 63
         $_sWPAdminPath = str_replace( 
64
-            get_bloginfo( 'url' ) . '/', // search
65
-            ABSPATH,    // replace
64
+            get_bloginfo( 'url' ).'/', // search
65
+            ABSPATH, // replace
66 66
             get_admin_url() // subject - works even in the network admin
67 67
         );
68 68
         return rtrim( $_sWPAdminPath, '/' );
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @since       3.7.0
79 79
      * @return      void
80 80
      */
81
-    static public function goToLocalURL( $sURL, $oCallbackOnError=null ) {
81
+    static public function goToLocalURL( $sURL, $oCallbackOnError = null ) {
82 82
         self::redirectByType( $sURL, 1, $oCallbackOnError );
83 83
     }
84 84
     
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @since       3.7.0      Added the second callback parameter.
90 90
      * @return      void
91 91
      */
92
-    static public function goToURL( $sURL, $oCallbackOnError=null ) {
92
+    static public function goToURL( $sURL, $oCallbackOnError = null ) {
93 93
         self::redirectByType( $sURL, 0, $oCallbackOnError );
94 94
     }
95 95
     
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param       integer     $iType              0: external site, 1: local site (within the same domain).
100 100
      * @param       callable    $oCallbackOnError
101 101
      */
102
-    static public function redirectByType( $sURL, $iType=0, $oCallbackOnError=null ) {
102
+    static public function redirectByType( $sURL, $iType = 0, $oCallbackOnError = null ) {
103 103
      
104 104
         $_iRedirectError = self::getRedirectPreError( $sURL, $iType );
105 105
         if ( $_iRedirectError && is_callable( $oCallbackOnError ) ) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     static public function getRedirectPreError( $sURL, $iType ) {
131 131
         
132 132
         // check only externnal urls as local ones can be a relative url and always fails the below check.
133
-        if ( ! $iType && filter_var( $sURL, FILTER_VALIDATE_URL) === false ) {
133
+        if ( !$iType && filter_var( $sURL, FILTER_VALIDATE_URL ) === false ) {
134 134
             return 1;
135 135
         }
136 136
         // If HTTP headers are already sent, redirect cannot be done.
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_Option.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @since   3.1.3
64 64
      * @since   3.1.5   Added the $vDefault parameter.
65 65
      */    
66
-    static public function getTransient( $sTransientKey, $vDefault=null ) {
66
+    static public function getTransient( $sTransientKey, $vDefault = null ) {
67 67
 
68 68
         // temporarily disable $_wp_using_ext_object_cache
69 69
         global $_wp_using_ext_object_cache;  
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @since       3.1.3
104 104
      * @return      boolean     True if set; otherwise, false.
105 105
      */
106
-    static public function setTransient( $sTransientKey, $vValue, $iExpiration=0 ) {
106
+    static public function setTransient( $sTransientKey, $vValue, $iExpiration = 0 ) {
107 107
 
108 108
         // temporarily disable $_wp_using_ext_object_cache
109 109
         global $_wp_using_ext_object_cache;  
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
          * The method will replace last ending 33 characters if the given string in the first parameter exceeds the limit. So this number must be greater than 33.
142 142
          * @return      string
143 143
          */
144
-        static public function _getCompatibleTransientKey( $sSubject, $iAllowedCharacterLength=45 ) {
144
+        static public function _getCompatibleTransientKey( $sSubject, $iAllowedCharacterLength = 45 ) {
145 145
             
146 146
             // Check if the given string eceees the length limit.
147 147
             if ( strlen( $sSubject ) <= $iAllowedCharacterLength ) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 0, // start position
156 156
                 $_iPrefixLengthToKeep - 1 // how many characters to extract
157 157
             );
158
-            return $_sPrefixToKeep . '_' . md5( $sSubject );
158
+            return $_sPrefixToKeep.'_'.md5( $sSubject );
159 159
          
160 160
         }    
161 161
     
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @param   mixed           $vDefault     the default value that will be returned if nothing is stored.
170 170
      * @param   array           $aAdditionalOptions     an additional options array to merge with the options array. 
171 171
      */
172
-    static public function getOption( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array() ) {
172
+    static public function getOption( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array() ) {
173 173
         return self::_getOptionByFunctionName( $sOptionKey, $asKey, $vDefault, $aAdditionalOptions );
174 174
     }
175 175
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @remark  Used in the network admin area.
185 185
      * @return  mixed
186 186
      */
187
-    static public function getSiteOption( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array() ) {
187
+    static public function getSiteOption( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array() ) {
188 188
         return self::_getOptionByFunctionName( $sOptionKey, $asKey, $vDefault, $aAdditionalOptions, 'get_site_option' );        
189 189
     }  
190 190
         /**
@@ -193,16 +193,16 @@  discard block
 block discarded – undo
193 193
          * @since       3.5.3
194 194
          * @return      mixed
195 195
          */
196
-        static private function _getOptionByFunctionName( $sOptionKey, $asKey=null, $vDefault=null, array $aAdditionalOptions=array(), $sFunctionName='get_option' ) {
196
+        static private function _getOptionByFunctionName( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = array(), $sFunctionName = 'get_option' ) {
197 197
 
198 198
             // Entire options
199
-            if ( ! isset( $asKey ) ) {
199
+            if ( !isset( $asKey ) ) {
200 200
                 $_aOptions = $sFunctionName( 
201 201
                     $sOptionKey,
202 202
                     isset( $vDefault ) 
203 203
                         ? $vDefault 
204 204
                         : array()
205
-                );;
205
+                ); ;
206 206
                 return empty( $aAdditionalOptions ) 
207 207
                     ? $_aOptions
208 208
                     : self::uniteArrays(
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_File.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @since   3.6.2       Supported a text content to be passed to the first parameter.
29 29
      * @access  public
30 30
      */ 
31
-    static public function getScriptData( $sPathOrContent, $sType='plugin', $aDefaultHeaderKeys=array() ) {
31
+    static public function getScriptData( $sPathOrContent, $sType = 'plugin', $aDefaultHeaderKeys = array() ) {
32 32
         
33 33
         $_aHeaderKeys = $aDefaultHeaderKeys + array(
34 34
             // storing array key =>    the comment entry header label
@@ -66,19 +66,19 @@  discard block
 block discarded – undo
66 66
 
67 67
         switch ( trim( $sType ) ) {
68 68
             case 'theme':    
69
-                $aData['sName'] = $aData['sThemeName'];
70
-                $aData['sURI'] = $aData['sThemeURI'];
69
+                $aData[ 'sName' ] = $aData[ 'sThemeName' ];
70
+                $aData[ 'sURI' ] = $aData[ 'sThemeURI' ];
71 71
                 break;
72 72
             case 'library':    
73
-                $aData['sName'] = $aData['sLibraryName'];
74
-                $aData['sURI'] = $aData['sLibraryURI'];
73
+                $aData[ 'sName' ] = $aData[ 'sLibraryName' ];
74
+                $aData[ 'sURI' ] = $aData[ 'sLibraryURI' ];
75 75
                 break;
76 76
             case 'script':    
77
-                $aData['sName'] = $aData['sScriptName'];
77
+                $aData[ 'sName' ] = $aData[ 'sScriptName' ];
78 78
                 break;     
79 79
             case 'plugin':    
80
-                $aData['sName'] = $aData['sPluginName'];
81
-                $aData['sURI'] = $aData['sPluginURI'];
80
+                $aData[ 'sName' ] = $aData[ 'sPluginName' ];
81
+                $aData[ 'sURI' ] = $aData[ 'sPluginURI' ];
82 82
                 break;
83 83
             default:    
84 84
                 break;     
@@ -93,22 +93,22 @@  discard block
 block discarded – undo
93 93
      * @since       3.6.2
94 94
      * @return      array       The script data
95 95
      */
96
-    static public function getScriptDataFromContents( $sContent, $sType='plugin', $aDefaultHeaderKeys=array() ) {
96
+    static public function getScriptDataFromContents( $sContent, $sType = 'plugin', $aDefaultHeaderKeys = array() ) {
97 97
         
98 98
         // Make sure we catch CR-only line endings.
99 99
         $sContent = str_replace( "\r", "\n", $sContent );
100 100
         
101
-        $_aHeaders      = $aDefaultHeaderKeys;
101
+        $_aHeaders = $aDefaultHeaderKeys;
102 102
         if ( $sType ) {
103 103
             $_aExtraHeaders = apply_filters( "extra_{$sType}_headers", array() );
104
-            if ( ! empty( $_aExtraHeaders ) ) {
104
+            if ( !empty( $_aExtraHeaders ) ) {
105 105
                 $_aExtraHeaders = array_combine( $_aExtraHeaders, $_aExtraHeaders ); // keys equal values
106 106
                 $_aHeaders      = array_merge( $_aExtraHeaders, ( array ) $aDefaultHeaderKeys );
107 107
             }
108 108
         } 
109 109
 
110 110
         foreach ( $_aHeaders as $_sHeaderKey => $_sRegex ) {
111
-            $_bFound = preg_match( '/^[ \t\/*#@]*' . preg_quote( $_sRegex, '/' ) . ':(.*)$/mi', $sContent, $_aMatch );
111
+            $_bFound = preg_match( '/^[ \t\/*#@]*'.preg_quote( $_sRegex, '/' ).':(.*)$/mi', $sContent, $_aMatch );
112 112
             $_aHeaders[ $_sHeaderKey ] = $_bFound && $_aMatch[ 1 ]
113 113
                 ? _cleanup_header_comment( $_aMatch[ 1 ] )
114 114
                 : '';        
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
      * @since       3.4.2
126 126
      * @see         download_url() in file.php in core.
127 127
      */
128
-    static public function download( $sURL, $iTimeOut=300 ) {
128
+    static public function download( $sURL, $iTimeOut = 300 ) {
129 129
         
130 130
         if ( false === filter_var( $sURL, FILTER_VALIDATE_URL ) ) {
131 131
             return false;
132 132
         }
133 133
 
134 134
         $_sTmpFileName = self::setTempPath( self::getBaseNameOfURL( $sURL ) );
135
-        if ( ! $_sTmpFileName ) {
135
+        if ( !$_sTmpFileName ) {
136 136
             return false;
137 137
         }
138 138
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             return false;
151 151
         }
152 152
 
153
-        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ){
153
+        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ) {
154 154
             unlink( $_sTmpFileName );
155 155
             return false;
156 156
         }
@@ -175,16 +175,16 @@  discard block
 block discarded – undo
175 175
      * @since       3.4.2
176 176
      * @return      string      The set file path.
177 177
      */
178
-    static public function setTempPath( $sFilePath='' ) {
178
+    static public function setTempPath( $sFilePath = '' ) {
179 179
         
180 180
         $_sDir = get_temp_dir();
181 181
         
182 182
         $sFilePath = basename( $sFilePath );
183 183
         if ( empty( $sFilePath ) ) {            
184
-            $sFilePath = time() . '.tmp';
184
+            $sFilePath = time().'.tmp';
185 185
         }
186 186
 
187
-        $sFilePath = $_sDir . wp_unique_filename( $_sDir, $sFilePath );
187
+        $sFilePath = $_sDir.wp_unique_filename( $_sDir, $sFilePath );
188 188
         touch( $sFilePath );
189 189
         return $sFilePath;
190 190
         
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     static public function getBaseNameOfURL( $sURL ) {
199 199
         
200
-        $_sPath         = parse_url( $sURL, PHP_URL_PATH) ; 
200
+        $_sPath         = parse_url( $sURL, PHP_URL_PATH ); 
201 201
         $_sFileBaseName = basename( $_sPath );
202 202
         return $_sFileBaseName;
203 203
         
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             return false;
151 151
         }
152 152
 
153
-        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ){
153
+        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ) {
154 154
             unlink( $_sTmpFileName );
155 155
             return false;
156 156
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $_sDir = get_temp_dir();
181 181
         
182 182
         $sFilePath = basename( $sFilePath );
183
-        if ( empty( $sFilePath ) ) {            
183
+        if ( empty( $sFilePath ) ) {
184 184
             $sFilePath = time() . '.tmp';
185 185
         }
186 186
 
Please login to merge, or discard this patch.
utility/wp_utility/AdminPageFramework_WPUtility_SystemInformation.php 1 patch
Spacing   +4 added lines, -4 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
             
47 47
             $_aItem     = array_values( $_aItem );
48 48
             $_sKey      = array_shift( $_aItem );
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
     static public function getMySQLErrorLogPath() {
64 64
         
65 65
         $_aMySQLInfo = self::getMySQLInfo();
66
-        return isset( $_aMySQLInfo['log_error'] )
67
-            ? $_aMySQLInfo['log_error']
66
+        return isset( $_aMySQLInfo[ 'log_error' ] )
67
+            ? $_aMySQLInfo[ 'log_error' ]
68 68
             : '';
69 69
         
70 70
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * Returns a PHP error log.
74 74
      * @since       3.4.6
75 75
      */
76
-    static public function getMySQLErrorLog( $iLines=1 ) {
76
+    static public function getMySQLErrorLog( $iLines = 1 ) {
77 77
         
78 78
         $_sLog = self::getFileTailContents( self::getMySQLErrorLogPath(), $iLines );
79 79
         
Please login to merge, or discard this patch.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_HTML.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
      
39 39
         $_sQuoteCharactor   = "'";
40 40
         $_aOutput           = array();
41
-        foreach( $aAttributes as $_sAttribute => $_mProperty ) {
41
+        foreach ( $aAttributes as $_sAttribute => $_mProperty ) {
42 42
             if ( is_scalar( $_mProperty ) ) {
43
-                $_aOutput[] = "{$_sAttribute}={$_sQuoteCharactor}" . esc_attr( $_mProperty ) . "{$_sQuoteCharactor}";
43
+                $_aOutput[ ] = "{$_sAttribute}={$_sQuoteCharactor}".esc_attr( $_mProperty )."{$_sQuoteCharactor}";
44 44
             }            
45 45
         }     
46 46
         return implode( ' ', $_aOutput );
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
      * @since       3.6.0
80 80
      * @return      string
81 81
      */
82
-    static public function getHTMLTag( $sTagName, array $aAttributes, $sValue=null ) {
82
+    static public function getHTMLTag( $sTagName, array $aAttributes, $sValue = null ) {
83 83
         $_sTag = tag_escape( $sTagName );
84 84
         return null === $sValue
85
-            ? "<" . $_sTag . " " . self::getAttributes( $aAttributes ) . " />"
86
-            : "<" . $_sTag . " " . self::getAttributes( $aAttributes ) . ">"
85
+            ? "<".$_sTag." ".self::getAttributes( $aAttributes )." />"
86
+            : "<".$_sTag." ".self::getAttributes( $aAttributes ).">"
87 87
                     . $sValue
88 88
                 . "</{$_sTag}>";        
89 89
     }    
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
          * @return      string
94 94
          * @deprecated  3.6.0       Use `getHTMLTag()` instead.
95 95
          */
96
-        static public function generateHTMLTag( $sTagName, array $aAttributes, $sValue=null ) {
96
+        static public function generateHTMLTag( $sTagName, array $aAttributes, $sValue = null ) {
97 97
             return self::getHTMLTag( $sTagName, $aAttributes, $sValue );
98 98
         }
99 99
     
Please login to merge, or discard this patch.