Searched refs:stream (Results 1 – 14 of 14) sorted by relevance
/webtrees/app/Services/ |
H A D | GedcomExportService.php | 116 $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 D | TreeService.php | 232 * @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 D | UpgradeService.php | 156 $stream = $response->getBody(); 159 while (!$stream->eof()) { 160 $data = $stream->read(self::READ_BLOCK_SIZE); 169 $stream->close(); 174 $stream->close();
|
H A D | AdminService.php | 255 $stream = $filesystem->readStream($attributes->path()); 257 $header = fread($stream, 10); 258 fclose($stream);
|
/webtrees/tests/ |
H A D | TestCase.php | 185 …$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 D | GedcomEncodingFilter.php | 31 * @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 D | SynchronizeTrees.php | 91 $stream = $this->stream_factory->createStreamFromResource($resource); 92 $this->tree_service->importGedcomFile($tree, $stream, $gedcom_file, ''); 93 $stream->close();
|
H A D | UpgradeWizardStep.php | 212 $stream = $this->gedcom_export_service->export($tree); 213 $data_filesystem->writeStream($filename, $stream); 214 fclose($stream);
|
H A D | ImportGedcomAction.php | 109 $stream = $this->stream_factory->createStreamFromResource($resource); 110 $this->tree_service->importGedcomFile($tree, $stream, $server_file, $encoding);
|
/webtrees/app/Http/Middleware/ |
H A D | CompressResponse.php | 92 $stream = $this->stream_factory->createStream($content); 95 ->withBody($stream)
|
/webtrees/app/Cli/Commands/ |
H A D | TreeExport.php | 84 $stream = $this->gedcom_export_service->export( 95 echo stream_get_contents($stream);
|
/webtrees/app/Factories/ |
H A D | ResponseFactory.php | 114 $stream = $this->stream_factory->createStream($content); 118 ->withBody($stream);
|
/webtrees/ |
H A D | phpstan-baseline.neon | 2104 …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 D | composer.lock | 1100 "stream",
|