private function printAllTables(array $tableList): void
  {
    if ($this->input->getOption('tables'))
    {
      $tableData = array_chunk($tableList, 4);
      $array     = [];
      foreach ($tableData as $parts)
      {
        $partsArray = [];
        foreach ($parts as $part)
        {
          $partsArray[] = $part['table_name'];
        }
        $array[] = $partsArray;
      }
      $table = new Table($this->output);
      $table->setRows($array);
      $table->render();
    }
  }
private function printAllTables(array $tableList): void
  {
    if ($this->input->getOption('tables'))
    {
      $tableData = array_chunk($tableList, 4);
      $array     = [];
      foreach ($tableData as $parts)
      {
        $partsArray = [];
        foreach ($parts as $part)
        {
          $partsArray[] = $part['table_name'];
        }
        $array[] = $partsArray;
      }
      $table = new Table($this->output);
      $table->setRows($array);
      $table->render();
    }
  }
private function printAllTables ( array $ tableList ) : void { if ( $ this -> input -> getOption ( 'tables' ) ) { $ tableData = array_chunk ( $ tableList , 4 ) ; $ array = [ ] ; foreach ( $ tableData as $ parts ) { $ partsArray = [ ] ; foreach ( $ parts as $ part ) { $ partsArray [ ] = $ part [ 'table_name' ] ; } $ array [ ] = $ partsArray ; } $ table = new Table ( $ this -> output ) ; $ table -> setRows ( $ array ) ; $ table -> render ( ) ; } }
Check option -t for show all tables.

@param array[] $tableList All existing tables from data schema.
Check option - t for show all tables .