Lines Matching refs:cols
65 $cols = count($alignments);
68 if (count($rows[0]) !== $cols) {
75 … fn($row) => $this->unescapePipes($this->trimCellEdges($this->padOrTruncate($row, $cols))),
79 $out = $this->buildOutput($headerRow, $bodyRows, $alignments, $cols, $startPos, $endPos);
198 * @param int $cols the target column count derived from the delimiter row
201 protected function padOrTruncate(array $row, int $cols): array argument
204 if ($count < $cols) {
205 return array_pad($row, $cols, []);
207 if ($count > $cols) {
208 return array_slice($row, 0, $cols);
318 * @param int $cols column count derived from the delimiter row
328 int $cols, argument
333 $out[] = ['table_open', [$cols, 1 + count($bodyRows), $startPos], $startPos];