original_string: protected function _processFixture($path, Connection $connection)
      {
          if (!is_readable($path)) {
              return false;
          }
  
          require $path;
          $fixtureClass = str_replace('.php', '', basename($path));
          $schema = $this->_prepareSchema($fixtureClass);
          $sql = $schema->createSql($connection);
          $tableCreated = true;
  
          foreach ($sql as $stmt) {
              try {
                  if (!$connection->execute($stmt)) {
                      $tableCreated = false;
                  }
              } catch (\Exception $ex) {
                  $this->error(__d('installer', 'Unable to create table "{0}". Details: {1}', $schema->name(), $ex->getMessage()));
                  $tableCreated = false;
              }
          }
  
          if (!$tableCreated) {
              return false;
          }
  
          if (!$this->_importRecords($fixtureClass, $schema, $connection)) {
              return false;
          }
  
          return true;
      }
code: protected function _processFixture($path, Connection $connection)
      {
          if (!is_readable($path)) {
              return false;
          }
  
          require $path;
          $fixtureClass = str_replace('.php', '', basename($path));
          $schema = $this->_prepareSchema($fixtureClass);
          $sql = $schema->createSql($connection);
          $tableCreated = true;
  
          foreach ($sql as $stmt) {
              try {
                  if (!$connection->execute($stmt)) {
                      $tableCreated = false;
                  }
              } catch (\Exception $ex) {
                  $this->error(__d('installer', 'Unable to create table "{0}". Details: {1}', $schema->name(), $ex->getMessage()));
                  $tableCreated = false;
              }
          }
  
          if (!$tableCreated) {
              return false;
          }
  
          if (!$this->_importRecords($fixtureClass, $schema, $connection)) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function _processFixture ( $ path , Connection $ connection ) { if ( ! is_readable ( $ path ) ) { return false ; } require $ path ; $ fixtureClass = str_replace ( '.php' , '' , basename ( $ path ) ) ; $ schema = $ this -> _prepareSchema ( $ fixtureClass ) ; $ sql = $ schema -> createSql ( $ connection ) ; $ tableCreated = true ; foreach ( $ sql as $ stmt ) { try { if ( ! $ connection -> execute ( $ stmt ) ) { $ tableCreated = false ; } } catch ( \ Exception $ ex ) { $ this -> error ( __d ( 'installer' , 'Unable to create table "{0}". Details: {1}' , $ schema -> name ( ) , $ ex -> getMessage ( ) ) ) ; $ tableCreated = false ; } } if ( ! $ tableCreated ) { return false ; } if ( ! $ this -> _importRecords ( $ fixtureClass , $ schema , $ connection ) ) { return false ; } return true ; }
docstring: Process the given fixture class, creates its schema and imports its records.
  
  @param string $path Full path to schema class file
  @param \Cake\Database\Connection $connection Database connection to use
  @return bool True on success
docstring_tokens: Process the given fixture class creates its schema and imports its records .