Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StrictUnifiedDiffOutputBuilder.php

StrictUnifiedDiffOutputBuilder::$default

Type: default

File

vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php, line 36

Class

StrictUnifiedDiffOutputBuilder
Strict Unified diff output builder.

Namespace

SebastianBergmann\Diff\Output

Code

private static array $default = [
    'collapseRanges' => true,
    // ranges of length one are rendered with the trailing `,1`
'commonLineThreshold' => 6,
    // number of same lines before ending a new hunk and creating a new one (if needed)
'contextLines' => 3,
    // like `diff:  -u, -U NUM, --unified[=NUM]`, for patch/git apply compatibility best to keep at least @ 3
'fromFile' => null,
    'fromFileDate' => null,
    'toFile' => null,
    'toFileDate' => null,
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal