src/mako/cli/output/helpers/Table.php
protected function isValidInput(array $columnNames, array $rows): bool
	{
		$columns = count($columnNames);

		if(!empty($rows))
		{
			foreach($rows as $row)
			{
				if(count($row) !== $columns)
				{
					return false;
				}
			}
		}

		return true;
	}
protected function isValidInput(array $columnNames, array $rows): bool
	{
		$columns = count($columnNames);

		if(!empty($rows))
		{
			foreach($rows as $row)
			{
				if(count($row) !== $columns)
				{
					return false;
				}
			}
		}

		return true;
	}
protected function isValidInput ( array $ columnNames , array $ rows ) : bool { $ columns = count ( $ columnNames ) ; if ( ! empty ( $ rows ) ) { foreach ( $ rows as $ row ) { if ( count ( $ row ) !== $ columns ) { return false ; } } } return true ; }
Checks if the number of cells in each row matches the number of columns.

@param  array $columnNames Array of column names
@param  array $rows        Array of rows
@return bool
Checks if the number of cells in each row matches the number of columns .