original_string: public function importTables($conn)
      {
          $Folder = new Folder($this->config('schemaPath'));
          $fixtures = $Folder->read(false, false, true)[1];
          try {
              return (bool)$conn->transactional(function ($connection) use ($fixtures) {
                  foreach ($fixtures as $fixture) {
                      $result = $this->_processFixture($fixture, $connection);
                      if (!$result) {
                          $this->error(__d('installer', 'Error importing "{0}".', $fixture));
  
                          return false;
                      }
                  }
  
                  return true;
              });
          } catch (\Exception $ex) {
              $this->error(__d('installer', 'Unable to import database information. Details: {0}', '<p>' . $ex->getMessage() . '</p>'));
  
              return false;
          }
      }
code: public function importTables($conn)
      {
          $Folder = new Folder($this->config('schemaPath'));
          $fixtures = $Folder->read(false, false, true)[1];
          try {
              return (bool)$conn->transactional(function ($connection) use ($fixtures) {
                  foreach ($fixtures as $fixture) {
                      $result = $this->_processFixture($fixture, $connection);
                      if (!$result) {
                          $this->error(__d('installer', 'Error importing "{0}".', $fixture));
  
                          return false;
                      }
                  }
  
                  return true;
              });
          } catch (\Exception $ex) {
              $this->error(__d('installer', 'Unable to import database information. Details: {0}', '<p>' . $ex->getMessage() . '</p>'));
  
              return false;
          }
      }
code_tokens: public function importTables ( $ conn ) { $ Folder = new Folder ( $ this -> config ( 'schemaPath' ) ) ; $ fixtures = $ Folder -> read ( false , false , true ) [ 1 ] ; try { return ( bool ) $ conn -> transactional ( function ( $ connection ) use ( $ fixtures ) { foreach ( $ fixtures as $ fixture ) { $ result = $ this -> _processFixture ( $ fixture , $ connection ) ; if ( ! $ result ) { $ this -> error ( __d ( 'installer' , 'Error importing "{0}".' , $ fixture ) ) ; return false ; } } return true ; } ) ; } catch ( \ Exception $ ex ) { $ this -> error ( __d ( 'installer' , 'Unable to import database information. Details: {0}' , '<p>' . $ ex -> getMessage ( ) . '</p>' ) ) ; return false ; } }
docstring: Imports tables schema and populates them.
  
  @param \Cake\Database\Connection $conn Database connection to use
  @return bool True on success, false otherwise. On failure error messages
  are automatically set
docstring_tokens: Imports tables schema and populates them .