original_string: 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();
      }
    }
code: 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();
      }
    }
code_tokens: 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 ( ) ; } }
docstring: Check option -t for show all tables.
  
  @param array[] $tableList All existing tables from data schema.
docstring_tokens: Check option - t for show all tables .