Andrew Wallo 1 year ago
parent
commit
0f482c449b
3 changed files with 137 additions and 108 deletions
  1. 30
    1
      app/Services/ReportService.php
  2. 91
    91
      composer.lock
  3. 16
    16
      package-lock.json

+ 30
- 1
app/Services/ReportService.php View File

11
 use App\Models\Accounting\Account;
11
 use App\Models\Accounting\Account;
12
 use App\Support\Column;
12
 use App\Support\Column;
13
 use App\Utilities\Currency\CurrencyAccessor;
13
 use App\Utilities\Currency\CurrencyAccessor;
14
+use App\ValueObjects\Money;
15
+use Illuminate\Support\Carbon;
14
 
16
 
15
 class ReportService
17
 class ReportService
16
 {
18
 {
112
         return $balances;
114
         return $balances;
113
     }
115
     }
114
 
116
 
117
+    public function calculateRetainedEarnings(string $startDate): Money
118
+    {
119
+        $modifiedStartDate = Carbon::parse($this->accountService->getEarliestTransactionDate())->startOfYear()->toDateTimeString();
120
+        $endDate = Carbon::parse($startDate)->subYear()->endOfYear()->toDateTimeString();
121
+
122
+        $revenueAccounts = $this->accountService->getAccountBalances($modifiedStartDate, $endDate)->where('category', AccountCategory::Revenue)->get();
123
+
124
+        $expenseAccounts = $this->accountService->getAccountBalances($modifiedStartDate, $endDate)->where('category', AccountCategory::Expense)->get();
125
+
126
+        $revenueTotal = 0;
127
+        $expenseTotal = 0;
128
+
129
+        foreach ($revenueAccounts as $account) {
130
+            $revenueBalances = $this->calculateAccountBalances($account, AccountCategory::Revenue);
131
+            $revenueTotal += $revenueBalances['net_movement'];
132
+        }
133
+
134
+        foreach ($expenseAccounts as $account) {
135
+            $expenseBalances = $this->calculateAccountBalances($account, AccountCategory::Expense);
136
+            $expenseTotal += $expenseBalances['net_movement'];
137
+        }
138
+
139
+        $retainedEarnings = $revenueTotal - $expenseTotal;
140
+
141
+        return new Money($retainedEarnings, CurrencyAccessor::getDefaultCurrency());
142
+    }
143
+
115
     public function buildAccountTransactionsReport(string $startDate, string $endDate, ?array $columns = null, ?string $accountId = 'all'): ReportDTO
144
     public function buildAccountTransactionsReport(string $startDate, string $endDate, ?array $columns = null, ?string $accountId = 'all'): ReportDTO
116
     {
145
     {
117
         $columns ??= [];
146
         $columns ??= [];
241
             }
270
             }
242
 
271
 
243
             if ($category === AccountCategory::Equity) {
272
             if ($category === AccountCategory::Equity) {
244
-                $retainedEarningsAmount = $this->accountService->getRetainedEarnings($startDate)->getAmount();
273
+                $retainedEarningsAmount = $this->calculateRetainedEarnings($startDate)->getAmount();
245
                 $isCredit = $retainedEarningsAmount >= 0;
274
                 $isCredit = $retainedEarningsAmount >= 0;
246
 
275
 
247
                 $categorySummaryBalances[$isCredit ? 'credit_balance' : 'debit_balance'] += abs($retainedEarningsAmount);
276
                 $categorySummaryBalances[$isCredit ? 'credit_balance' : 'debit_balance'] += abs($retainedEarningsAmount);

+ 91
- 91
composer.lock View File

497
         },
497
         },
498
         {
498
         {
499
             "name": "aws/aws-sdk-php",
499
             "name": "aws/aws-sdk-php",
500
-            "version": "3.320.2",
500
+            "version": "3.320.7",
501
             "source": {
501
             "source": {
502
                 "type": "git",
502
                 "type": "git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
504
-                "reference": "dbae075b861316237d63418715f8bf4bfdd9d33d"
504
+                "reference": "702b9955160d2dacdf2cdf4d4476fcf95eae1aaf"
505
             },
505
             },
506
             "dist": {
506
             "dist": {
507
                 "type": "zip",
507
                 "type": "zip",
508
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/dbae075b861316237d63418715f8bf4bfdd9d33d",
509
-                "reference": "dbae075b861316237d63418715f8bf4bfdd9d33d",
508
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/702b9955160d2dacdf2cdf4d4476fcf95eae1aaf",
509
+                "reference": "702b9955160d2dacdf2cdf4d4476fcf95eae1aaf",
510
                 "shasum": ""
510
                 "shasum": ""
511
             },
511
             },
512
             "require": {
512
             "require": {
589
             "support": {
589
             "support": {
590
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
590
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
591
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
591
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
592
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.320.2"
592
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.320.7"
593
             },
593
             },
594
-            "time": "2024-08-16T18:06:17+00:00"
594
+            "time": "2024-08-23T18:13:50+00:00"
595
         },
595
         },
596
         {
596
         {
597
             "name": "aws/aws-sdk-php-laravel",
597
             "name": "aws/aws-sdk-php-laravel",
1738
         },
1738
         },
1739
         {
1739
         {
1740
             "name": "filament/actions",
1740
             "name": "filament/actions",
1741
-            "version": "v3.2.102",
1741
+            "version": "v3.2.107",
1742
             "source": {
1742
             "source": {
1743
                 "type": "git",
1743
                 "type": "git",
1744
                 "url": "https://github.com/filamentphp/actions.git",
1744
                 "url": "https://github.com/filamentphp/actions.git",
1745
-                "reference": "1ce746a4a75975f1844c175201f1f03443c48c95"
1745
+                "reference": "de5ce76f20ee21af92b951dec2a5c533ecacbc79"
1746
             },
1746
             },
1747
             "dist": {
1747
             "dist": {
1748
                 "type": "zip",
1748
                 "type": "zip",
1749
-                "url": "https://api.github.com/repos/filamentphp/actions/zipball/1ce746a4a75975f1844c175201f1f03443c48c95",
1750
-                "reference": "1ce746a4a75975f1844c175201f1f03443c48c95",
1749
+                "url": "https://api.github.com/repos/filamentphp/actions/zipball/de5ce76f20ee21af92b951dec2a5c533ecacbc79",
1750
+                "reference": "de5ce76f20ee21af92b951dec2a5c533ecacbc79",
1751
                 "shasum": ""
1751
                 "shasum": ""
1752
             },
1752
             },
1753
             "require": {
1753
             "require": {
1787
                 "issues": "https://github.com/filamentphp/filament/issues",
1787
                 "issues": "https://github.com/filamentphp/filament/issues",
1788
                 "source": "https://github.com/filamentphp/filament"
1788
                 "source": "https://github.com/filamentphp/filament"
1789
             },
1789
             },
1790
-            "time": "2024-08-14T16:52:38+00:00"
1790
+            "time": "2024-08-22T12:07:53+00:00"
1791
         },
1791
         },
1792
         {
1792
         {
1793
             "name": "filament/filament",
1793
             "name": "filament/filament",
1794
-            "version": "v3.2.102",
1794
+            "version": "v3.2.107",
1795
             "source": {
1795
             "source": {
1796
                 "type": "git",
1796
                 "type": "git",
1797
                 "url": "https://github.com/filamentphp/panels.git",
1797
                 "url": "https://github.com/filamentphp/panels.git",
1798
-                "reference": "99c703952af053e1ef22a4dd556eba589a574d87"
1798
+                "reference": "2675472f2bdd4e765a1f3e533231bda7750a2881"
1799
             },
1799
             },
1800
             "dist": {
1800
             "dist": {
1801
                 "type": "zip",
1801
                 "type": "zip",
1802
-                "url": "https://api.github.com/repos/filamentphp/panels/zipball/99c703952af053e1ef22a4dd556eba589a574d87",
1803
-                "reference": "99c703952af053e1ef22a4dd556eba589a574d87",
1802
+                "url": "https://api.github.com/repos/filamentphp/panels/zipball/2675472f2bdd4e765a1f3e533231bda7750a2881",
1803
+                "reference": "2675472f2bdd4e765a1f3e533231bda7750a2881",
1804
                 "shasum": ""
1804
                 "shasum": ""
1805
             },
1805
             },
1806
             "require": {
1806
             "require": {
1852
                 "issues": "https://github.com/filamentphp/filament/issues",
1852
                 "issues": "https://github.com/filamentphp/filament/issues",
1853
                 "source": "https://github.com/filamentphp/filament"
1853
                 "source": "https://github.com/filamentphp/filament"
1854
             },
1854
             },
1855
-            "time": "2024-08-14T16:52:48+00:00"
1855
+            "time": "2024-08-20T08:32:50+00:00"
1856
         },
1856
         },
1857
         {
1857
         {
1858
             "name": "filament/forms",
1858
             "name": "filament/forms",
1859
-            "version": "v3.2.102",
1859
+            "version": "v3.2.107",
1860
             "source": {
1860
             "source": {
1861
                 "type": "git",
1861
                 "type": "git",
1862
                 "url": "https://github.com/filamentphp/forms.git",
1862
                 "url": "https://github.com/filamentphp/forms.git",
1863
-                "reference": "32ef8b049ac3c4577407cdc10e576082863f7e47"
1863
+                "reference": "0f80913deb90bfe9e1850ab35e80a34194cfb652"
1864
             },
1864
             },
1865
             "dist": {
1865
             "dist": {
1866
                 "type": "zip",
1866
                 "type": "zip",
1867
-                "url": "https://api.github.com/repos/filamentphp/forms/zipball/32ef8b049ac3c4577407cdc10e576082863f7e47",
1868
-                "reference": "32ef8b049ac3c4577407cdc10e576082863f7e47",
1867
+                "url": "https://api.github.com/repos/filamentphp/forms/zipball/0f80913deb90bfe9e1850ab35e80a34194cfb652",
1868
+                "reference": "0f80913deb90bfe9e1850ab35e80a34194cfb652",
1869
                 "shasum": ""
1869
                 "shasum": ""
1870
             },
1870
             },
1871
             "require": {
1871
             "require": {
1908
                 "issues": "https://github.com/filamentphp/filament/issues",
1908
                 "issues": "https://github.com/filamentphp/filament/issues",
1909
                 "source": "https://github.com/filamentphp/filament"
1909
                 "source": "https://github.com/filamentphp/filament"
1910
             },
1910
             },
1911
-            "time": "2024-08-15T19:37:09+00:00"
1911
+            "time": "2024-08-22T12:07:43+00:00"
1912
         },
1912
         },
1913
         {
1913
         {
1914
             "name": "filament/infolists",
1914
             "name": "filament/infolists",
1915
-            "version": "v3.2.102",
1915
+            "version": "v3.2.107",
1916
             "source": {
1916
             "source": {
1917
                 "type": "git",
1917
                 "type": "git",
1918
                 "url": "https://github.com/filamentphp/infolists.git",
1918
                 "url": "https://github.com/filamentphp/infolists.git",
1963
         },
1963
         },
1964
         {
1964
         {
1965
             "name": "filament/notifications",
1965
             "name": "filament/notifications",
1966
-            "version": "v3.2.102",
1966
+            "version": "v3.2.107",
1967
             "source": {
1967
             "source": {
1968
                 "type": "git",
1968
                 "type": "git",
1969
                 "url": "https://github.com/filamentphp/notifications.git",
1969
                 "url": "https://github.com/filamentphp/notifications.git",
2015
         },
2015
         },
2016
         {
2016
         {
2017
             "name": "filament/support",
2017
             "name": "filament/support",
2018
-            "version": "v3.2.102",
2018
+            "version": "v3.2.107",
2019
             "source": {
2019
             "source": {
2020
                 "type": "git",
2020
                 "type": "git",
2021
                 "url": "https://github.com/filamentphp/support.git",
2021
                 "url": "https://github.com/filamentphp/support.git",
2022
-                "reference": "7dc30bc972b5c29572bd285bfb7c3f24e909522a"
2022
+                "reference": "f00b84d43d157c85837108a7eeaceabbaf6044ab"
2023
             },
2023
             },
2024
             "dist": {
2024
             "dist": {
2025
                 "type": "zip",
2025
                 "type": "zip",
2026
-                "url": "https://api.github.com/repos/filamentphp/support/zipball/7dc30bc972b5c29572bd285bfb7c3f24e909522a",
2027
-                "reference": "7dc30bc972b5c29572bd285bfb7c3f24e909522a",
2026
+                "url": "https://api.github.com/repos/filamentphp/support/zipball/f00b84d43d157c85837108a7eeaceabbaf6044ab",
2027
+                "reference": "f00b84d43d157c85837108a7eeaceabbaf6044ab",
2028
                 "shasum": ""
2028
                 "shasum": ""
2029
             },
2029
             },
2030
             "require": {
2030
             "require": {
2070
                 "issues": "https://github.com/filamentphp/filament/issues",
2070
                 "issues": "https://github.com/filamentphp/filament/issues",
2071
                 "source": "https://github.com/filamentphp/filament"
2071
                 "source": "https://github.com/filamentphp/filament"
2072
             },
2072
             },
2073
-            "time": "2024-08-13T12:36:11+00:00"
2073
+            "time": "2024-08-22T12:08:05+00:00"
2074
         },
2074
         },
2075
         {
2075
         {
2076
             "name": "filament/tables",
2076
             "name": "filament/tables",
2077
-            "version": "v3.2.102",
2077
+            "version": "v3.2.107",
2078
             "source": {
2078
             "source": {
2079
                 "type": "git",
2079
                 "type": "git",
2080
                 "url": "https://github.com/filamentphp/tables.git",
2080
                 "url": "https://github.com/filamentphp/tables.git",
2081
-                "reference": "072592eba6d29d5f82e2cacfaf6ec7b4309d66da"
2081
+                "reference": "5de49ef865e8788bb29d58723b88977b593a7b02"
2082
             },
2082
             },
2083
             "dist": {
2083
             "dist": {
2084
                 "type": "zip",
2084
                 "type": "zip",
2085
-                "url": "https://api.github.com/repos/filamentphp/tables/zipball/072592eba6d29d5f82e2cacfaf6ec7b4309d66da",
2086
-                "reference": "072592eba6d29d5f82e2cacfaf6ec7b4309d66da",
2085
+                "url": "https://api.github.com/repos/filamentphp/tables/zipball/5de49ef865e8788bb29d58723b88977b593a7b02",
2086
+                "reference": "5de49ef865e8788bb29d58723b88977b593a7b02",
2087
                 "shasum": ""
2087
                 "shasum": ""
2088
             },
2088
             },
2089
             "require": {
2089
             "require": {
2122
                 "issues": "https://github.com/filamentphp/filament/issues",
2122
                 "issues": "https://github.com/filamentphp/filament/issues",
2123
                 "source": "https://github.com/filamentphp/filament"
2123
                 "source": "https://github.com/filamentphp/filament"
2124
             },
2124
             },
2125
-            "time": "2024-08-12T16:38:51+00:00"
2125
+            "time": "2024-08-22T12:08:13+00:00"
2126
         },
2126
         },
2127
         {
2127
         {
2128
             "name": "filament/widgets",
2128
             "name": "filament/widgets",
2129
-            "version": "v3.2.102",
2129
+            "version": "v3.2.107",
2130
             "source": {
2130
             "source": {
2131
                 "type": "git",
2131
                 "type": "git",
2132
                 "url": "https://github.com/filamentphp/widgets.git",
2132
                 "url": "https://github.com/filamentphp/widgets.git",
2981
         },
2981
         },
2982
         {
2982
         {
2983
             "name": "laravel/framework",
2983
             "name": "laravel/framework",
2984
-            "version": "v11.20.0",
2984
+            "version": "v11.21.0",
2985
             "source": {
2985
             "source": {
2986
                 "type": "git",
2986
                 "type": "git",
2987
                 "url": "https://github.com/laravel/framework.git",
2987
                 "url": "https://github.com/laravel/framework.git",
2988
-                "reference": "3cd7593dd9b67002fc416b46616f4d4d1da3e571"
2988
+                "reference": "9d9d36708d56665b12185493f684abce38ad2d30"
2989
             },
2989
             },
2990
             "dist": {
2990
             "dist": {
2991
                 "type": "zip",
2991
                 "type": "zip",
2992
-                "url": "https://api.github.com/repos/laravel/framework/zipball/3cd7593dd9b67002fc416b46616f4d4d1da3e571",
2993
-                "reference": "3cd7593dd9b67002fc416b46616f4d4d1da3e571",
2992
+                "url": "https://api.github.com/repos/laravel/framework/zipball/9d9d36708d56665b12185493f684abce38ad2d30",
2993
+                "reference": "9d9d36708d56665b12185493f684abce38ad2d30",
2994
                 "shasum": ""
2994
                 "shasum": ""
2995
             },
2995
             },
2996
             "require": {
2996
             "require": {
3183
                 "issues": "https://github.com/laravel/framework/issues",
3183
                 "issues": "https://github.com/laravel/framework/issues",
3184
                 "source": "https://github.com/laravel/framework"
3184
                 "source": "https://github.com/laravel/framework"
3185
             },
3185
             },
3186
-            "time": "2024-08-06T14:39:21+00:00"
3186
+            "time": "2024-08-20T15:00:52+00:00"
3187
         },
3187
         },
3188
         {
3188
         {
3189
             "name": "laravel/prompts",
3189
             "name": "laravel/prompts",
3190
-            "version": "v0.1.24",
3190
+            "version": "v0.1.25",
3191
             "source": {
3191
             "source": {
3192
                 "type": "git",
3192
                 "type": "git",
3193
                 "url": "https://github.com/laravel/prompts.git",
3193
                 "url": "https://github.com/laravel/prompts.git",
3194
-                "reference": "409b0b4305273472f3754826e68f4edbd0150149"
3194
+                "reference": "7b4029a84c37cb2725fc7f011586e2997040bc95"
3195
             },
3195
             },
3196
             "dist": {
3196
             "dist": {
3197
                 "type": "zip",
3197
                 "type": "zip",
3198
-                "url": "https://api.github.com/repos/laravel/prompts/zipball/409b0b4305273472f3754826e68f4edbd0150149",
3199
-                "reference": "409b0b4305273472f3754826e68f4edbd0150149",
3198
+                "url": "https://api.github.com/repos/laravel/prompts/zipball/7b4029a84c37cb2725fc7f011586e2997040bc95",
3199
+                "reference": "7b4029a84c37cb2725fc7f011586e2997040bc95",
3200
                 "shasum": ""
3200
                 "shasum": ""
3201
             },
3201
             },
3202
             "require": {
3202
             "require": {
3239
             "description": "Add beautiful and user-friendly forms to your command-line applications.",
3239
             "description": "Add beautiful and user-friendly forms to your command-line applications.",
3240
             "support": {
3240
             "support": {
3241
                 "issues": "https://github.com/laravel/prompts/issues",
3241
                 "issues": "https://github.com/laravel/prompts/issues",
3242
-                "source": "https://github.com/laravel/prompts/tree/v0.1.24"
3242
+                "source": "https://github.com/laravel/prompts/tree/v0.1.25"
3243
             },
3243
             },
3244
-            "time": "2024-06-17T13:58:22+00:00"
3244
+            "time": "2024-08-12T22:06:33+00:00"
3245
         },
3245
         },
3246
         {
3246
         {
3247
             "name": "laravel/sanctum",
3247
             "name": "laravel/sanctum",
4222
         },
4222
         },
4223
         {
4223
         {
4224
             "name": "livewire/livewire",
4224
             "name": "livewire/livewire",
4225
-            "version": "v3.5.4",
4225
+            "version": "v3.5.6",
4226
             "source": {
4226
             "source": {
4227
                 "type": "git",
4227
                 "type": "git",
4228
                 "url": "https://github.com/livewire/livewire.git",
4228
                 "url": "https://github.com/livewire/livewire.git",
4229
-                "reference": "b158c6386a892efc6c5e4682e682829baac1f933"
4229
+                "reference": "597a2808d8d3001cc3ed5ce89a6ebab00f83b80f"
4230
             },
4230
             },
4231
             "dist": {
4231
             "dist": {
4232
                 "type": "zip",
4232
                 "type": "zip",
4233
-                "url": "https://api.github.com/repos/livewire/livewire/zipball/b158c6386a892efc6c5e4682e682829baac1f933",
4234
-                "reference": "b158c6386a892efc6c5e4682e682829baac1f933",
4233
+                "url": "https://api.github.com/repos/livewire/livewire/zipball/597a2808d8d3001cc3ed5ce89a6ebab00f83b80f",
4234
+                "reference": "597a2808d8d3001cc3ed5ce89a6ebab00f83b80f",
4235
                 "shasum": ""
4235
                 "shasum": ""
4236
             },
4236
             },
4237
             "require": {
4237
             "require": {
4239
                 "illuminate/routing": "^10.0|^11.0",
4239
                 "illuminate/routing": "^10.0|^11.0",
4240
                 "illuminate/support": "^10.0|^11.0",
4240
                 "illuminate/support": "^10.0|^11.0",
4241
                 "illuminate/validation": "^10.0|^11.0",
4241
                 "illuminate/validation": "^10.0|^11.0",
4242
+                "laravel/prompts": "^0.1.24",
4242
                 "league/mime-type-detection": "^1.9",
4243
                 "league/mime-type-detection": "^1.9",
4243
                 "php": "^8.1",
4244
                 "php": "^8.1",
4244
                 "symfony/console": "^6.0|^7.0",
4245
                 "symfony/console": "^6.0|^7.0",
4247
             "require-dev": {
4248
             "require-dev": {
4248
                 "calebporzio/sushi": "^2.1",
4249
                 "calebporzio/sushi": "^2.1",
4249
                 "laravel/framework": "^10.15.0|^11.0",
4250
                 "laravel/framework": "^10.15.0|^11.0",
4250
-                "laravel/prompts": "^0.1.6",
4251
                 "mockery/mockery": "^1.3.1",
4251
                 "mockery/mockery": "^1.3.1",
4252
                 "orchestra/testbench": "^8.21.0|^9.0",
4252
                 "orchestra/testbench": "^8.21.0|^9.0",
4253
                 "orchestra/testbench-dusk": "^8.24|^9.1",
4253
                 "orchestra/testbench-dusk": "^8.24|^9.1",
4286
             "description": "A front-end framework for Laravel.",
4286
             "description": "A front-end framework for Laravel.",
4287
             "support": {
4287
             "support": {
4288
                 "issues": "https://github.com/livewire/livewire/issues",
4288
                 "issues": "https://github.com/livewire/livewire/issues",
4289
-                "source": "https://github.com/livewire/livewire/tree/v3.5.4"
4289
+                "source": "https://github.com/livewire/livewire/tree/v3.5.6"
4290
             },
4290
             },
4291
             "funding": [
4291
             "funding": [
4292
                 {
4292
                 {
4294
                     "type": "github"
4294
                     "type": "github"
4295
                 }
4295
                 }
4296
             ],
4296
             ],
4297
-            "time": "2024-07-15T18:27:32+00:00"
4297
+            "time": "2024-08-19T11:52:18+00:00"
4298
         },
4298
         },
4299
         {
4299
         {
4300
             "name": "masterminds/html5",
4300
             "name": "masterminds/html5",
4655
         },
4655
         },
4656
         {
4656
         {
4657
             "name": "nesbot/carbon",
4657
             "name": "nesbot/carbon",
4658
-            "version": "3.7.0",
4658
+            "version": "3.8.0",
4659
             "source": {
4659
             "source": {
4660
                 "type": "git",
4660
                 "type": "git",
4661
                 "url": "https://github.com/briannesbitt/Carbon.git",
4661
                 "url": "https://github.com/briannesbitt/Carbon.git",
4662
-                "reference": "cb4374784c87d0a0294e8513a52eb63c0aff3139"
4662
+                "reference": "bbd3eef89af8ba66a3aa7952b5439168fbcc529f"
4663
             },
4663
             },
4664
             "dist": {
4664
             "dist": {
4665
                 "type": "zip",
4665
                 "type": "zip",
4666
-                "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/cb4374784c87d0a0294e8513a52eb63c0aff3139",
4667
-                "reference": "cb4374784c87d0a0294e8513a52eb63c0aff3139",
4666
+                "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bbd3eef89af8ba66a3aa7952b5439168fbcc529f",
4667
+                "reference": "bbd3eef89af8ba66a3aa7952b5439168fbcc529f",
4668
                 "shasum": ""
4668
                 "shasum": ""
4669
             },
4669
             },
4670
             "require": {
4670
             "require": {
4757
                     "type": "tidelift"
4757
                     "type": "tidelift"
4758
                 }
4758
                 }
4759
             ],
4759
             ],
4760
-            "time": "2024-07-16T22:29:20+00:00"
4760
+            "time": "2024-08-19T06:22:39+00:00"
4761
         },
4761
         },
4762
         {
4762
         {
4763
             "name": "nette/schema",
4763
             "name": "nette/schema",
5810
         },
5810
         },
5811
         {
5811
         {
5812
             "name": "psr/log",
5812
             "name": "psr/log",
5813
-            "version": "3.0.0",
5813
+            "version": "3.0.1",
5814
             "source": {
5814
             "source": {
5815
                 "type": "git",
5815
                 "type": "git",
5816
                 "url": "https://github.com/php-fig/log.git",
5816
                 "url": "https://github.com/php-fig/log.git",
5817
-                "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001"
5817
+                "reference": "79dff0b268932c640297f5208d6298f71855c03e"
5818
             },
5818
             },
5819
             "dist": {
5819
             "dist": {
5820
                 "type": "zip",
5820
                 "type": "zip",
5821
-                "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001",
5822
-                "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001",
5821
+                "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e",
5822
+                "reference": "79dff0b268932c640297f5208d6298f71855c03e",
5823
                 "shasum": ""
5823
                 "shasum": ""
5824
             },
5824
             },
5825
             "require": {
5825
             "require": {
5854
                 "psr-3"
5854
                 "psr-3"
5855
             ],
5855
             ],
5856
             "support": {
5856
             "support": {
5857
-                "source": "https://github.com/php-fig/log/tree/3.0.0"
5857
+                "source": "https://github.com/php-fig/log/tree/3.0.1"
5858
             },
5858
             },
5859
-            "time": "2021-07-14T16:46:02+00:00"
5859
+            "time": "2024-08-21T13:31:24+00:00"
5860
         },
5860
         },
5861
         {
5861
         {
5862
             "name": "psr/simple-cache",
5862
             "name": "psr/simple-cache",
10103
         },
10103
         },
10104
         {
10104
         {
10105
             "name": "phpstan/phpstan",
10105
             "name": "phpstan/phpstan",
10106
-            "version": "1.11.10",
10106
+            "version": "1.11.11",
10107
             "source": {
10107
             "source": {
10108
                 "type": "git",
10108
                 "type": "git",
10109
                 "url": "https://github.com/phpstan/phpstan.git",
10109
                 "url": "https://github.com/phpstan/phpstan.git",
10110
-                "reference": "640410b32995914bde3eed26fa89552f9c2c082f"
10110
+                "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3"
10111
             },
10111
             },
10112
             "dist": {
10112
             "dist": {
10113
                 "type": "zip",
10113
                 "type": "zip",
10114
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/640410b32995914bde3eed26fa89552f9c2c082f",
10115
-                "reference": "640410b32995914bde3eed26fa89552f9c2c082f",
10114
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3",
10115
+                "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3",
10116
                 "shasum": ""
10116
                 "shasum": ""
10117
             },
10117
             },
10118
             "require": {
10118
             "require": {
10157
                     "type": "github"
10157
                     "type": "github"
10158
                 }
10158
                 }
10159
             ],
10159
             ],
10160
-            "time": "2024-08-08T09:02:50+00:00"
10160
+            "time": "2024-08-19T14:37:29+00:00"
10161
         },
10161
         },
10162
         {
10162
         {
10163
             "name": "phpunit/php-code-coverage",
10163
             "name": "phpunit/php-code-coverage",
10164
-            "version": "10.1.15",
10164
+            "version": "10.1.16",
10165
             "source": {
10165
             "source": {
10166
                 "type": "git",
10166
                 "type": "git",
10167
                 "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
10167
                 "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
10168
-                "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae"
10168
+                "reference": "7e308268858ed6baedc8704a304727d20bc07c77"
10169
             },
10169
             },
10170
             "dist": {
10170
             "dist": {
10171
                 "type": "zip",
10171
                 "type": "zip",
10172
-                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae",
10173
-                "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae",
10172
+                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77",
10173
+                "reference": "7e308268858ed6baedc8704a304727d20bc07c77",
10174
                 "shasum": ""
10174
                 "shasum": ""
10175
             },
10175
             },
10176
             "require": {
10176
             "require": {
10177
                 "ext-dom": "*",
10177
                 "ext-dom": "*",
10178
                 "ext-libxml": "*",
10178
                 "ext-libxml": "*",
10179
                 "ext-xmlwriter": "*",
10179
                 "ext-xmlwriter": "*",
10180
-                "nikic/php-parser": "^4.18 || ^5.0",
10180
+                "nikic/php-parser": "^4.19.1 || ^5.1.0",
10181
                 "php": ">=8.1",
10181
                 "php": ">=8.1",
10182
-                "phpunit/php-file-iterator": "^4.0",
10183
-                "phpunit/php-text-template": "^3.0",
10184
-                "sebastian/code-unit-reverse-lookup": "^3.0",
10185
-                "sebastian/complexity": "^3.0",
10186
-                "sebastian/environment": "^6.0",
10187
-                "sebastian/lines-of-code": "^2.0",
10188
-                "sebastian/version": "^4.0",
10189
-                "theseer/tokenizer": "^1.2.0"
10182
+                "phpunit/php-file-iterator": "^4.1.0",
10183
+                "phpunit/php-text-template": "^3.0.1",
10184
+                "sebastian/code-unit-reverse-lookup": "^3.0.0",
10185
+                "sebastian/complexity": "^3.2.0",
10186
+                "sebastian/environment": "^6.1.0",
10187
+                "sebastian/lines-of-code": "^2.0.2",
10188
+                "sebastian/version": "^4.0.1",
10189
+                "theseer/tokenizer": "^1.2.3"
10190
             },
10190
             },
10191
             "require-dev": {
10191
             "require-dev": {
10192
                 "phpunit/phpunit": "^10.1"
10192
                 "phpunit/phpunit": "^10.1"
10198
             "type": "library",
10198
             "type": "library",
10199
             "extra": {
10199
             "extra": {
10200
                 "branch-alias": {
10200
                 "branch-alias": {
10201
-                    "dev-main": "10.1-dev"
10201
+                    "dev-main": "10.1.x-dev"
10202
                 }
10202
                 }
10203
             },
10203
             },
10204
             "autoload": {
10204
             "autoload": {
10227
             "support": {
10227
             "support": {
10228
                 "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
10228
                 "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
10229
                 "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
10229
                 "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
10230
-                "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.15"
10230
+                "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16"
10231
             },
10231
             },
10232
             "funding": [
10232
             "funding": [
10233
                 {
10233
                 {
10235
                     "type": "github"
10235
                     "type": "github"
10236
                 }
10236
                 }
10237
             ],
10237
             ],
10238
-            "time": "2024-06-29T08:25:15+00:00"
10238
+            "time": "2024-08-22T04:31:57+00:00"
10239
         },
10239
         },
10240
         {
10240
         {
10241
             "name": "phpunit/php-file-iterator",
10241
             "name": "phpunit/php-file-iterator",
10583
         },
10583
         },
10584
         {
10584
         {
10585
             "name": "rector/rector",
10585
             "name": "rector/rector",
10586
-            "version": "1.2.3",
10586
+            "version": "1.2.4",
10587
             "source": {
10587
             "source": {
10588
                 "type": "git",
10588
                 "type": "git",
10589
                 "url": "https://github.com/rectorphp/rector.git",
10589
                 "url": "https://github.com/rectorphp/rector.git",
10590
-                "reference": "2433e95410aef1b34b15d7f1b6a134365a4ddb39"
10590
+                "reference": "42a4aa23b48b4cfc8ebfeac2b570364e27744381"
10591
             },
10591
             },
10592
             "dist": {
10592
             "dist": {
10593
                 "type": "zip",
10593
                 "type": "zip",
10594
-                "url": "https://api.github.com/repos/rectorphp/rector/zipball/2433e95410aef1b34b15d7f1b6a134365a4ddb39",
10595
-                "reference": "2433e95410aef1b34b15d7f1b6a134365a4ddb39",
10594
+                "url": "https://api.github.com/repos/rectorphp/rector/zipball/42a4aa23b48b4cfc8ebfeac2b570364e27744381",
10595
+                "reference": "42a4aa23b48b4cfc8ebfeac2b570364e27744381",
10596
                 "shasum": ""
10596
                 "shasum": ""
10597
             },
10597
             },
10598
             "require": {
10598
             "require": {
10599
                 "php": "^7.2|^8.0",
10599
                 "php": "^7.2|^8.0",
10600
-                "phpstan/phpstan": "^1.11.9"
10600
+                "phpstan/phpstan": "^1.11.11"
10601
             },
10601
             },
10602
             "conflict": {
10602
             "conflict": {
10603
                 "rector/rector-doctrine": "*",
10603
                 "rector/rector-doctrine": "*",
10630
             ],
10630
             ],
10631
             "support": {
10631
             "support": {
10632
                 "issues": "https://github.com/rectorphp/rector/issues",
10632
                 "issues": "https://github.com/rectorphp/rector/issues",
10633
-                "source": "https://github.com/rectorphp/rector/tree/1.2.3"
10633
+                "source": "https://github.com/rectorphp/rector/tree/1.2.4"
10634
             },
10634
             },
10635
             "funding": [
10635
             "funding": [
10636
                 {
10636
                 {
10638
                     "type": "github"
10638
                     "type": "github"
10639
                 }
10639
                 }
10640
             ],
10640
             ],
10641
-            "time": "2024-08-12T16:36:46+00:00"
10641
+            "time": "2024-08-23T09:03:01+00:00"
10642
         },
10642
         },
10643
         {
10643
         {
10644
             "name": "sebastian/cli-parser",
10644
             "name": "sebastian/cli-parser",

+ 16
- 16
package-lock.json View File

900
             }
900
             }
901
         },
901
         },
902
         "node_modules/axios": {
902
         "node_modules/axios": {
903
-            "version": "1.7.4",
904
-            "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
905
-            "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
903
+            "version": "1.7.5",
904
+            "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.5.tgz",
905
+            "integrity": "sha512-fZu86yCo+svH3uqJ/yTdQ0QHpQu5oL+/QE+QPSv6BZSkDAoky9vytxp7u5qk83OJFS3kEBcesWni9WTZAv3tSw==",
906
             "dev": true,
906
             "dev": true,
907
             "license": "MIT",
907
             "license": "MIT",
908
             "dependencies": {
908
             "dependencies": {
1159
             "license": "MIT"
1159
             "license": "MIT"
1160
         },
1160
         },
1161
         "node_modules/electron-to-chromium": {
1161
         "node_modules/electron-to-chromium": {
1162
-            "version": "1.5.11",
1163
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.11.tgz",
1164
-            "integrity": "sha512-R1CccCDYqndR25CaXFd6hp/u9RaaMcftMkphmvuepXr5b1vfLkRml6aWVeBhXJ7rbevHkKEMJtz8XqPf7ffmew==",
1162
+            "version": "1.5.13",
1163
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz",
1164
+            "integrity": "sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==",
1165
             "dev": true,
1165
             "dev": true,
1166
             "license": "ISC"
1166
             "license": "ISC"
1167
         },
1167
         },
1427
             }
1427
             }
1428
         },
1428
         },
1429
         "node_modules/is-core-module": {
1429
         "node_modules/is-core-module": {
1430
-            "version": "2.15.0",
1431
-            "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz",
1432
-            "integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==",
1430
+            "version": "2.15.1",
1431
+            "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz",
1432
+            "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==",
1433
             "dev": true,
1433
             "dev": true,
1434
             "license": "MIT",
1434
             "license": "MIT",
1435
             "dependencies": {
1435
             "dependencies": {
1594
             }
1594
             }
1595
         },
1595
         },
1596
         "node_modules/micromatch": {
1596
         "node_modules/micromatch": {
1597
-            "version": "4.0.7",
1598
-            "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
1599
-            "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
1597
+            "version": "4.0.8",
1598
+            "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
1599
+            "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
1600
             "dev": true,
1600
             "dev": true,
1601
             "license": "MIT",
1601
             "license": "MIT",
1602
             "dependencies": {
1602
             "dependencies": {
2550
             "license": "MIT"
2550
             "license": "MIT"
2551
         },
2551
         },
2552
         "node_modules/vite": {
2552
         "node_modules/vite": {
2553
-            "version": "5.4.1",
2554
-            "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.1.tgz",
2555
-            "integrity": "sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==",
2553
+            "version": "5.4.2",
2554
+            "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.2.tgz",
2555
+            "integrity": "sha512-dDrQTRHp5C1fTFzcSaMxjk6vdpKvT+2/mIdE07Gw2ykehT49O0z/VHS3zZ8iV/Gh8BJJKHWOe5RjaNrW5xf/GA==",
2556
             "dev": true,
2556
             "dev": true,
2557
             "license": "MIT",
2557
             "license": "MIT",
2558
             "dependencies": {
2558
             "dependencies": {
2559
                 "esbuild": "^0.21.3",
2559
                 "esbuild": "^0.21.3",
2560
                 "postcss": "^8.4.41",
2560
                 "postcss": "^8.4.41",
2561
-                "rollup": "^4.13.0"
2561
+                "rollup": "^4.20.0"
2562
             },
2562
             },
2563
             "bin": {
2563
             "bin": {
2564
                 "vite": "bin/vite.js"
2564
                 "vite": "bin/vite.js"

Loading…
Cancel
Save