<?php count(Countable|array $value, int $mode = COUNT_NORMAL): int
<?php $chars[] = $this->styles->get('font.chars.' . $char); } $charsCount = count($chars); $linesCount = $this->styles->get('font.lines'); $colorsCount = $this->styles->get('font.colors'); $colors = $this->styles->get('colors');
<?php { $line = ''; $i = 0; $count = count($data); $labelSizes = [];
<?php } foreach ($this->sparkData as $number) { $tickIndex = ceil(($number / $max) * count($this->sparkTicks)) - 1; if ($max === 0 || $tickIndex < 0) $tickIndex = 0; $result .= span($this->sparkTicks[$tickIndex])->color($this->getStyles()['color'] . (($tickIndex == 0) ? 100 : $tickIndex * 100))->renderToString(); }
<?php test('test getCurrentPosition', function (): void { expect(terminal()->cursor()->getCurrentPosition())->toBeArray(); expect(count(terminal()->cursor()->getCurrentPosition()))->toEqual(2); });