original_string: protected function createTable($schema)
      {
          /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
          $rs = ServiceManager::handleRequest(
              $this->service->getName(),
              Verbs::POST,
              '_schema',
              [],
              [],
              ResourcesWrapper::wrapResources($schema)
          );
  
          if (in_array($rs->getStatusCode(), [HttpStatusCodes::HTTP_OK, HttpStatusCodes::HTTP_CREATED])) {
              return true;
          }
  
          $content = $rs->getContent();
          Log::error(
              'Failed to create table for importing CSV data: ' .
              (is_array($content) ? print_r($content, true) : $content)
          );
          throw new InternalServerErrorException('Failed to create table for importing CSV data. See log for details.');
      }
code: protected function createTable($schema)
      {
          /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
          $rs = ServiceManager::handleRequest(
              $this->service->getName(),
              Verbs::POST,
              '_schema',
              [],
              [],
              ResourcesWrapper::wrapResources($schema)
          );
  
          if (in_array($rs->getStatusCode(), [HttpStatusCodes::HTTP_OK, HttpStatusCodes::HTTP_CREATED])) {
              return true;
          }
  
          $content = $rs->getContent();
          Log::error(
              'Failed to create table for importing CSV data: ' .
              (is_array($content) ? print_r($content, true) : $content)
          );
          throw new InternalServerErrorException('Failed to create table for importing CSV data. See log for details.');
      }
code_tokens: protected function createTable ( $ schema ) { /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */ $ rs = ServiceManager :: handleRequest ( $ this -> service -> getName ( ) , Verbs :: POST , '_schema' , [ ] , [ ] , ResourcesWrapper :: wrapResources ( $ schema ) ) ; if ( in_array ( $ rs -> getStatusCode ( ) , [ HttpStatusCodes :: HTTP_OK , HttpStatusCodes :: HTTP_CREATED ] ) ) { return true ; } $ content = $ rs -> getContent ( ) ; Log :: error ( 'Failed to create table for importing CSV data: ' . ( is_array ( $ content ) ? print_r ( $ content , true ) : $ content ) ) ; throw new InternalServerErrorException ( 'Failed to create table for importing CSV data. See log for details.' ) ; }
docstring: Creates import table
  
  @param $schema
  
  @return bool
  @throws \DreamFactory\Core\Exceptions\InternalServerErrorException
docstring_tokens: Creates import table