original_string: protected function getOptionsFromConfig(Config $config)
      {
          $options = [];
  
          if ($config->has('visibility')) {
              switch (true) {
                  case $config->get('visibility') === AdapterInterface::VISIBILITY_PUBLIC:
                      $options['predefinedAcl'] = static::GCS_VISIBILITY_PUBLIC_READ;
                      break;
                  case $config->get('visibility') === AdapterInterface::VISIBILITY_PRIVATE:
                  default:
                      $options['predefinedAcl'] = static::GCS_VISIBILITY_PROJECT_PRIVATE;
                      break;
              }
          }
  
          return $options;
      }
code: protected function getOptionsFromConfig(Config $config)
      {
          $options = [];
  
          if ($config->has('visibility')) {
              switch (true) {
                  case $config->get('visibility') === AdapterInterface::VISIBILITY_PUBLIC:
                      $options['predefinedAcl'] = static::GCS_VISIBILITY_PUBLIC_READ;
                      break;
                  case $config->get('visibility') === AdapterInterface::VISIBILITY_PRIVATE:
                  default:
                      $options['predefinedAcl'] = static::GCS_VISIBILITY_PROJECT_PRIVATE;
                      break;
              }
          }
  
          return $options;
      }
code_tokens: protected function getOptionsFromConfig ( Config $ config ) { $ options = [ ] ; if ( $ config -> has ( 'visibility' ) ) { switch ( true ) { case $ config -> get ( 'visibility' ) === AdapterInterface :: VISIBILITY_PUBLIC : $ options [ 'predefinedAcl' ] = static :: GCS_VISIBILITY_PUBLIC_READ ; break ; case $ config -> get ( 'visibility' ) === AdapterInterface :: VISIBILITY_PRIVATE : default : $ options [ 'predefinedAcl' ] = static :: GCS_VISIBILITY_PROJECT_PRIVATE ; break ; } } return $ options ; }
docstring: Converts flysystem specific config to options for the underlying API client
  
  @param $config Config
  
  @return array
docstring_tokens: Converts flysystem specific config to options for the underlying API client