Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 14 of 14) sorted by relevance

/webtrees/app/Services/
H A DGedcomExportService.php116 $stream = $this->stream_factory->createStreamFromResource($resource);
119 ->withBody($stream)
151 $stream = $this->stream_factory->createStreamFromFile($temp_zip_file);
154 ->withBody($stream)
183 $stream = fopen('php://memory', 'wb+');
185 if ($stream === false) {
189 …stream_filter_append($stream, GedcomEncodingFilter::class, STREAM_FILTER_WRITE, ['src_encoding' =>…
263 $bytes_written = fwrite($stream, $gedcom);
271 if (rewind($stream) === false) {
275 return $stream;
H A DTreeService.php232 * @param StreamInterface $stream The GEDCOM file.
238 …public function importGedcomFile(Tree $tree, StreamInterface $stream, string $filename, string $en… argument
252 $stream = $stream->detach();
255 …stream_filter_append($stream, GedcomEncodingFilter::class, STREAM_FILTER_READ, ['src_encoding' => …
257 while (!feof($stream)) {
258 $file_data .= fread($stream, 65536);
276 fclose($stream);
H A DUpgradeService.php156 $stream = $response->getBody();
159 while (!$stream->eof()) {
160 $data = $stream->read(self::READ_BLOCK_SIZE);
169 $stream->close();
174 $stream->close();
H A DAdminService.php255 $stream = $filesystem->readStream($attributes->path());
257 $header = fread($stream, 10);
258 fclose($stream);
/webtrees/tests/
H A DTestCase.php185 …$stream = Registry::container()->get(StreamFactoryInterface::class)->createStreamFr…
187 $tree_service->importGedcomFile($tree, $stream, $gedcom_file, '');
207 $stream = $stream_factory->createStreamFromFile($filename);
212 …return $uploaded_file_factory->createUploadedFile($stream, $size, $status, $client_name, $mime_typ…
/webtrees/app/GedcomFilters/
H A DGedcomEncodingFilter.php31 * @property resource $stream
85 $bucket_out = stream_bucket_new($this->stream, $data_out);
96 $bucket_out = stream_bucket_new($this->stream, $data_out);
/webtrees/app/Http/RequestHandlers/
H A DSynchronizeTrees.php91 $stream = $this->stream_factory->createStreamFromResource($resource);
92 $this->tree_service->importGedcomFile($tree, $stream, $gedcom_file, '');
93 $stream->close();
H A DUpgradeWizardStep.php212 $stream = $this->gedcom_export_service->export($tree);
213 $data_filesystem->writeStream($filename, $stream);
214 fclose($stream);
H A DImportGedcomAction.php109 $stream = $this->stream_factory->createStreamFromResource($resource);
110 $this->tree_service->importGedcomFile($tree, $stream, $server_file, $encoding);
/webtrees/app/Http/Middleware/
H A DCompressResponse.php92 $stream = $this->stream_factory->createStream($content);
95 ->withBody($stream)
/webtrees/app/Cli/Commands/
H A DTreeExport.php84 $stream = $this->gedcom_export_service->export(
95 echo stream_get_contents($stream);
/webtrees/app/Factories/
H A DResponseFactory.php114 $stream = $this->stream_factory->createStream($content);
118 ->withBody($stream);
/webtrees/
H A Dphpstan-baseline.neon2104 …message: '#^Parameter \#2 \$stream of method Fisharebest\\Webtrees\\Services\\TreeService\:\:impor…
2470 message: '#^Parameter \#1 \$stream of function fclose expects resource, mixed given\.$#'
2476 message: '#^Parameter \#1 \$stream of function fgetcsv expects resource, mixed given\.$#'
2482 message: '#^Parameter \#1 \$stream of function rewind expects resource, mixed given\.$#'
2488 …message: '#^Parameter \#1 \$stream of function stream_get_contents expects resource, mixed given\.…
7204 … message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|false given\.$#'
7210 message: '#^Parameter \#1 \$stream of function feof expects resource, resource\|false given\.$#'
7216 message: '#^Parameter \#1 \$stream of function fread expects resource, resource\|false given\.$#'
9196 message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|null given\.$#'
9202 message: '#^Parameter \#1 \$stream of function feof expects resource, resource\|null given\.$#'
[all …]
H A Dcomposer.lock1100 "stream",