Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../psr/http-mes.../src
File: StreamInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\Psr\Http\Message;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Describes a data stream.
[5] Fix | Delete
*
[6] Fix | Delete
* Typically, an instance will wrap a PHP stream; this interface provides
[7] Fix | Delete
* a wrapper around the most common operations, including serialization of
[8] Fix | Delete
* the entire stream to a string.
[9] Fix | Delete
*/
[10] Fix | Delete
interface StreamInterface
[11] Fix | Delete
{
[12] Fix | Delete
/**
[13] Fix | Delete
* Reads all data from the stream into a string, from the beginning to end.
[14] Fix | Delete
*
[15] Fix | Delete
* This method MUST attempt to seek to the beginning of the stream before
[16] Fix | Delete
* reading data and read the stream until the end is reached.
[17] Fix | Delete
*
[18] Fix | Delete
* Warning: This could attempt to load a large amount of data into memory.
[19] Fix | Delete
*
[20] Fix | Delete
* This method MUST NOT raise an exception in order to conform with PHP's
[21] Fix | Delete
* string casting operations.
[22] Fix | Delete
*
[23] Fix | Delete
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
[24] Fix | Delete
* @return string
[25] Fix | Delete
*/
[26] Fix | Delete
public function __toString() : string;
[27] Fix | Delete
/**
[28] Fix | Delete
* Closes the stream and any underlying resources.
[29] Fix | Delete
*
[30] Fix | Delete
* @return void
[31] Fix | Delete
*/
[32] Fix | Delete
public function close() : void;
[33] Fix | Delete
/**
[34] Fix | Delete
* Separates any underlying resources from the stream.
[35] Fix | Delete
*
[36] Fix | Delete
* After the stream has been detached, the stream is in an unusable state.
[37] Fix | Delete
*
[38] Fix | Delete
* @return resource|null Underlying PHP stream, if any
[39] Fix | Delete
*/
[40] Fix | Delete
public function detach();
[41] Fix | Delete
/**
[42] Fix | Delete
* Get the size of the stream if known.
[43] Fix | Delete
*
[44] Fix | Delete
* @return int|null Returns the size in bytes if known, or null if unknown.
[45] Fix | Delete
*/
[46] Fix | Delete
public function getSize() : ?int;
[47] Fix | Delete
/**
[48] Fix | Delete
* Returns the current position of the file read/write pointer
[49] Fix | Delete
*
[50] Fix | Delete
* @return int Position of the file pointer
[51] Fix | Delete
* @throws \RuntimeException on error.
[52] Fix | Delete
*/
[53] Fix | Delete
public function tell() : int;
[54] Fix | Delete
/**
[55] Fix | Delete
* Returns true if the stream is at the end of the stream.
[56] Fix | Delete
*
[57] Fix | Delete
* @return bool
[58] Fix | Delete
*/
[59] Fix | Delete
public function eof() : bool;
[60] Fix | Delete
/**
[61] Fix | Delete
* Returns whether or not the stream is seekable.
[62] Fix | Delete
*
[63] Fix | Delete
* @return bool
[64] Fix | Delete
*/
[65] Fix | Delete
public function isSeekable() : bool;
[66] Fix | Delete
/**
[67] Fix | Delete
* Seek to a position in the stream.
[68] Fix | Delete
*
[69] Fix | Delete
* @link http://www.php.net/manual/en/function.fseek.php
[70] Fix | Delete
* @param int $offset Stream offset
[71] Fix | Delete
* @param int $whence Specifies how the cursor position will be calculated
[72] Fix | Delete
* based on the seek offset. Valid values are identical to the built-in
[73] Fix | Delete
* PHP $whence values for `fseek()`. SEEK_SET: Set position equal to
[74] Fix | Delete
* offset bytes SEEK_CUR: Set position to current location plus offset
[75] Fix | Delete
* SEEK_END: Set position to end-of-stream plus offset.
[76] Fix | Delete
* @throws \RuntimeException on failure.
[77] Fix | Delete
*/
[78] Fix | Delete
public function seek(int $offset, int $whence = \SEEK_SET) : void;
[79] Fix | Delete
/**
[80] Fix | Delete
* Seek to the beginning of the stream.
[81] Fix | Delete
*
[82] Fix | Delete
* If the stream is not seekable, this method will raise an exception;
[83] Fix | Delete
* otherwise, it will perform a seek(0).
[84] Fix | Delete
*
[85] Fix | Delete
* @see seek()
[86] Fix | Delete
* @link http://www.php.net/manual/en/function.fseek.php
[87] Fix | Delete
* @throws \RuntimeException on failure.
[88] Fix | Delete
*/
[89] Fix | Delete
public function rewind() : void;
[90] Fix | Delete
/**
[91] Fix | Delete
* Returns whether or not the stream is writable.
[92] Fix | Delete
*
[93] Fix | Delete
* @return bool
[94] Fix | Delete
*/
[95] Fix | Delete
public function isWritable() : bool;
[96] Fix | Delete
/**
[97] Fix | Delete
* Write data to the stream.
[98] Fix | Delete
*
[99] Fix | Delete
* @param string $string The string that is to be written.
[100] Fix | Delete
* @return int Returns the number of bytes written to the stream.
[101] Fix | Delete
* @throws \RuntimeException on failure.
[102] Fix | Delete
*/
[103] Fix | Delete
public function write(string $string) : int;
[104] Fix | Delete
/**
[105] Fix | Delete
* Returns whether or not the stream is readable.
[106] Fix | Delete
*
[107] Fix | Delete
* @return bool
[108] Fix | Delete
*/
[109] Fix | Delete
public function isReadable() : bool;
[110] Fix | Delete
/**
[111] Fix | Delete
* Read data from the stream.
[112] Fix | Delete
*
[113] Fix | Delete
* @param int $length Read up to $length bytes from the object and return
[114] Fix | Delete
* them. Fewer than $length bytes may be returned if underlying stream
[115] Fix | Delete
* call returns fewer bytes.
[116] Fix | Delete
* @return string Returns the data read from the stream, or an empty string
[117] Fix | Delete
* if no bytes are available.
[118] Fix | Delete
* @throws \RuntimeException if an error occurs.
[119] Fix | Delete
*/
[120] Fix | Delete
public function read(int $length) : string;
[121] Fix | Delete
/**
[122] Fix | Delete
* Returns the remaining contents in a string
[123] Fix | Delete
*
[124] Fix | Delete
* @return string
[125] Fix | Delete
* @throws \RuntimeException if unable to read or an error occurs while
[126] Fix | Delete
* reading.
[127] Fix | Delete
*/
[128] Fix | Delete
public function getContents() : string;
[129] Fix | Delete
/**
[130] Fix | Delete
* Get stream metadata as an associative array or retrieve a specific key.
[131] Fix | Delete
*
[132] Fix | Delete
* The keys returned are identical to the keys returned from PHP's
[133] Fix | Delete
* stream_get_meta_data() function.
[134] Fix | Delete
*
[135] Fix | Delete
* @link http://php.net/manual/en/function.stream-get-meta-data.php
[136] Fix | Delete
* @param string|null $key Specific metadata to retrieve.
[137] Fix | Delete
* @return array|mixed|null Returns an associative array if no key is
[138] Fix | Delete
* provided. Returns a specific key value if a key is provided and the
[139] Fix | Delete
* value is found, or null if the key is not found.
[140] Fix | Delete
*/
[141] Fix | Delete
public function getMetadata(?string $key = null);
[142] Fix | Delete
}
[143] Fix | Delete
[144] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function