| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Logger\Items; |
| 3 | 3 | |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | - exit; // Exit if accessed directly. | |
| 5 | + exit; // Exit if accessed directly | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | class Base implements Log_Item_Interface { |
| 9 | 9 | |
| @@ -103,9 +103,9 @@ | ||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | public function get_fingerprint() { |
| 106 | 106 | $unique_key = $this->type . $this->message . var_export( $this->meta, true ); // @codingStandardsIgnoreLine |
| 107 | - // Info messages are not be aggregated: | |
| 107 | + //info messages are not be aggregated: | |
| 108 | 108 | if ( 'info' === $this->type ) { |
| 109 | 109 | $unique_key .= $this->date; |
| 110 | 110 | } |
| 111 | 111 | return md5( $unique_key ); |
| @@ -111,9 +111,9 @@ | ||
| 111 | 111 | return md5( $unique_key ); |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | public function increase_times( $item, $truncate = true ) { |
| 115 | - ++$this->times; | |
| 115 | + $this->times++; | |
| 116 | 116 | $this->times_dates[] = $item->date; |
| 117 | 117 | |
| 118 | 118 | if ( $truncate && ( self::MAX_LOG_ENTRIES < count( $this->times_dates ) ) ) { |
| 119 | 119 | $this->times_dates = array_slice( $this->times_dates, -self::MAX_LOG_ENTRIES ); |