@@ -167,8 +167,8 @@ public function remove(): bool
167167 $ this ->zdb ->connection ->rollBack ();
168168 }
169169 Analog::log (
170- 'Unable to delete booking ' .
171- ' ( ' . $ this ->id . ') | ' . $ e ->getMessage (),
170+ 'Unable to delete booking '
171+ . ' ( ' . $ this ->id . ') | ' . $ e ->getMessage (),
172172 Analog::ERROR
173173 );
174174 return false ;
@@ -295,9 +295,9 @@ public function check(array $values): array|bool
295295 $ this ->date = $ d ->format ('Y-m-d ' );
296296 } catch (\Exception $ e ) {
297297 Analog::log (
298- 'Wrong date format. field: booking_date ' .
299- ', value: ' . $ value . ', expected fmt: ' .
300- __ ("Y-m-d " ) . ' | ' . $ e ->getMessage (),
298+ 'Wrong date format. field: booking_date '
299+ . ', value: ' . $ value . ', expected fmt: '
300+ . __ ("Y-m-d " ) . ' | ' . $ e ->getMessage (),
301301 Analog::INFO
302302 );
303303 $ this ->errors [] = sprintf (
@@ -335,8 +335,8 @@ public function check(array $values): array|bool
335335
336336 if (count ($ this ->errors ) > 0 ) {
337337 Analog::log (
338- 'Some errors has been threw attempting to edit/store a booking ' . "\n" .
339- print_r ($ this ->errors , true ),
338+ 'Some errors has been threw attempting to edit/store a booking ' . "\n"
339+ . print_r ($ this ->errors , true ),
340340 Analog::ERROR
341341 );
342342 return $ this ->errors ;
@@ -364,8 +364,8 @@ public function store(): bool
364364 Event::PK => $ this ->event ,
365365 Adherent::PK => $ this ->member ,
366366 'booking_date ' => $ this ->date ,
367- 'is_paid ' => ($ this ->paid ? $ this ->paid :
368- ($ this ->zdb ->isPostgres () ? 'false ' : 0 )),
367+ 'is_paid ' => ($ this ->paid ? $ this ->paid
368+ : ($ this ->zdb ->isPostgres () ? 'false ' : 0 )),
369369 'payment_method ' => $ this ->payment_method ,
370370 'payment_amount ' => $ this ->amount ,
371371 'bank_name ' => $ this ->bank_name ,
@@ -448,8 +448,8 @@ public function store(): bool
448448 ];
449449 } elseif ($ result ['checked ' ] != $ this ->activities [$ result [Activity::PK ]]['checked ' ]) {
450450 $ update [$ result [Activity::PK ]] = [
451- 'checked ' => ($ checked ? $ checked :
452- ($ this ->zdb ->isPostgres () ? 'false ' : 0 ))
451+ 'checked ' => ($ checked ? $ checked
452+ : ($ this ->zdb ->isPostgres () ? 'false ' : 0 ))
453453 ];
454454 } else {
455455 $ void [$ result [Activity::PK ]] = true ;
@@ -460,8 +460,8 @@ public function store(): bool
460460 $ insert [$ aid ] = [
461461 Activity::PK => $ aid ,
462462 self ::PK => $ this ->id ,
463- 'checked ' => ($ checked ? $ checked :
464- ($ this ->zdb ->isPostgres () ? 'false ' : 0 ))
463+ 'checked ' => ($ checked ? $ checked
464+ : ($ this ->zdb ->isPostgres () ? 'false ' : 0 ))
465465 ];
466466 }
467467 }
@@ -538,8 +538,8 @@ public function store(): bool
538538 } catch (\Exception $ e ) {
539539 $ this ->zdb ->connection ->rollBack ();
540540 Analog::log (
541- 'Something went wrong : \'( | ' . $ e ->getMessage () . "\n" .
542- $ e ->getTraceAsString (),
541+ 'Something went wrong : \'( | ' . $ e ->getMessage () . "\n"
542+ . $ e ->getTraceAsString (),
543543 Analog::ERROR
544544 );
545545 throw $ e ;
@@ -803,8 +803,8 @@ public function getActivities(): array
803803 */
804804 public function getRowClass (bool $ public = false ): string
805805 {
806- $ strclass = 'event- ' .
807- ($ this ->isPaid () ? 'paid ' : 'notpaid ' );
806+ $ strclass = 'event- '
807+ . ($ this ->isPaid () ? 'paid ' : 'notpaid ' );
808808 return $ strclass ;
809809 }
810810}
0 commit comments