@@ -92,7 +92,7 @@ |
||
| 92 | 92 | */ |
| 93 | 93 | protected static function _implodeSubIDs(\GMP ...$subids) { |
| 94 | 94 | return implode(".", |
| 95 | - array_map(function ($num) { |
|
| 95 | + array_map(function($num) { |
|
| 96 | 96 | return gmp_strval($num, 10); |
| 97 | 97 | }, $subids)); |
| 98 | 98 | } |
@@ -33,14 +33,14 @@ |
||
| 33 | 33 | * @link http://php.net/manual/en/language.types.float.php |
| 34 | 34 | * @var string |
| 35 | 35 | */ |
| 36 | - const PHP_EXPONENT_DNUM = '/^'. /* @formatter:off */ |
|
| 37 | - '([+\-]?'. // sign |
|
| 38 | - '(?:'. |
|
| 39 | - '\d+'. // LNUM |
|
| 40 | - '|'. |
|
| 41 | - '(?:\d*\.\d+|\d+\.\d*)'. // DNUM |
|
| 42 | - '))[eE]'. |
|
| 43 | - '([+\-]?\d+)'. // exponent |
|
| 36 | + const PHP_EXPONENT_DNUM = '/^' . /* @formatter:off */ |
|
| 37 | + '([+\-]?' . // sign |
|
| 38 | + '(?:' . |
|
| 39 | + '\d+' . // LNUM |
|
| 40 | + '|' . |
|
| 41 | + '(?:\d*\.\d+|\d+\.\d*)' . // DNUM |
|
| 42 | + '))[eE]' . |
|
| 43 | + '([+\-]?\d+)' . // exponent |
|
| 44 | 44 | '$/'; /* @formatter:on */ |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function sortedSet() { |
| 31 | 31 | $obj = clone $this; |
| 32 | 32 | usort($obj->_elements, |
| 33 | - function (Element $a, Element $b) { |
|
| 33 | + function(Element $a, Element $b) { |
|
| 34 | 34 | if ($a->typeClass() != $b->typeClass()) { |
| 35 | 35 | return $a->typeClass() < $b->typeClass() ? -1 : 1; |
| 36 | 36 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function sortedSetOf() { |
| 52 | 52 | $obj = clone $this; |
| 53 | 53 | usort($obj->_elements, |
| 54 | - function (Element $a, Element $b) { |
|
| 54 | + function(Element $a, Element $b) { |
|
| 55 | 55 | $a_der = $a->toDER(); |
| 56 | 56 | $b_der = $b->toDER(); |
| 57 | 57 | return strcmp($a_der, $b_der); |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | public function elements() { |
| 222 | 222 | if (!isset($this->_unspecifiedTypes)) { |
| 223 | 223 | $this->_unspecifiedTypes = array_map( |
| 224 | - function (Element $el) { |
|
| 224 | + function(Element $el) { |
|
| 225 | 225 | return new UnspecifiedType($el); |
| 226 | 226 | }, $this->_elements); |
| 227 | 227 | } |