Completed
Branch dev (fd82bc)
by Michael
04:41
created
development/factory/_common/utility/debug/AdminPageFramework_Debug_Log.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @since       3.8.9
26 26
      * @return      void
27 27
      **/
28
-    static protected function _log( $mValue, $sFilePath=null ) {
28
+    static protected function _log( $mValue, $sFilePath = null ) {
29 29
                 
30 30
         static $_fPreviousTimeStamp = 0;
31 31
         
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
                     round( $_fCurrentTimeStamp - $_fPreviousTimeStamp, 3 ), // elapsed time
54 54
                     $_sCallerClass,
55 55
                     $_sCallerFunction
56
-                ) . PHP_EOL
57
-                . self::_getLegibleDetails( $mValue ) . PHP_EOL . PHP_EOL;
56
+                ).PHP_EOL
57
+                . self::_getLegibleDetails( $mValue ).PHP_EOL.PHP_EOL;
58 58
         }
59 59
         /**
60 60
          * @since       3.8.9
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          */
63 63
         static private function _getCallerFunctionName( $oCallerInfo ) {
64 64
             return self::getElement(
65
-                $oCallerInfo,  // subject array
65
+                $oCallerInfo, // subject array
66 66
                 array( 1, 'function' ), // key
67 67
                 ''      // default
68 68
             );
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
          */        
74 74
         static private function _getCallerClassName( $oCallerInfo ) {
75 75
             return self::getElement(
76
-                $oCallerInfo,  // subject array
76
+                $oCallerInfo, // subject array
77 77
                 array( 1, 'class' ), // key
78 78
                 ''      // default
79 79
             );           
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
             }
93 93
             // Return a generated default log path.
94 94
             if ( true === $bsFilePath ) {
95
-                return WP_CONTENT_DIR . DIRECTORY_SEPARATOR . basename( get_class() ) . '_' . date( "Ymd" ) . '.log';
95
+                return WP_CONTENT_DIR.DIRECTORY_SEPARATOR.basename( get_class() ).'_'.date( "Ymd" ).'.log';
96 96
             }
97
-            return WP_CONTENT_DIR . DIRECTORY_SEPARATOR . basename( get_class() ) . '_' . basename( $sCallerClass ) . '_' . date( "Ymd" ) . '.log';
97
+            return WP_CONTENT_DIR.DIRECTORY_SEPARATOR.basename( get_class() ).'_'.basename( $sCallerClass ).'_'.date( "Ymd" ).'.log';
98 98
             
99 99
         }
100 100
             /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
              * @internal
104 104
              */
105 105
             static private function _createFile( $sFilePath ) {
106
-                if ( ! $sFilePath || true === $sFilePath ) {
106
+                if ( !$sFilePath || true === $sFilePath ) {
107 107
                     return false;
108 108
                 }
109 109
                 if ( file_exists( $sFilePath ) ) {
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
             $_nNow              = $fCurrentTimeStamp + ( self::_getSiteGMTOffset() * 60 * 60 );
126 126
             $_nMicroseconds     = str_pad( round( ( $_nNow - floor( $_nNow ) ) * 10000 ), 4, '0' );            
127 127
             $_aOutput           = array(
128
-                date( "Y/m/d H:i:s", $_nNow ) . '.' . $_nMicroseconds,
128
+                date( "Y/m/d H:i:s", $_nNow ).'.'.$_nMicroseconds,
129 129
                 self::_getFormattedElapsedTime( $nElapsed ),
130 130
                 self::_getPageLoadID(),
131 131
                 self::getFrameworkVersion(),
132
-                $sCallerClass . '::' . $sCallerFunction,
132
+                $sCallerClass.'::'.$sCallerFunction,
133 133
                 current_filter(),
134 134
                 self::getCurrentURL(),
135 135
             );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
              */
145 145
             static private function _getSiteGMTOffset() {
146 146
                 static $_nGMTOffset;
147
-                $_nGMTOffset        = isset( $_nGMTOffset ) 
147
+                $_nGMTOffset = isset( $_nGMTOffset ) 
148 148
                     ? $_nGMTOffset 
149 149
                     : get_option( 'gmt_offset' );          
150 150
                 return $_nGMTOffset;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
              */
156 156
             static private function _getPageLoadID() {
157 157
                 static $_iPageLoadID;
158
-                $_iPageLoadID       = $_iPageLoadID 
158
+                $_iPageLoadID = $_iPageLoadID 
159 159
                     ? $_iPageLoadID 
160 160
                     : uniqid();                
161 161
                 return $_iPageLoadID;
@@ -179,15 +179,15 @@  discard block
 block discarded – undo
179 179
                     3, 
180 180
                     '0'
181 181
                 );
182
-                $_sElapsed          = self::getElement(
183
-                    $_aElapsedParts,  // subject array
184
-                    0,  // key
182
+                $_sElapsed = self::getElement(
183
+                    $_aElapsedParts, // subject array
184
+                    0, // key
185 185
                     0   // default
186 186
                 );                                   
187
-                $_sElapsed          = strlen( $_sElapsed ) > 1 
188
-                    ? '+' . substr( $_sElapsed, -1, 2 ) 
189
-                    : ' ' . $_sElapsed;
190
-                return $_sElapsed . '.' . $_sElapsedFloat;
187
+                $_sElapsed = strlen( $_sElapsed ) > 1 
188
+                    ? '+'.substr( $_sElapsed, -1, 2 ) 
189
+                    : ' '.$_sElapsed;
190
+                return $_sElapsed.'.'.$_sElapsedFloat;
191 191
             
192 192
             }
193 193
     
Please login to merge, or discard this patch.