original_string: protected function getStatusCodeFromApiProblem(ApiProblem $problem)
      {
          $problemData = $problem->toArray();
          $status = array_key_exists('status', $problemData) ? $problemData['status'] : 0;
  
          if ($status < 100 || $status >= 600) {
              return 500;
          }
  
          return $status;
      }
code: protected function getStatusCodeFromApiProblem(ApiProblem $problem)
      {
          $problemData = $problem->toArray();
          $status = array_key_exists('status', $problemData) ? $problemData['status'] : 0;
  
          if ($status < 100 || $status >= 600) {
              return 500;
          }
  
          return $status;
      }
code_tokens: protected function getStatusCodeFromApiProblem ( ApiProblem $ problem ) { $ problemData = $ problem -> toArray ( ) ; $ status = array_key_exists ( 'status' , $ problemData ) ? $ problemData [ 'status' ] : 0 ; if ( $ status < 100 || $ status >= 600 ) { return 500 ; } return $ status ; }
docstring: Retrieve the HTTP status from an ApiProblem object
  
  Ensures that the status falls within the acceptable range (100 - 599).
  
  @param  ApiProblem $problem
  @return int
docstring_tokens: Retrieve the HTTP status from an ApiProblem object