You are here

protected static function ModifiedFiles::modifiedFilesCheck in Automatic Updates 7

Check if the site contains any modified code.

Return value

array An array of translatable strings if any checks fail.

1 call to ModifiedFiles::modifiedFilesCheck()
ModifiedFiles::run in ReadinessCheckers/ModifiedFiles.php
Run check.

File

ReadinessCheckers/ModifiedFiles.php, line 22

Class

ModifiedFiles
Modified code checker.

Code

protected static function modifiedFilesCheck() {
  $messages = [];
  $filtered_modified_files = new IgnoredPathsIteratorFilter(ModifiedFilesService::getModifiedFiles(static::getInfos()));
  foreach ($filtered_modified_files as $file) {
    $messages[] = t('The hash for @file does not match its original. Updates that include that file will fail and require manual intervention.', [
      '@file' => $file,
    ]);
  }
  return $messages;
}