kylekatarnls / business-time

Carbon mixin to handle business days and opening hours
MIT License
296 stars 14 forks source link

Fix laravel config #30

Closed kylekatarnls closed 4 years ago

kylekatarnls commented 4 years ago

config/carbon.php can now be:

Either:

<?php return [
    'opening-hours' => [
        'monday' => [
            '09:00-12:30',
            '14:00-18:30',
        ],
        'tuesday' => [
            '09:00-12:30',
            '14:00-18:30',
        ],
    ],
    'holidaysAreClosed' => true,
    'holidays' => [
        'region' => 'us',
        'with' => [
            'boss-birthday' => '07-07',
        ],
    ],
];

or:

<?php return [
    'monday' => [
        '09:00-12:30',
        '14:00-18:30',
    ],
    'tuesday' => [
        '09:00-12:30',
        '14:00-18:30',
    ],
    'holidaysAreClosed' => true,
    'holidays' => [
        'region' => 'us',
        'with' => [
            'boss-birthday' => '07-07',
        ],
    ],
];
codecov[bot] commented 4 years ago

Codecov Report

Merging #30 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##              master       #30   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       228       230    +2     
===========================================
  Files             16        16           
  Lines            508       516    +8     
===========================================
+ Hits             508       516    +8     
Impacted Files Coverage Δ Complexity Δ
src/BusinessTime/Laravel/ServiceProvider.php 100.00% <100.00%> (ø) 10.00 <6.00> (+2.00)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 98b331d...2c36d18. Read the comment docs.