original_string: public function check_indicator_requirements(\core_analytics\local\indicator\base $indicator) {
  
          $providedsampledata = $this->provided_sample_data();
  
          $requiredsampledata = $indicator::required_sample_data();
          if (empty($requiredsampledata)) {
              // The indicator does not need any sample data.
              return true;
          }
          $missingrequired = array_diff($requiredsampledata, $providedsampledata);
  
          if (empty($missingrequired)) {
              return true;
          }
  
          return $missingrequired;
      }
code: public function check_indicator_requirements(\core_analytics\local\indicator\base $indicator) {
  
          $providedsampledata = $this->provided_sample_data();
  
          $requiredsampledata = $indicator::required_sample_data();
          if (empty($requiredsampledata)) {
              // The indicator does not need any sample data.
              return true;
          }
          $missingrequired = array_diff($requiredsampledata, $providedsampledata);
  
          if (empty($missingrequired)) {
              return true;
          }
  
          return $missingrequired;
      }
code_tokens: public function check_indicator_requirements ( \ core_analytics \ local \ indicator \ base $ indicator ) { $ providedsampledata = $ this -> provided_sample_data ( ) ; $ requiredsampledata = $ indicator :: required_sample_data ( ) ; if ( empty ( $ requiredsampledata ) ) { // The indicator does not need any sample data. return true ; } $ missingrequired = array_diff ( $ requiredsampledata , $ providedsampledata ) ; if ( empty ( $ missingrequired ) ) { return true ; } return $ missingrequired ; }
docstring: Checks that this analyser satisfies the provided indicator requirements.
  
  @param \core_analytics\local\indicator\base $indicator
  @return true|string[] True if all good, missing requirements list otherwise
docstring_tokens: Checks that this analyser satisfies the provided indicator requirements .