rename options method name

This commit is contained in:
O3-Shop 2023-04-11 10:34:33 +02:00
parent 94b0ff3656
commit 42493d9f1e
20 changed files with 20 additions and 20 deletions

View File

@ -83,7 +83,7 @@ class Configuration
$option = $optionInstance->get(); $option = $optionInstance->get();
if ($optionInstance->mustQuote()) { if ($optionInstance->isQuoted()) {
$option = (oxNew(Utils::class))->quote($option); $option = (oxNew(Utils::class))->quote($option);
} }

View File

@ -46,7 +46,7 @@ abstract class AbstractOption implements OptionInterface
abstract public function get(): string; abstract public function get(): string;
public function mustQuote(): bool public function isQuoted(): bool
{ {
return false; return false;
} }

View File

@ -39,7 +39,7 @@ class BaseUrl extends AbstractOption
/** /**
* @return bool * @return bool
*/ */
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -36,7 +36,7 @@ class CacheSuffix extends AbstractOption
return '?v='.date('Ymd'); return '?v='.date('Ymd');
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -49,7 +49,7 @@ class ContentCss extends AbstractOption
); );
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -32,7 +32,7 @@ class ContextMenu extends AbstractOption
return 'link linkchecker image table'; return 'link linkchecker image table';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -34,7 +34,7 @@ class DocumentBaseUrl extends AbstractOption
return Registry::getConfig()->getActiveView()->getViewConfig()->getBaseDir(); return Registry::getConfig()->getActiveView()->getViewConfig()->getBaseDir();
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -36,7 +36,7 @@ class EntityEncoding extends AbstractOption
return 'raw'; return 'raw';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -46,7 +46,7 @@ class FilemanagerUrl extends AbstractOption
); );
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -49,7 +49,7 @@ class Language extends AbstractOption
return $aLang[ $oLang->getLanguageAbbr((int) $oLang->getTplLanguage()) ] ?? "en"; return $aLang[ $oLang->getLanguageAbbr((int) $oLang->getTplLanguage()) ] ?? "en";
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -32,7 +32,7 @@ class MaxHeight extends AbstractOption
return '90%'; return '90%';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -32,7 +32,7 @@ class MaxWidth extends AbstractOption
return '90%'; return '90%';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -32,7 +32,7 @@ class Menubar extends AbstractOption
return 'file edit view insert format tools table help'; return 'file edit view insert format tools table help';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -33,7 +33,7 @@ interface OptionInterface
public function get(): string; public function get(): string;
public function mustQuote(): bool; public function isQuoted(): bool;
public function requireRegistration(): bool; public function requireRegistration(): bool;
} }

View File

@ -47,7 +47,7 @@ class Plugins extends AbstractOption
)); ));
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -47,7 +47,7 @@ class QuickbarsInsertToolbar extends AbstractOption
*/ */
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return $this->get() !== 'false'; return $this->get() !== 'false';
} }

View File

@ -32,7 +32,7 @@ class Resize extends AbstractOption
return 'both'; return 'both';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -38,7 +38,7 @@ class Skin extends AbstractOption
return $this->darkMode ? 'oxide-dark' : 'oxide'; return $this->darkMode ? 'oxide-dark' : 'oxide';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -138,7 +138,7 @@ class Toolbar extends AbstractOption
return '["'.implode('", "', $list).'"]'; return '["'.implode('", "', $list).'"]';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }

View File

@ -32,7 +32,7 @@ class ToolbarMode extends AbstractOption
return 'sliding'; return 'sliding';
} }
public function mustQuote(): bool public function isQuoted(): bool
{ {
return true; return true;
} }