code()
code() : string
The stable dotted code every finding from this tripwire reports under.
Returns
string —For example "frame.digest_mismatch".
A dependency was patched in place, so the lockfile no longer reproduces the tree.
vendor/ is referenced rather than stored, because composer.lock reproduces it exactly and is
440x smaller than core's compressed bytes alone. That trade is sound while the assumption holds.
When someone patches a dependency by hand, the assumption stops holding and the backup is missing
the only copy of a change the site depends on - and nothing else would ever say so.
An error rather than a warning: unlike most findings this one means something is NOT in the backup, and the repair is to capture the drifted files, which runs without a human.
check(array $observation) : \Drupal\strata\Health\Finding|null
Evaluates the check against one observation.
| array | $observation | Scalars the caller already had in hand. A tripwire reads from this and nothing else. |
A finding when the symptom is present, or NULL when the check is satisfied.