original_string: public static function fromCheckAndExercise(CheckInterface $check, ExerciseInterface $exercise)
      {
          return new static(
              sprintf(
                  'Check: "%s" cannot process exercise: "%s" with type: "%s"',
                  $check->getName(),
                  $exercise->getName(),
                  $exercise->getType()
              )
          );
      }
code: public static function fromCheckAndExercise(CheckInterface $check, ExerciseInterface $exercise)
      {
          return new static(
              sprintf(
                  'Check: "%s" cannot process exercise: "%s" with type: "%s"',
                  $check->getName(),
                  $exercise->getName(),
                  $exercise->getType()
              )
          );
      }
code_tokens: public static function fromCheckAndExercise ( CheckInterface $ check , ExerciseInterface $ exercise ) { return new static ( sprintf ( 'Check: "%s" cannot process exercise: "%s" with type: "%s"' , $ check -> getName ( ) , $ exercise -> getName ( ) , $ exercise -> getType ( ) ) ) ; }
docstring: Static constructor to create an instance from the check & exercise.
  
  @param CheckInterface $check The check Instance.
  @param ExerciseInterface $exercise The exercise Instance.
  @return static
docstring_tokens: Static constructor to create an instance from the check & exercise .