2121
2222/**
2323 * Handles logging of plugin events to file.
24- *
24+ *
2525 *
2626 * @since 3.7.0
2727 */
@@ -96,8 +96,7 @@ public function get_log_enabled() {
9696 *
9797 * @return string The full filesystem path to the tiny-compress.log file.
9898 */
99- public function get_log_file_path ()
100- {
99+ public function get_log_file_path () {
101100 return $ this ->log_file_path ;
102101 }
103102
@@ -110,7 +109,7 @@ public function get_log_file_path()
110109 public static function on_save_log_enabled ( $ log_enabled , $ old , $ option ) {
111110 $ instance = self ::get_instance ();
112111 $ instance ->log_enabled = 'on ' === $ log_enabled ;
113-
112+
114113 if ( 'on ' !== $ log_enabled ) {
115114 $ instance ->clear_logs ();
116115 }
@@ -128,7 +127,7 @@ public static function on_save_log_enabled( $log_enabled, $old, $option ) {
128127 private function resolve_log_file_path () {
129128 $ upload_dir = wp_upload_dir ();
130129 $ log_dir = trailingslashit ( $ upload_dir ['basedir ' ] ) . 'tiny-compress-logs ' ;
131- return trailingslashit ($ log_dir ) . 'tiny-compress.log ' ;
130+ return trailingslashit ( $ log_dir ) . 'tiny-compress.log ' ;
132131 }
133132
134133 /**
@@ -187,7 +186,7 @@ private function log( $level, $message, $context = array() ) {
187186 }
188187
189188 /**
190- * Deletes log file and creates a new one when the
189+ * Deletes log file and creates a new one when the
191190 * MAX_LOG_SIZE is met.
192191 *
193192 * @return void
0 commit comments