Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 798) sorted by relevance

12345678910>>...32

/template/breeze/bower_components/gumby/sass/extensions/modular-scale/lib/
Dmodular-scale.rb30 value <=> other.value
38 value = 4 / 1.0
39 Sass::Script::Number.new(value)
42 value = 3 / 1.0
43 Sass::Script::Number.new(value)
46 value = 8 / 3.0
47 Sass::Script::Number.new(value)
50 value = 5 / 2.0
51 Sass::Script::Number.new(value)
54 value = 2 / 1.0
[all …]
/template/strap/ComboStrap/
H A DDataType.php126 public static function toBoolean($value, $ifNull = null) argument
128 if ($value === null) return $ifNull;
129 return filter_var($value, FILTER_VALIDATE_BOOLEAN);
135 public static function toFloat($value): float argument
137 if (is_float($value)) {
138 return $value;
141 if (!is_numeric($value)) {
142 throw new ExceptionBadArgument("The value ($value) is not a numeric");
145 return floatval($value);
148 public static function toBooleanString(?bool $value): ?string argument
[all …]
H A DPageId.php76 * @param string|null $value
80 public function setValue($value): Metadata argument
82 return $this->setValueWithOrWithoutForce($value);
94 public function setFromStoreValueWithoutException($value): Metadata argument
97 if ($value !== null) {
98 return parent::setFromStoreValueWithoutException($value);
110 return parent::setFromStoreValueWithoutException($value);
122 $value = $metadataFileSystemStore->getFromName(self::getPersistentName());
123 if ($value !== null) {
124 return parent::setFromStoreValueWithoutException($value);
[all …]
H A DConditionalValue.php17 private $value; variable in ComboStrap\\ConditionalValue
36 public function __construct($value) argument
38 $lastIndex = strrpos($value, "-");
41 $this->value = $value;
44 $breakpoint = substr($value, $lastIndex + 1);
47 $this->value = substr($value, 0, $lastIndex);
51 $parts = explode("-", $value);
62 $this->value = $value;
65 $this->value = implode("-", $valueFromParts);
66 …akpoint conditional value format ($value) will be deprecated in the next releases. It should be wr…
[all …]
H A DArrayUtility.php26 foreach ($toPrint as $key => $value) {
27 if (is_array($value)) {
29 self::formatAsHtmlList($value, $content);
32 if (preg_match('/date|created|modified/i', $key) && is_numeric($value)) {
33 $value = date(DATE_ATOM, $value);
35 $stringValue = var_export($value, true);
51 foreach ($array as $key => &$value) {
55 if (is_array($value)) {
56 self::filterArrayByKey($value, $pattern);
61 public static function addIfNotSet(array &$array, $key, $value) argument
[all …]
H A DTagAttributes.php291 foreach ($componentAttributes as $key => $value) {
292 if (is_null($value)) {
380 public static function toQualifiedCssValue($value): string argument
382 return ConditionalLength::createFromString($value)->toCssLength();
415 foreach ($tagAttributes->getStyleDeclarations() as $property => $value) {
416 $newTagAttributes->addStyleDeclarationIfNotSet($property, $value);
439 $value = $this->getValue(self::CLASS_KEY, $default);
440 if ($value !== null) {
441 return $value;
651 foreach ($originalArray as $key => $value) {
[all …]
H A DMetadataSingleArrayStore.php35 foreach ($data as $key => $value) {
37 $this->data[$key] = $value;
53 $value = $this->data[$metadata::getPersistentName()] ?? null;
54 if ($value !== null) {
55 return $value;
58 $value = $this->data[$name] ?? null;
59 if ($value !== null) {
60 $this->data[$metadata::getPersistentName()] = $value;
62 return $value;
95 $value = $this->data[$name] ?? null;
[all …]
/template/strap/ComboStrap/Meta/Api/
H A DMetadataWikiPath.php46 protected WikiPath $value; variable in ComboStrap\\Meta\\Api\\MetadataWikiPath
49 * @param WikiPath|string|null $value
52 public function setValue($value): Metadata argument
54 if ($value === null) {
58 if ($value instanceof WikiPath) {
59 $this->value = $value;
63 if ($value === "" || $value === ":") {
68 $value = WikiPath::toValidAbsolutePath($value);
69 $this->value = WikiPath::createWikiPath($value, $this->getDrive());
106 public function setFromStoreValueWithoutException($value): Metadata argument
[all …]
H A DMetadataText.php23 protected $value; variable in ComboStrap\\Meta\\Api\\MetadataText
37 if ($this->value === null || trim($this->value) === "") {
40 return $this->value;
45 return $this->value !== null;
50 * @param null|string $value
54 public function setValue($value): Metadata argument
56 if ($value !== null && !is_string($value)) {
59 $value = trim($value);
60 if ($value === "") {
70 if (!in_array($value, $possibleValues)) {
[all …]
H A DMetadataBoolean.php25 protected $value; variable in ComboStrap\\Meta\\Api\\MetadataBoolean
39 if ($this->value === null) {
42 return $this->value;
47 * @param null|boolean $value
50 public function setValue($value): Metadata argument
52 if ($value === null) {
53 $this->value = null;
56 if (!is_bool($value)) {
57 throw new ExceptionRuntime("The value is not a boolean: " . var_export($value, true));
59 $this->value = $value;
[all …]
H A DMetadataMultiple.php34 * @param null|array $value
38 public function setValue($value): Metadata argument
40 if ($value === null) {
41 $this->array = $value;
44 if (!is_array($value)) {
45 … throw new ExceptionCompile("The value is not an array. Value: " . var_export($value, true));
47 $this->array = $value;
119 public function setFromStoreValue($value): Metadata argument
121 $values = $this->toArrayOrNull($value);
127 foreach ($values as $value) {
[all …]
H A DMetadataInteger.php18 protected $value; variable in ComboStrap\\Meta\\Api\\MetadataInteger
29 return $this->value;
34 return $this->value !== null;
41 public function setValue($value): Metadata argument
43 $this->value = DataType::toInteger($value);
50 public function setFromStoreValue($value): Metadata argument
52 return $this->setValue($value);
55 public function setFromStoreValueWithoutException($value): Metadata argument
57 if ($value === null || $value === "") {
58 $this->value = null;
[all …]
H A DMetadataDateTime.php38 $value = $this->getValue();
43 return $this->toPersistentDateTimeUtility($value);
51 * @param DateTime|null $value
54 public function setValue($value): Metadata argument
56 if ($value === null) {
60 if (!($value instanceof DateTime)) {
61 … throw new ExceptionRuntime("The value is not a date time. Value: " . var_export($value, true));
63 $this->dateTimeValue = $value;
70 public function setFromStoreValue($value): Metadata argument
72 return $this->setValue($this->fromPersistentDateTimeUtility($value));
[all …]
/template/strap/vendor/symfony/yaml/
H A DInline.php53 * @param string|null $value A YAML string
61 public static function parse(string $value = null, int $flags = 0, array &$references = []) argument
65 $value = trim($value);
67 if ('' === $value) {
78 $tag = self::parseTag($value, $i, $flags);
79 switch ($value[$i]) {
81 $result = self::parseSequence($value, $flags, $i, $references);
85 $result = self::parseMapping($value, $flags, $i, $references);
89 $result = self::parseScalar($value, $flags, null, $i, true, $references);
93 if (preg_replace('/\s*#.*$/A', '', substr($value, $i))) {
[all …]
H A DDumper.php66 foreach ($input as $key => $value) {
71 …LINE_LITERAL_BLOCK & $flags && \is_string($value) && false !== strpos($value, "\n") && false === s…
74 … $blockIndentationIndicator = (' ' === substr($value, 0, 1)) ? (string) $this->indentation : '';
76 if (isset($value[-2]) && "\n" === $value[-2] && "\n" === $value[-1]) {
78 } elseif ("\n" === $value[-1]) {
86 foreach (explode("\n", $value) as $row) {
97 if ($value instanceof TaggedValue) {
98 … sprintf('%s%s !%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags).':' : '-', $value->getTag());
100 …_BLOCK & $flags && \is_string($value->getValue()) && false !== strpos($value->getValue(), "\n") &&…
103 …$blockIndentationIndicator = (' ' === substr($value->getValue(), 0, 1)) ? (string) $this->indentat…
[all …]
H A DEscaper.php51 * @param string $value A PHP value
53 public static function requiresDoubleQuoting(string $value): bool argument
55 return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
61 * @param string $value A PHP value
63 public static function escapeWithDoubleQuotes(string $value): string argument
65 return sprintf('"%s"', str_replace(self::ESCAPEES, self::ESCAPED, $value));
71 * @param string $value A PHP value
73 public static function requiresSingleQuoting(string $value): bool argument
77 …if (\in_array(strtolower($value), ['null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off…
83 …reg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` \p{Zs}]/xu', $value);
[all …]
H A DParser.php74 * @param string $value A YAML string
81 public function parse(string $value, int $flags = 0) argument
83 if (false === preg_match('//u', $value)) {
97 $data = $this->doParse($value, $flags);
116 private function doParse(string $value, int $flags) argument
120 $value = $this->cleanup($value);
121 $this->lines = explode("\n", $value);
270 $value = $values['value'];
272 $value = $this->getNextEmbedBlock();
274 … $parsed = $this->parseBlock($this->getRealCurrentLineNb() + 1, $value, $flags);
[all …]
H A DUnescaper.php34 * @param string $value A single quoted string
36 public function unescapeSingleQuotedString(string $value): string argument
38 return str_replace('\'\'', '\'', $value);
44 * @param string $value A double quoted string
46 public function unescapeDoubleQuotedString(string $value): string argument
53 return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value);
59 * @param string $value An escaped character
61 private function unescapeCharacter(string $value): string argument
63 switch ($value[1]) {
105 return self::utf8chr(hexdec(substr($value, 2, 2)));
[all …]
/template/strap/vendor/antlr/antlr4-php-runtime/src/Comparison/
H A DHasher.php24 foreach ($values as $value) {
25 $elementHash = self::hashValue($value);
32 public static function hashValue($value) : int argument
34 if ($value === null) {
38 if (\is_int($value)) {
39 return $value;
42 if ($value instanceof Hashable) {
43 return $value->hashCode();
46 if (\is_object($value)) {
47 return \spl_object_id($value);
[all …]
/template/strap/vendor/dragonmantank/cron-expression/src/Cron/
H A DDayOfMonthField.php59 public function isSatisfiedBy(DateTime $date, $value) argument
62 if ($value == '?') {
69 if ($value == 'L') {
74 if (strpos($value, 'W')) {
76 $targetDay = substr($value, 0, strpos($value, 'W'));
85 return $this->isSatisfied($date->format('d'), $value);
106 * @param string $value
109 public function validate($value) argument
112 if ($value === '?' || $value === '*' || $value === 'L') {
117 if ((bool) preg_match('/^\d{1,2}$/', $value) && ($value >= 1 && $value <= 31)) {
[all …]
H A DAbstractField.php14 * @param string $value Value to test
18 public function isSatisfied($dateValue, $value) argument
20 if ($this->isIncrementsOfRanges($value)) {
21 return $this->isInIncrementsOfRanges($dateValue, $value);
22 } elseif ($this->isRange($value)) {
23 return $this->isInRange($dateValue, $value);
26 return $value == '*' || $dateValue == $value;
32 * @param string $value Value to test
36 public function isRange($value) argument
38 return strpos($value, '-') !== false;
[all …]
H A DDayOfWeekField.php24 public function isSatisfiedBy(DateTime $date, $value) argument
26 if ($value == '?') {
31 $value = $this->convertLiterals($value);
38 if (strpos($value, 'L')) {
39 $weekday = str_replace('7', '0', substr($value, 0, strpos($value, 'L')));
53 if (strpos($value, '#')) {
54 list($weekday, $nth) = explode('#', $value);
90 if (strpos($value, '-')) {
91 $parts = explode('-', $value);
97 $value = implode('-', $parts);
[all …]
/template/breeze/bower_components/gumby/sass/extensions/sassy-math/lib/
Dsassy-math.rb8 base = base.value.to_f
9 powerNum = powerNum.value.to_f
10 powerDen = powerDen.value.to_f
15 base = base.value.to_f
16 exponent = exponent.value.to_f
21 number = number.value.to_f
26 number = number.value.to_f
27 root = root.value.to_f
33 result = Math.log(num.value)
37 result = Math.log10(num.value)
[all …]
/template/strap/ComboStrap/TagAttribute/
H A DBoldness.php27 $value = $tagAttributes->getValueAndRemove(self::BOLDNESS_ATTRIBUTE);
33 $value = $booleanAttribute;
37 if (!empty($value)) {
38 if (in_array($value, ["bolder", "lighter"])) {
39 $tagAttributes->addClassName("fw-$value");
41 $value = Boldness::toNumericValue($value);
42 $tagAttributes->addStyleDeclarationIfNotSet("font-weight", $value);
49 private static function toNumericValue($value) argument
51 if (is_numeric($value)) {
52 return $value;
[all …]
/template/strap/vendor/antlr/antlr4-php-runtime/src/Utils/
H A DSet.php38 public function contains($value) : bool argument
40 if (!$value instanceof Hashable) {
44 $hash = $this->equivalence->hash($value);
51 if ($this->equivalence->equivalent($value, $entry)) {
59 public function getOrAdd(Hashable $value) : Hashable argument
61 $hash = $this->equivalence->hash($value);
68 if ($this->equivalence->equivalent($value, $entry)) {
73 $this->table[$hash][] = $value;
77 return $value;
80 public function get(Hashable $value) : ?Hashable argument
[all …]

12345678910>>...32