core/Filesystem/Filesystem.php
public function getRequireData( string $path, $default = [] )
	{
		if( $this->isFile( $path ) )
		{
			return $this->callback(function($file) use($default) {
				/** @noinspection PhpIncludeInspection */
				require $file;
				return $data ?? $default ?? null;
			}, $path);
		}
		throw new NotFoundFileException($path, "File does not exist at path '{$path}'");
	}
public function getRequireData( string $path, $default = [] )
	{
		if( $this->isFile( $path ) )
		{
			return $this->callback(function($file) use($default) {
				/** @noinspection PhpIncludeInspection */
				require $file;
				return $data ?? $default ?? null;
			}, $path);
		}
		throw new NotFoundFileException($path, "File does not exist at path '{$path}'");
	}
public function getRequireData ( string $ path , $ default = [ ] ) { if ( $ this -> isFile ( $ path ) ) { return $ this -> callback ( function ( $ file ) use ( $ default ) { /** @noinspection PhpIncludeInspection */ require $ file ; return $ data ?? $ default ?? null ; } , $ path ) ; } throw new NotFoundFileException ( $ path , "File does not exist at path '{$path}'" ) ; }
Get the saved data value of a file

@param  string $path
@param array $default
@return mixed

@throws NotFoundFileException
Get the saved data value of a file