░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/openspout/src/Writer/ODS/Manager/Style
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: StyleRegistry.php
<?php declare(strict_types=1); namespace OpenSpout\Writer\ODS\Manager\Style; use OpenSpout\Common\Entity\Style\Style; use OpenSpout\Writer\Common\Manager\Style\AbstractStyleRegistry as CommonStyleRegistry; /** * @internal */ final class StyleRegistry extends CommonStyleRegistry { /** @var array<string, bool> [FONT_NAME] => [] Map whose keys contain all the fonts used */ private array $usedFontsSet = []; /** * Registers the given style as a used style. * Duplicate styles won't be registered more than once. * * @param Style $style The style to be registered * * @return Style the registered style, updated with an internal ID */ public function registerStyle(Style $style): Style { if ($style->isRegistered()) { return $style; } $registeredStyle = parent::registerStyle($style); $this->usedFontsSet[$style->getFontName()] = true; return $registeredStyle; } /** * @return string[] List of used fonts name */ public function getUsedFonts(): array { return array_keys($this->usedFontsSet); } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 StyleManager.php
PHP
16.6 KB
2026-02-11 01:44
EDIT
📄 StyleRegistry.php
PHP
1.1 KB
2026-02-11 01:44
EDIT