/home/techb158/public_html/wp-content/plugins/kirki/libraries/framework/Filesystem
NameSizeModeActions
File.php37240644editdlrm
Fileable.php28020644editdlrm
Filesystem.php125150644editdlrm
FileSystemServiceProvider.php7140644editdlrm
MimeTypes.php43660644editdlrm
Path.php18500644editdlrm
UploadedFile.php98960644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/kirki/libraries/framework/Filesystem/Fileable.php (2802B)
path = $path; } /** * Create a new file instance. * * @param string $path The path. * * @return static * * @since 1.0.0 */ public static function make(string $path) { return new static($path); } /** * Get the parameters for the given method. * * @param mixed $method The method name. * @param mixed $parameters The parameters array. * * @return array * * @since 1.0.0 */ protected function parameters($method, $parameters) { $exception_methods = ['delete', 'glob']; if (\in_array($method, $exception_methods)) { return $parameters; } return \array_merge([$this->path], $parameters); } /** * Handle dynamic method calls into the filesystem. * * @param mixed $method The method name. * @param mixed $parameters The parameters array. * * @return mixed * * @throws \BadMethodCallException * * @since 1.0.0 */ public function __call($method, $parameters) { $filesystem = new Filesystem(); if (!\method_exists($filesystem, $method)) { throw new \BadMethodCallException("Method [{$method}] does not exist on [Filesystem]."); } return $filesystem->{$method}(...$this->parameters($method, $parameters)); } }