@@ -280,35 +280,35 @@ public static function dateTimeYMD($year, $month = null, $day = null, $hour = nu
280
280
281
281
$ map = ["year " => $ year ];
282
282
283
- if ($ month !== null ) {
283
+ if (isset ( $ variables [ " month " ]) ) {
284
284
$ map ["month " ] = $ variables ["month " ];
285
285
}
286
286
287
- if ($ day !== null ) {
287
+ if (isset ( $ variables [ " day " ]) ) {
288
288
$ map ["day " ] = $ variables ["day " ];
289
289
}
290
290
291
- if ($ hour !== null ) {
291
+ if (isset ( $ variables [ " hour " ]) ) {
292
292
$ map ["hour " ] = $ variables ["hour " ];
293
293
}
294
294
295
- if ($ minute !== null ) {
295
+ if (isset ( $ variables [ " minute " ]) ) {
296
296
$ map ["minute " ] = $ variables ["minute " ];
297
297
}
298
298
299
- if ($ second !== null ) {
299
+ if (isset ( $ variables [ " second " ]) ) {
300
300
$ map ["second " ] = $ variables ["second " ];
301
301
}
302
302
303
- if ($ millisecond !== null ) {
303
+ if (isset ( $ variables [ " millisecond " ]) ) {
304
304
$ map ["millisecond " ] = $ variables ["millisecond " ];
305
305
}
306
306
307
- if ($ microsecond !== null ) {
307
+ if (isset ( $ variables [ " microsecond " ]) ) {
308
308
$ map ["microsecond " ] = $ variables ["microsecond " ];
309
309
}
310
310
311
- if ($ nanosecond !== null ) {
311
+ if (isset ( $ variables [ " nanosecond " ]) ) {
312
312
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
313
313
}
314
314
@@ -359,35 +359,35 @@ public static function datetimeYWD($year, $week = null, $dayOfWeek = null, $hour
359
359
360
360
$ map = ["year " => $ year ];
361
361
362
- if ($ week !== null ) {
362
+ if (isset ( $ variables [ " week " ]) ) {
363
363
$ map ["week " ] = $ variables ["week " ];
364
364
}
365
365
366
- if ($ dayOfWeek !== null ) {
366
+ if (isset ( $ variables [ " dayOfWeek " ]) ) {
367
367
$ map ["dayOfWeek " ] = $ variables ["dayOfWeek " ];
368
368
}
369
369
370
- if ($ hour !== null ) {
370
+ if (isset ( $ variables [ " hour " ]) ) {
371
371
$ map ["hour " ] = $ variables ["hour " ];
372
372
}
373
373
374
- if ($ minute !== null ) {
374
+ if (isset ( $ variables [ " minute " ]) ) {
375
375
$ map ["minute " ] = $ variables ["minute " ];
376
376
}
377
377
378
- if ($ second !== null ) {
378
+ if (isset ( $ variables [ " second " ]) ) {
379
379
$ map ["second " ] = $ variables ["second " ];
380
380
}
381
381
382
- if ($ millisecond !== null ) {
382
+ if (isset ( $ variables [ " millisecond " ]) ) {
383
383
$ map ["millisecond " ] = $ variables ["millisecond " ];
384
384
}
385
385
386
- if ($ microsecond !== null ) {
386
+ if (isset ( $ variables [ " microsecond " ]) ) {
387
387
$ map ["microsecond " ] = $ variables ["microsecond " ];
388
388
}
389
389
390
- if ($ nanosecond !== null ) {
390
+ if (isset ( $ variables [ " nanosecond " ]) ) {
391
391
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
392
392
}
393
393
@@ -437,35 +437,35 @@ public static function datetimeYQD($year, $quarter = null, $dayOfQuarter = null,
437
437
438
438
$ map = ["year " => $ year ];
439
439
440
- if ($ quarter !== null ) {
440
+ if (isset ( $ variables [ " quarter " ]) ) {
441
441
$ map ["quarter " ] = $ variables ["quarter " ];
442
442
}
443
443
444
- if ($ dayOfQuarter !== null ) {
444
+ if (isset ( $ variables [ " dayOfQuarter " ]) ) {
445
445
$ map ["dayOfQuarter " ] = $ variables ["dayOfQuarter " ];
446
446
}
447
447
448
- if ($ hour !== null ) {
448
+ if (isset ( $ variables [ " hour " ]) ) {
449
449
$ map ["hour " ] = $ variables ["hour " ];
450
450
}
451
451
452
- if ($ minute !== null ) {
452
+ if (isset ( $ variables [ " minute " ]) ) {
453
453
$ map ["minute " ] = $ variables ["minute " ];
454
454
}
455
455
456
- if ($ second !== null ) {
456
+ if (isset ( $ variables [ " second " ]) ) {
457
457
$ map ["second " ] = $ variables ["second " ];
458
458
}
459
459
460
- if ($ millisecond !== null ) {
460
+ if (isset ( $ variables [ " millisecond " ]) ) {
461
461
$ map ["millisecond " ] = $ variables ["millisecond " ];
462
462
}
463
463
464
- if ($ microsecond !== null ) {
464
+ if (isset ( $ variables [ " microsecond " ]) ) {
465
465
$ map ["microsecond " ] = $ variables ["microsecond " ];
466
466
}
467
467
468
- if ($ nanosecond !== null ) {
468
+ if (isset ( $ variables [ " nanosecond " ]) ) {
469
469
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
470
470
}
471
471
@@ -513,31 +513,31 @@ public static function datetimeYD($year, $ordinalDay = null, $hour = null, $minu
513
513
514
514
$ map = ["year " => $ year ];
515
515
516
- if ($ ordinalDay !== null ) {
516
+ if (isset ( $ variables [ " ordinalDay " ]) ) {
517
517
$ map ["ordinalDay " ] = $ variables ["ordinalDay " ];
518
518
}
519
519
520
- if ($ hour !== null ) {
520
+ if (isset ( $ variables [ " hour " ]) ) {
521
521
$ map ["hour " ] = $ variables ["hour " ];
522
522
}
523
523
524
- if ($ minute !== null ) {
524
+ if (isset ( $ variables [ " minute " ]) ) {
525
525
$ map ["minute " ] = $ variables ["minute " ];
526
526
}
527
527
528
- if ($ second !== null ) {
528
+ if (isset ( $ variables [ " second " ]) ) {
529
529
$ map ["second " ] = $ variables ["second " ];
530
530
}
531
531
532
- if ($ millisecond !== null ) {
532
+ if (isset ( $ variables [ " millisecond " ]) ) {
533
533
$ map ["millisecond " ] = $ variables ["millisecond " ];
534
534
}
535
535
536
- if ($ microsecond !== null ) {
536
+ if (isset ( $ variables [ " microsecond " ]) ) {
537
537
$ map ["microsecond " ] = $ variables ["microsecond " ];
538
538
}
539
539
540
- if ($ nanosecond !== null ) {
540
+ if (isset ( $ variables [ " nanosecond " ]) ) {
541
541
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
542
542
}
543
543
@@ -618,35 +618,35 @@ public static function localDatetimeYMD($year, $month = null, $day = null, $hour
618
618
619
619
$ map = ["year " => $ year ];
620
620
621
- if ($ month !== null ) {
621
+ if (isset ( $ variables [ " month " ]) ) {
622
622
$ map ["month " ] = $ variables ["month " ];
623
623
}
624
624
625
- if ($ day !== null ) {
625
+ if (isset ( $ variables [ " day " ]) ) {
626
626
$ map ["day " ] = $ variables ["day " ];
627
627
}
628
628
629
- if ($ hour !== null ) {
629
+ if (isset ( $ variables [ " hour " ]) ) {
630
630
$ map ["hour " ] = $ variables ["hour " ];
631
631
}
632
632
633
- if ($ minute !== null ) {
633
+ if (isset ( $ variables [ " minute " ]) ) {
634
634
$ map ["minute " ] = $ variables ["minute " ];
635
635
}
636
636
637
- if ($ second !== null ) {
637
+ if (isset ( $ variables [ " second " ]) ) {
638
638
$ map ["second " ] = $ variables ["second " ];
639
639
}
640
640
641
- if ($ millisecond !== null ) {
641
+ if (isset ( $ variables [ " millisecond " ]) ) {
642
642
$ map ["millisecond " ] = $ variables ["millisecond " ];
643
643
}
644
644
645
- if ($ microsecond !== null ) {
645
+ if (isset ( $ variables [ " microsecond " ]) ) {
646
646
$ map ["microsecond " ] = $ variables ["microsecond " ];
647
647
}
648
648
649
- if ($ nanosecond !== null ) {
649
+ if (isset ( $ variables [ " nanosecond " ]) ) {
650
650
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
651
651
}
652
652
@@ -688,35 +688,35 @@ public static function localDatetimeYWD($year, $week = null, $dayOfWeek = null,
688
688
689
689
$ map = ["year " => $ year ];
690
690
691
- if ($ week !== null ) {
691
+ if (isset ( $ variables [ " week " ]) ) {
692
692
$ map ["week " ] = $ variables ["week " ];
693
693
}
694
694
695
- if ($ dayOfWeek !== null ) {
695
+ if (isset ( $ variables [ " dayOfWeek " ]) ) {
696
696
$ map ["dayOfWeek " ] = $ variables ["dayOfWeek " ];
697
697
}
698
698
699
- if ($ hour !== null ) {
699
+ if (isset ( $ variables [ " hour " ]) ) {
700
700
$ map ["hour " ] = $ variables ["hour " ];
701
701
}
702
702
703
- if ($ minute !== null ) {
703
+ if (isset ( $ variables [ " minute " ]) ) {
704
704
$ map ["minute " ] = $ variables ["minute " ];
705
705
}
706
706
707
- if ($ second !== null ) {
707
+ if (isset ( $ variables [ " second " ]) ) {
708
708
$ map ["second " ] = $ variables ["second " ];
709
709
}
710
710
711
- if ($ millisecond !== null ) {
711
+ if (isset ( $ variables [ " millisecond " ]) ) {
712
712
$ map ["millisecond " ] = $ variables ["millisecond " ];
713
713
}
714
714
715
- if ($ microsecond !== null ) {
715
+ if (isset ( $ variables [ " microsecond " ]) ) {
716
716
$ map ["microsecond " ] = $ variables ["microsecond " ];
717
717
}
718
718
719
- if ($ nanosecond !== null ) {
719
+ if (isset ( $ variables [ " nanosecond " ]) ) {
720
720
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
721
721
}
722
722
@@ -757,35 +757,35 @@ public static function localDatetimeYQD($year, $quarter = null, $dayOfQuarter =
757
757
758
758
$ map = ["year " => $ year ];
759
759
760
- if ($ quarter !== null ) {
760
+ if (isset ( $ variables [ " quarter " ]) ) {
761
761
$ map ["quarter " ] = $ variables ["quarter " ];
762
762
}
763
763
764
- if ($ dayOfQuarter !== null ) {
764
+ if (isset ( $ variables [ " dayOfQuarter " ]) ) {
765
765
$ map ["dayOfQuarter " ] = $ variables ["dayOfQuarter " ];
766
766
}
767
767
768
- if ($ hour !== null ) {
768
+ if (isset ( $ variables [ " hour " ]) ) {
769
769
$ map ["hour " ] = $ variables ["hour " ];
770
770
}
771
771
772
- if ($ minute !== null ) {
772
+ if (isset ( $ variables [ " minute " ]) ) {
773
773
$ map ["minute " ] = $ variables ["minute " ];
774
774
}
775
775
776
- if ($ second !== null ) {
776
+ if (isset ( $ variables [ " second " ]) ) {
777
777
$ map ["second " ] = $ variables ["second " ];
778
778
}
779
779
780
- if ($ millisecond !== null ) {
780
+ if (isset ( $ variables [ " millisecond " ]) ) {
781
781
$ map ["millisecond " ] = $ variables ["millisecond " ];
782
782
}
783
783
784
- if ($ microsecond !== null ) {
784
+ if (isset ( $ variables [ " microsecond " ]) ) {
785
785
$ map ["microsecond " ] = $ variables ["microsecond " ];
786
786
}
787
787
788
- if ($ nanosecond !== null ) {
788
+ if (isset ( $ variables [ " nanosecond " ]) ) {
789
789
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
790
790
}
791
791
@@ -824,31 +824,31 @@ public static function localDatetimeYD($year, $ordinalDay = null, $hour = null,
824
824
825
825
$ map = ["year " => $ year ];
826
826
827
- if ($ ordinalDay !== null ) {
827
+ if (isset ( $ variables [ " ordinalDay " ]) ) {
828
828
$ map ["ordinalDay " ] = $ variables ["ordinalDay " ];
829
829
}
830
830
831
- if ($ hour !== null ) {
831
+ if (isset ( $ variables [ " hour " ]) ) {
832
832
$ map ["hour " ] = $ variables ["hour " ];
833
833
}
834
834
835
- if ($ minute !== null ) {
835
+ if (isset ( $ variables [ " minute " ]) ) {
836
836
$ map ["minute " ] = $ variables ["minute " ];
837
837
}
838
838
839
- if ($ second !== null ) {
839
+ if (isset ( $ variables [ " second " ]) ) {
840
840
$ map ["second " ] = $ variables ["second " ];
841
841
}
842
842
843
- if ($ millisecond !== null ) {
843
+ if (isset ( $ variables [ " millisecond " ]) ) {
844
844
$ map ["millisecond " ] = $ variables ["millisecond " ];
845
845
}
846
846
847
- if ($ microsecond !== null ) {
847
+ if (isset ( $ variables [ " microsecond " ]) ) {
848
848
$ map ["microsecond " ] = $ variables ["microsecond " ];
849
849
}
850
850
851
- if ($ nanosecond !== null ) {
851
+ if (isset ( $ variables [ " nanosecond " ]) ) {
852
852
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
853
853
}
854
854
@@ -918,23 +918,23 @@ public static function localTime($hour, $minute = null, $second = null, $millise
918
918
919
919
$ map = ["hour " => $ hour ];
920
920
921
- if ($ minute !== null ) {
921
+ if (isset ( $ variables [ " minute " ]) ) {
922
922
$ map ["minute " ] = $ variables ["minute " ];
923
923
}
924
924
925
- if ($ second !== null ) {
925
+ if (isset ( $ variables [ " second " ]) ) {
926
926
$ map ["second " ] = $ variables ["second " ];
927
927
}
928
928
929
- if ($ millisecond !== null ) {
929
+ if (isset ( $ variables [ " millisecond " ]) ) {
930
930
$ map ["millisecond " ] = $ variables ["millisecond " ];
931
931
}
932
932
933
- if ($ microsecond !== null ) {
933
+ if (isset ( $ variables [ " microsecond " ]) ) {
934
934
$ map ["microsecond " ] = $ variables ["microsecond " ];
935
935
}
936
936
937
- if ($ nanosecond !== null ) {
937
+ if (isset ( $ variables [ " nanosecond " ]) ) {
938
938
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
939
939
}
940
940
@@ -1004,23 +1004,23 @@ public static function timeHMS($hour, $minute = null, $second = null, $milliseco
1004
1004
1005
1005
$ map = ["hour " => $ hour ];
1006
1006
1007
- if ($ minute !== null ) {
1007
+ if (isset ( $ variables [ " minute " ]) ) {
1008
1008
$ map ["minute " ] = $ variables ["minute " ];
1009
1009
}
1010
1010
1011
- if ($ second !== null ) {
1011
+ if (isset ( $ variables [ " second " ]) ) {
1012
1012
$ map ["second " ] = $ variables ["second " ];
1013
1013
}
1014
1014
1015
- if ($ millisecond !== null ) {
1015
+ if (isset ( $ variables [ " millisecond " ]) ) {
1016
1016
$ map ["millisecond " ] = $ variables ["millisecond " ];
1017
1017
}
1018
1018
1019
- if ($ microsecond !== null ) {
1019
+ if (isset ( $ variables [ " microsecond " ]) ) {
1020
1020
$ map ["microsecond " ] = $ variables ["microsecond " ];
1021
1021
}
1022
1022
1023
- if ($ nanosecond !== null ) {
1023
+ if (isset ( $ variables [ " nanosecond " ]) ) {
1024
1024
$ map ["nanosecond " ] = $ variables ["nanosecond " ];
1025
1025
}
1026
1026
0 commit comments