code: protected function createBaseTags(Collection $rules)
      {
          /* @var Collection|Tag[] $baseTags */
          $baseTags = new Collection();
  
          $rules->each(function (Text $cell) use (&$baseTags) {
              $cell->trim();
              $tag = new Tag('td');
  
              if ($cell->match('/^-.*:$/')) {
                  $tag->setAttribute('align', 'right');
              } elseif ($cell->match('/^:.*:$/')) {
                  $tag->setAttribute('align', 'center');
              }
  
              $baseTags->add($tag);
          });
  
          return $baseTags;
      }
docs: @param Collection $rules
  
  @return Collection|\Ciconia\Common\Tag[]