PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/QueryLogger.php +4 -4 5.0.25.3.5 View file →
@@ -88,9 +88,9 @@
88 88 *
89 89 * @param bool $should_filter_old Whether it should filter out old entries or not. Default to true, only return entries newer than the limit
90 90 * @return array
91 91 */
92 - public function get_logs( bool $should_filter_old = true ) : array {
92 + public function get_logs( bool $should_filter_old = true ): array {
93 93 $logs = ( defined( 'EP_IS_NETWORK' ) && EP_IS_NETWORK ) ?
94 94 get_site_transient( self::CACHE_KEY, [] ) :
95 95 get_transient( self::CACHE_KEY, [] );
96 96
@@ -213,9 +213,9 @@
213 213 *
214 214 * @param array $notices Current EP notices
215 215 * @return array
216 216 */
217 - public function maybe_add_notice( array $notices ) : array {
217 + public function maybe_add_notice( $notices ) {
218 218 if ( ! current_user_can( Utils\get_capability() ) ) {
219 219 return $notices;
220 220 }
221 221
@@ -276,9 +276,9 @@
276 276 * @param array $query The failed query
277 277 * @param string $type The query type
278 278 * @return array
279 279 */
280 - protected function format_log_entry( array $query, string $type ) : array {
280 + protected function format_log_entry( array $query, string $type ): array {
281 281 global $wp;
282 282
283 283 $query_time = ( ! empty( $query['time_start'] ) && ! empty( $query['time_finish'] ) ) ?
284 284 ( $query['time_finish'] - $query['time_start'] ) * 1000 :
@@ -343,9 +343,9 @@
343 343 * @param array $query The failed query
344 344 * @param string $type The query type
345 345 * @return boolean
346 346 */
347 - protected function should_log_query_type( array $query, string $type ) : bool {
347 + protected function should_log_query_type( array $query, string $type ): bool {
348 348 /**
349 349 * Filter the array with a map from query types to callables. If the callable returns true,
350 350 * the query will be logged.
351 351 *