projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/lessc.inc.php 1 location
|
@@ 1588-1596 (lines=9) @@
|
| 1585 |
|
} |
| 1586 |
|
|
| 1587 |
|
// make something string like into a string |
| 1588 |
|
protected function coerceString($value) { |
| 1589 |
|
switch ($value[0]) { |
| 1590 |
|
case "string": |
| 1591 |
|
return $value; |
| 1592 |
|
case "keyword": |
| 1593 |
|
return array("string", "", array($value[1])); |
| 1594 |
|
} |
| 1595 |
|
return null; |
| 1596 |
|
} |
| 1597 |
|
|
| 1598 |
|
// turn list of length 1 into value type |
| 1599 |
|
protected function flattenList($value) { |
projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/scss.inc.php 1 location
|
@@ 1693-1701 (lines=9) @@
|
| 1690 |
|
return null; |
| 1691 |
|
} |
| 1692 |
|
|
| 1693 |
|
protected function coerceString($value) { |
| 1694 |
|
switch ($value[0]) { |
| 1695 |
|
case "string": |
| 1696 |
|
return $value; |
| 1697 |
|
case "keyword": |
| 1698 |
|
return array("string", "", array($value[1])); |
| 1699 |
|
} |
| 1700 |
|
return null; |
| 1701 |
|
} |
| 1702 |
|
|
| 1703 |
|
public function assertList($value) { |
| 1704 |
|
if ($value[0] != "list") |