@@ -96,8 +96,8 @@ |
||
96 | 96 | if ($this->translator === null) { |
97 | 97 | $this->translator = new Translator('en_US'); |
98 | 98 | $this->translator->addLoader('mo', new MoFileLoader()); |
99 | - $this->translator->addResource('mo', __DIR__ . '/../translations/messages.nn_NO.mo', 'nn_NO'); |
|
100 | - $this->translator->addResource('mo', __DIR__ . '/../translations/messages.nb_NO.mo', 'nb_NO'); |
|
99 | + $this->translator->addResource('mo', __DIR__.'/../translations/messages.nn_NO.mo', 'nn_NO'); |
|
100 | + $this->translator->addResource('mo', __DIR__.'/../translations/messages.nb_NO.mo', 'nb_NO'); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | return $this->translator; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $this->constraints[] = new DateConstraint($start, $end, $weight); |
48 | 48 | |
49 | - StableSort::usort($this->constraints, static function (DateConstraint $a, DateConstraint $b): int { |
|
49 | + StableSort::usort($this->constraints, static function(DateConstraint $a, DateConstraint $b): int { |
|
50 | 50 | return $b->getWeight() <=> $a->getWeight(); |
51 | 51 | }); |
52 | 52 |