@@ -55,7 +55,7 @@ public function mount(): void
5555 Gate::authorize ('update ' , $ project );
5656 $ this ->form ->setProject ($ project );
5757 $ this ->state_name = $ project ->state ->getValue ();
58- $ this ->posts = $ project ->posts ->map (fn (ProjectPost $ post ) => [
58+ $ this ->posts = $ project ->posts ->map (fn (ProjectPost $ post ) => [
5959 'id ' => $ post ->id ,
6060 'name ' => $ post ->name ,
6161 'bemerkung ' => $ post ->bemerkung ?? '' ,
@@ -174,15 +174,15 @@ public function addEmptyPost(): void
174174 */
175175 public function getTotalIncome (): Money
176176 {
177- return $ this ->posts ->reduce (fn (?Money $ carry , array $ post ) => $ carry ? $ carry ->add ($ post ['einnahmen ' ]) : $ post ['einnahmen ' ], Money::EUR (0 ));
177+ return $ this ->posts ->reduce (fn (?Money $ carry , array $ post ) => $ carry ? $ carry ->add ($ post ['einnahmen ' ]) : $ post ['einnahmen ' ], Money::EUR (0 ));
178178 }
179179
180180 /**
181181 * Get the sum of all expense posts
182182 */
183183 public function getTotalExpenses (): Money
184184 {
185- return $ this ->posts ->reduce (fn (?Money $ carry , array $ post ) => $ carry ? $ carry ->add ($ post ['ausgaben ' ]) : $ post ['ausgaben ' ], Money::EUR (0 ));
185+ return $ this ->posts ->reduce (fn (?Money $ carry , array $ post ) => $ carry ? $ carry ->add ($ post ['ausgaben ' ]) : $ post ['ausgaben ' ], Money::EUR (0 ));
186186 }
187187
188188 public function removeAttachment (int $ index ): void
@@ -210,7 +210,7 @@ protected function getRechtsgrundlagenOptions(): array
210210 {
211211 $ rechtsgrundlagen = config ('stufis.project_legal ' , []);
212212
213- return collect ($ rechtsgrundlagen )->map (fn ($ def , $ key ) => [
213+ return collect ($ rechtsgrundlagen )->map (fn ($ def , $ key ) => [
214214 'key ' => $ key ,
215215 'label ' => $ def ['label ' ] ?? $ key ,
216216 'placeholder ' => $ def ['placeholder ' ] ?? '' ,
0 commit comments