original_string: protected function getEnumValuesFromType($type)
      {
          if ( ! preg_match('#^enum\((?<values>.*)\)$#i', $type, $matches)) {
              return false;
          }
  
          $enum = [];
  
          foreach (explode(',', $matches['values']) as $value) {
              $v      = trim( $value, "'" );
              $enum[] = $v;
          }
  
          return $enum;
      }
code: protected function getEnumValuesFromType($type)
      {
          if ( ! preg_match('#^enum\((?<values>.*)\)$#i', $type, $matches)) {
              return false;
          }
  
          $enum = [];
  
          foreach (explode(',', $matches['values']) as $value) {
              $v      = trim( $value, "'" );
              $enum[] = $v;
          }
  
          return $enum;
      }
code_tokens: protected function getEnumValuesFromType ( $ type ) { if ( ! preg_match ( '#^enum\((?<values>.*)\)$#i' , $ type , $ matches ) ) { return false ; } $ enum = [ ] ; foreach ( explode ( ',' , $ matches [ 'values' ] ) as $ value ) { $ v = trim ( $ value , "'" ) ; $ enum [ ] = $ v ; } return $ enum ; }
docstring: Returns enum values for column type string.
  
  @param string $type
  @return array|bool
docstring_tokens: Returns enum values for column type string .