This commit is contained in:
Laurent Destailleur 2019-08-21 13:00:22 +02:00
parent ae3d232797
commit eb0644c6f4
2 changed files with 16 additions and 16 deletions

View File

@ -32,7 +32,7 @@ class DolibarrApi
/** /**
* @var DoliDb $db Database object * @var DoliDb $db Database object
*/ */
static protected $db; protected static $db;
/** /**
* @var Restler $r Restler object * @var Restler $r Restler object

View File

@ -38,10 +38,10 @@
* handling things like indentation. * handling things like indentation.
*/ */
class lessc { class lessc {
static public $VERSION = "v0.5.0"; public static $VERSION = "v0.5.0";
static public $TRUE = array("keyword", "true"); public static $TRUE = array("keyword", "true");
static public $FALSE = array("keyword", "false"); public static $FALSE = array("keyword", "false");
protected $libFunctions = array(); protected $libFunctions = array();
protected $registeredVars = array(); protected $registeredVars = array();
@ -63,7 +63,7 @@ class lessc {
protected $sourceParser = null; protected $sourceParser = null;
protected $sourceLoc = null; protected $sourceLoc = null;
static protected $nextImportId = 0; // uniquely identify imports protected static $nextImportId = 0; // uniquely identify imports
// attempts to find the path of an import url, returns null for css files // attempts to find the path of an import url, returns null for css files
protected function findImport($url) { protected function findImport($url) {
@ -2223,7 +2223,7 @@ class lessc {
return $less->cachedCompile($in, $force); return $less->cachedCompile($in, $force);
} }
static protected $cssColors = array( protected static $cssColors = array(
'aliceblue' => '240,248,255', 'aliceblue' => '240,248,255',
'antiquewhite' => '250,235,215', 'antiquewhite' => '250,235,215',
'aqua' => '0,255,255', 'aqua' => '0,255,255',
@ -2378,9 +2378,9 @@ class lessc {
// responsible for taking a string of LESS code and converting it into a // responsible for taking a string of LESS code and converting it into a
// syntax tree // syntax tree
class lessc_parser { class lessc_parser {
static protected $nextBlockId = 0; // used to uniquely identify blocks protected static $nextBlockId = 0; // used to uniquely identify blocks
static protected $precedence = array( protected static $precedence = array(
'=<' => 0, '=<' => 0,
'>=' => 0, '>=' => 0,
'=' => 0, '=' => 0,
@ -2394,18 +2394,18 @@ class lessc_parser {
'%' => 2, '%' => 2,
); );
static protected $whitePattern; protected static $whitePattern;
static protected $commentMulti; protected static $commentMulti;
static protected $commentSingle = "//"; protected static $commentSingle = "//";
static protected $commentMultiLeft = "/*"; protected static $commentMultiLeft = "/*";
static protected $commentMultiRight = "*/"; protected static $commentMultiRight = "*/";
// regex string to match any of the operators // regex string to match any of the operators
static protected $operatorString; protected static $operatorString;
// these properties will supress division unless it's inside parenthases // these properties will supress division unless it's inside parenthases
static protected $supressDivisionProps = protected static $supressDivisionProps =
array('/border-radius$/i', '/^font$/i'); array('/border-radius$/i', '/^font$/i');
protected $blockDirectives = array("font-face", "keyframes", "page", "-moz-document", "viewport", "-moz-viewport", "-o-viewport", "-ms-viewport"); protected $blockDirectives = array("font-face", "keyframes", "page", "-moz-document", "viewport", "-moz-viewport", "-o-viewport", "-ms-viewport");
@ -2423,7 +2423,7 @@ class lessc_parser {
protected $inParens = false; protected $inParens = false;
// caches preg escaped literals // caches preg escaped literals
static protected $literalCache = array(); protected static $literalCache = array();
public function __construct($lessc, $sourceName = null) { public function __construct($lessc, $sourceName = null) {
$this->eatWhiteDefault = true; $this->eatWhiteDefault = true;