| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | return; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // Include all the different event loggers. |
| 31 | - foreach ( array( 'posts', 'plugins', 'core', 'options', 'users', 'comments', 'attachment' ) as $event ) { | |
| 31 | + foreach ( [ 'posts', 'plugins', 'core', 'options', 'users', 'comments', 'attachment' ] as $event ) { | |
| 32 | 32 | require_once dirname( __FILE__ ) . '/events/' . $event . '.php'; |
| 33 | 33 | $class = 'P_Event_' . ucfirst( $event ); |
| 34 | 34 | new $class(); |
| 35 | 35 | } |
| @@ -67,9 +67,9 @@ | ||
| 67 | 67 | // Insert into the logs. |
| 68 | 68 | global $wpdb; |
| 69 | 69 | $wpdb->insert( |
| 70 | 70 | $wpdb->prefix . 'patchstack_event_log', |
| 71 | - array( | |
| 71 | + [ | |
| 72 | 72 | 'author' => $author, |
| 73 | 73 | 'ip' => $this->get_ip(), |
| 74 | 74 | 'object' => isset( $args['object'] ) ? $args['object'] : '', |
| 75 | 75 | 'object_id' => isset( $args['object_id'] ) ? (int) $args['object_id'] : '', |
| @@ -76,10 +76,10 @@ | ||
| 76 | 76 | 'action' => isset( $args['action'] ) ? $args['action'] : '', |
| 77 | 77 | 'object_name' => isset( $args['object_name'] ) ? $args['object_name'] : '', |
| 78 | 78 | 'date' => current_time( 'mysql' ), |
| 79 | 79 | 'flag' => '', |
| 80 | - ), | |
| 81 | - array( '%s', '%s', '%s', '%d', '%s', '%s', '%s' ) | |
| 80 | + ], | |
| 81 | + [ '%s', '%s', '%s', '%d', '%s', '%s', '%s' ] | |
| 82 | 82 | ); |
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | } |