Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402]

   1  <?php
   2  
   3  /**
   4   * SCSSPHP
   5   *
   6   * @copyright 2012-2020 Leaf Corcoran
   7   *
   8   * @license http://opensource.org/licenses/MIT MIT
   9   *
  10   * @link http://scssphp.github.io/scssphp
  11   */
  12  
  13  namespace ScssPhp\ScssPhp\Formatter;
  14  
  15  use ScssPhp\ScssPhp\Formatter;
  16  
  17  /**
  18   * Compact formatter
  19   *
  20   * @author Leaf Corcoran <leafot@gmail.com>
  21   *
  22   * @deprecated since 1.4.0. Use the Compressed formatter instead.
  23   *
  24   * @internal
  25   */
  26  class Compact extends Formatter
  27  {
  28      /**
  29       * {@inheritdoc}
  30       */
  31      public function __construct()
  32      {
  33          @trigger_error('The Compact formatter is deprecated since 1.4.0. Use the Compressed formatter instead.', E_USER_DEPRECATED);
  34  
  35          $this->indentLevel = 0;
  36          $this->indentChar = '';
  37          $this->break = '';
  38          $this->open = ' {';
  39          $this->close = "}\n\n";
  40          $this->tagSeparator = ',';
  41          $this->assignSeparator = ':';
  42          $this->keepSemicolons = true;
  43      }
  44  
  45      /**
  46       * {@inheritdoc}
  47       */
  48      public function indentStr()
  49      {
  50          return ' ';
  51      }
  52  }