original_string: public function display($tables = null, $blacklist = null)
      {
          if (empty($tables)) {
              $connection = ConnectionManager::get('default');
              $schema = $connection->getSchemaCollection();
              $tables = $schema->listTables();
              ksort($tables);
  
              if (!empty($blacklist)) {
                  $tables = array_diff($tables, $blacklist);
              }
          }
  
          $normal = [];
          foreach ($tables as $table => $config) {
              if (is_string($config)) {
                  $config = ['table' => $config];
              }
  
              if (is_int($table)) {
                  $table = $config['table'];
              }
  
              $config += [
                  'action' => 'index',
                  'title' => Inflector::humanize($table),
                  'controller' => Inflector::camelize($table)
              ];
  
              $normal[$table] = $config;
          }
  
          return $this->set('tables', $normal);
      }
code: public function display($tables = null, $blacklist = null)
      {
          if (empty($tables)) {
              $connection = ConnectionManager::get('default');
              $schema = $connection->getSchemaCollection();
              $tables = $schema->listTables();
              ksort($tables);
  
              if (!empty($blacklist)) {
                  $tables = array_diff($tables, $blacklist);
              }
          }
  
          $normal = [];
          foreach ($tables as $table => $config) {
              if (is_string($config)) {
                  $config = ['table' => $config];
              }
  
              if (is_int($table)) {
                  $table = $config['table'];
              }
  
              $config += [
                  'action' => 'index',
                  'title' => Inflector::humanize($table),
                  'controller' => Inflector::camelize($table)
              ];
  
              $normal[$table] = $config;
          }
  
          return $this->set('tables', $normal);
      }
code_tokens: public function display ( $ tables = null , $ blacklist = null ) { if ( empty ( $ tables ) ) { $ connection = ConnectionManager :: get ( 'default' ) ; $ schema = $ connection -> getSchemaCollection ( ) ; $ tables = $ schema -> listTables ( ) ; ksort ( $ tables ) ; if ( ! empty ( $ blacklist ) ) { $ tables = array_diff ( $ tables , $ blacklist ) ; } } $ normal = [ ] ; foreach ( $ tables as $ table => $ config ) { if ( is_string ( $ config ) ) { $ config = [ 'table' => $ config ] ; } if ( is_int ( $ table ) ) { $ table = $ config [ 'table' ] ; } $ config += [ 'action' => 'index' , 'title' => Inflector :: humanize ( $ table ) , 'controller' => Inflector :: camelize ( $ table ) ] ; $ normal [ $ table ] = $ config ; } return $ this -> set ( 'tables' , $ normal ) ; }
docstring: Default cell method.
  
  @param array $tables Tables list.
  @param array $blacklist Blacklisted tables list.
  @return array
docstring_tokens: Default cell method .