original_string: public function getById($id)
      {
          $inputResult = $this->getRequest()->request(
              'GET',
              $this->getRequestUrl(sprintf('inputs/%s', $id))
          );
  
          if (isset($inputResult['input'])) {
              $input = new Input($inputResult['input']);
          } else {
              throw new \Exception('Input Not Found');
          }
  
          return $input;
      }
code: public function getById($id)
      {
          $inputResult = $this->getRequest()->request(
              'GET',
              $this->getRequestUrl(sprintf('inputs/%s', $id))
          );
  
          if (isset($inputResult['input'])) {
              $input = new Input($inputResult['input']);
          } else {
              throw new \Exception('Input Not Found');
          }
  
          return $input;
      }
code_tokens: public function getById ( $ id ) { $ inputResult = $ this -> getRequest ( ) -> request ( 'GET' , $ this -> getRequestUrl ( sprintf ( 'inputs/%s' , $ id ) ) ) ; if ( isset ( $ inputResult [ 'input' ] ) ) { $ input = new Input ( $ inputResult [ 'input' ] ) ; } else { throw new \ Exception ( 'Input Not Found' ) ; } return $ input ; }
docstring: Gets Input By Id
  
  @param $id
  
  @return Input
  
  @throws \Exception
docstring_tokens: Gets Input By Id