original_string: public function show($key)
      {
          $this->authorize('read', Option::class);
          try {
              $option = $this->optionRepo->getOptions($key);
              return $this->respondWithSuccess($option, new OptionTransformer);
          } catch (RepositoryValidationException $e) {
              return $this->respondWithError($e->getMessage());
          }
      }
code: public function show($key)
      {
          $this->authorize('read', Option::class);
          try {
              $option = $this->optionRepo->getOptions($key);
              return $this->respondWithSuccess($option, new OptionTransformer);
          } catch (RepositoryValidationException $e) {
              return $this->respondWithError($e->getMessage());
          }
      }
code_tokens: public function show ( $ key ) { $ this -> authorize ( 'read' , Option :: class ) ; try { $ option = $ this -> optionRepo -> getOptions ( $ key ) ; return $ this -> respondWithSuccess ( $ option , new OptionTransformer ) ; } catch ( RepositoryValidationException $ e ) { return $ this -> respondWithError ( $ e -> getMessage ( ) ) ; } }
docstring: Display all options from selected category.
  
  @param string $key option category key
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Display all options from selected category .