original_string: protected function validate_ranges() {
          foreach ($this->ranges as $key => $range) {
              if (!isset($this->ranges[$key]['start']) || !isset($this->ranges[$key]['end']) ||
                      !isset($this->ranges[$key]['time'])) {
                  throw new \coding_exception($this->get_id() . ' time splitting method "' . $key .
                      '" range is not fully defined. We need a start timestamp and an end timestamp.');
              }
          }
      }
code: protected function validate_ranges() {
          foreach ($this->ranges as $key => $range) {
              if (!isset($this->ranges[$key]['start']) || !isset($this->ranges[$key]['end']) ||
                      !isset($this->ranges[$key]['time'])) {
                  throw new \coding_exception($this->get_id() . ' time splitting method "' . $key .
                      '" range is not fully defined. We need a start timestamp and an end timestamp.');
              }
          }
      }
code_tokens: protected function validate_ranges ( ) { foreach ( $ this -> ranges as $ key => $ range ) { if ( ! isset ( $ this -> ranges [ $ key ] [ 'start' ] ) || ! isset ( $ this -> ranges [ $ key ] [ 'end' ] ) || ! isset ( $ this -> ranges [ $ key ] [ 'time' ] ) ) { throw new \ coding_exception ( $ this -> get_id ( ) . ' time splitting method "' . $ key . '" range is not fully defined. We need a start timestamp and an end timestamp.' ) ; } } }
docstring: Validates the time splitting method ranges.
  
  @throws \coding_exception
  @return void
docstring_tokens: Validates the time splitting method ranges .