original_string: public function createTable(): void
      {
          // connect if we are not yet
          $conn = $this->getConnection();
          $driver = $this->getDriver();
  
          if ($conn instanceof Connection) {
              $schema = new Schema();
              $table = $schema->createTable($this->table);
              $table->addColumn($this->idCol, 'string', ['length' => 64]);
              $table->addColumn($this->tokenCol, 'string', ['length' => 44]);
              $table->addColumn($this->expirationCol, 'integer', ['unsigned' => true]);
              $table->setPrimaryKey([$this->idCol]);
  
              foreach ($schema->toSql($conn->getDatabasePlatform()) as $sql) {
                  $conn->exec($sql);
              }
  
              return;
          }
  
          switch ($driver) {
              case 'mysql':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(44) NOT NULL, $this->expirationCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
                  break;
              case 'sqlite':
                  $sql = "CREATE TABLE $this->table ($this->idCol TEXT NOT NULL PRIMARY KEY, $this->tokenCol TEXT NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'pgsql':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'oci':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR2(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR2(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'sqlsrv':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              default:
                  throw new \DomainException(sprintf('Creating the lock table is currently not implemented for PDO driver "%s".', $driver));
          }
  
          $conn->exec($sql);
      }
code: public function createTable(): void
      {
          // connect if we are not yet
          $conn = $this->getConnection();
          $driver = $this->getDriver();
  
          if ($conn instanceof Connection) {
              $schema = new Schema();
              $table = $schema->createTable($this->table);
              $table->addColumn($this->idCol, 'string', ['length' => 64]);
              $table->addColumn($this->tokenCol, 'string', ['length' => 44]);
              $table->addColumn($this->expirationCol, 'integer', ['unsigned' => true]);
              $table->setPrimaryKey([$this->idCol]);
  
              foreach ($schema->toSql($conn->getDatabasePlatform()) as $sql) {
                  $conn->exec($sql);
              }
  
              return;
          }
  
          switch ($driver) {
              case 'mysql':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(44) NOT NULL, $this->expirationCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
                  break;
              case 'sqlite':
                  $sql = "CREATE TABLE $this->table ($this->idCol TEXT NOT NULL PRIMARY KEY, $this->tokenCol TEXT NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'pgsql':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'oci':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR2(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR2(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              case 'sqlsrv':
                  $sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)";
                  break;
              default:
                  throw new \DomainException(sprintf('Creating the lock table is currently not implemented for PDO driver "%s".', $driver));
          }
  
          $conn->exec($sql);
      }
code_tokens: public function createTable ( ) : void { // connect if we are not yet $ conn = $ this -> getConnection ( ) ; $ driver = $ this -> getDriver ( ) ; if ( $ conn instanceof Connection ) { $ schema = new Schema ( ) ; $ table = $ schema -> createTable ( $ this -> table ) ; $ table -> addColumn ( $ this -> idCol , 'string' , [ 'length' => 64 ] ) ; $ table -> addColumn ( $ this -> tokenCol , 'string' , [ 'length' => 44 ] ) ; $ table -> addColumn ( $ this -> expirationCol , 'integer' , [ 'unsigned' => true ] ) ; $ table -> setPrimaryKey ( [ $ this -> idCol ] ) ; foreach ( $ schema -> toSql ( $ conn -> getDatabasePlatform ( ) ) as $ sql ) { $ conn -> exec ( $ sql ) ; } return ; } switch ( $ driver ) { case 'mysql' : $ sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(44) NOT NULL, $this->expirationCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB" ; break ; case 'sqlite' : $ sql = "CREATE TABLE $this->table ($this->idCol TEXT NOT NULL PRIMARY KEY, $this->tokenCol TEXT NOT NULL, $this->expirationCol INTEGER)" ; break ; case 'pgsql' : $ sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)" ; break ; case 'oci' : $ sql = "CREATE TABLE $this->table ($this->idCol VARCHAR2(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR2(64) NOT NULL, $this->expirationCol INTEGER)" ; break ; case 'sqlsrv' : $ sql = "CREATE TABLE $this->table ($this->idCol VARCHAR(64) NOT NULL PRIMARY KEY, $this->tokenCol VARCHAR(64) NOT NULL, $this->expirationCol INTEGER)" ; break ; default : throw new \ DomainException ( sprintf ( 'Creating the lock table is currently not implemented for PDO driver "%s".' , $ driver ) ) ; } $ conn -> exec ( $ sql ) ; }
docstring: Creates the table to store lock keys which can be called once for setup.
  
  @throws \PDOException    When the table already exists
  @throws DBALException    When the table already exists
  @throws \DomainException When an unsupported PDO driver is used
docstring_tokens: Creates the table to store lock keys which can be called once for setup .