@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function getRoman($number = null) |
| 54 | 54 | { |
| 55 | 55 | $this->result = null; |
| 56 | - foreach($this->romanNumerals as $key => $value) |
|
| 56 | + foreach ($this->romanNumerals as $key => $value) |
|
| 57 | 57 | { |
| 58 | 58 | $matches = (int)($number / $value); |
| 59 | 59 | $this->result .= str_repeat($key, $matches); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | public function getNumber($roman = null) |
| 70 | 70 | { |
| 71 | 71 | $this->result = null; |
| 72 | - foreach($this->romanNumerals as $key => $value) |
|
| 72 | + foreach ($this->romanNumerals as $key => $value) |
|
| 73 | 73 | { |
| 74 | 74 | while (strpos($roman, $key) === 0) |
| 75 | 75 | { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | Event::on( |
| 46 | 46 | CraftVariable::class, |
| 47 | 47 | CraftVariable::EVENT_INIT, |
| 48 | - function (Event $event) { |
|
| 48 | + function(Event $event) { |
|
| 49 | 49 | /** @var CraftVariable $variable */ |
| 50 | 50 | $variable = $event->sender; |
| 51 | 51 | $variable->set('roman', RomanVariable::class); |