original_string: public function getInputsFromSearchResult($searchResult)
      {
          $input_array = [];
  
          if (!isset($searchResult['hits'])) {
              throw new \Exception('Hits Not Found');
          }
  
          foreach ($searchResult['hits'] as $hit) {
              if (!isset($hit['input'])) {
                  throw new \Exception('Inputs Not Found');
              }
              $input = new Input($hit['input']);
              $input_array[] = $input;
          }
  
          return $input_array;
      }
code: public function getInputsFromSearchResult($searchResult)
      {
          $input_array = [];
  
          if (!isset($searchResult['hits'])) {
              throw new \Exception('Hits Not Found');
          }
  
          foreach ($searchResult['hits'] as $hit) {
              if (!isset($hit['input'])) {
                  throw new \Exception('Inputs Not Found');
              }
              $input = new Input($hit['input']);
              $input_array[] = $input;
          }
  
          return $input_array;
      }
code_tokens: public function getInputsFromSearchResult ( $ searchResult ) { $ input_array = [ ] ; if ( ! isset ( $ searchResult [ 'hits' ] ) ) { throw new \ Exception ( 'Hits Not Found' ) ; } foreach ( $ searchResult [ 'hits' ] as $ hit ) { if ( ! isset ( $ hit [ 'input' ] ) ) { throw new \ Exception ( 'Inputs Not Found' ) ; } $ input = new Input ( $ hit [ 'input' ] ) ; $ input_array [ ] = $ input ; } return $ input_array ; }
docstring: Parses Search Request Result and gets Inputs
  
  @param $searchResult
  
  @return array
  
  @throws \Exception
docstring_tokens: Parses Search Request Result and gets Inputs