Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

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