HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/wp/vendor/wp-cli/doctor-command/src/Check/File.php
<?php

namespace WP_CLI\Doctor\Check;

use WP_CLI\Doctor\Check;

/**
 * Check files on the filesystem.
 */
abstract class File extends Check {

	/**
	 * File checks are run as their own group.
	 */
	protected $_when = false;

	/**
	 * File extension to check.
	 *
	 * Separate multiple file extensions with a '|'.
	 *
	 * @var string
	 */
	protected $extension = 'php';

	/**
	 * Check a specific file path.
	 *
	 * Value should be relative to ABSPATH (e.g. 'wp-content' or 'wp-config.php')
	 *
	 * @var string
	 */
	protected $path = '';

	/**
	 * Only check the wp-content directory.
	 *
	 * @var boolean
	 */
	protected $only_wp_content = false;

	/**
	 * Any files matching the check.
	 *
	 * @var array
	 */
	protected $_matches = array();

	/**
	 * Get the options for this check
	 *
	 * @return string
	 */
	public function get_options() {
		return array(
			'extension'       => $this->extension,
			'only_wp_content' => $this->only_wp_content,
			'path'            => $this->path,
		);
	}
}