array( 'type' => 'array' ), 'count' => array( 'type' => 'integer' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @param array $input Input. * @return array */ protected function run( array $input ) { $tables = Database_Repository::myisam_tables(); return array( 'tables' => $tables, 'count' => count( $tables ), 'message' => array() === $tables ? __( 'Every table uses InnoDB.', 'acrossai-abilities-manager' ) : sprintf( /* translators: %d: number of tables */ _n( '%d table still uses MyISAM.', '%d tables still use MyISAM.', count( $tables ), 'acrossai-abilities-manager' ), count( $tables ) ), ); } }