Skip to content

Commit 0f4de5a

Browse files
authored
Code refactoring (#6)
1 parent ac42057 commit 0f4de5a

File tree

6 files changed

+64
-80
lines changed

6 files changed

+64
-80
lines changed

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
12+
indent_size = 2
13+
1114
[*.md]
1215
trim_trailing_whitespace = false
13-
14-
[*.{yml,yaml}]
15-
indent_size = 2

.gitattributes

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
# Path-based git attributes
2-
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
1+
* text=auto eol=lf
32

4-
# Ignore all test and documentation with "export-ignore".
5-
/.github export-ignore
6-
/.gitattributes export-ignore
7-
/.gitignore export-ignore
8-
/phpunit.xml.dist export-ignore
9-
/art export-ignore
10-
/docs export-ignore
11-
/tests export-ignore
12-
/workbench export-ignore
13-
/.editorconfig export-ignore
14-
/.php_cs.dist.php export-ignore
15-
/psalm.xml export-ignore
16-
/psalm.xml.dist export-ignore
17-
/testbench.yaml export-ignore
18-
/UPGRADING.md export-ignore
19-
/phpstan.neon.dist export-ignore
20-
/phpstan-baseline.neon export-ignore
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
version: 2
55
updates:
6-
76
- package-ecosystem: "github-actions"
87
directory: "/"
98
schedule:

.github/workflows/run-tests.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
os: [ubuntu-latest]
20-
php: [8.3, 8.2]
21-
stability: [prefer-lowest, prefer-stable]
20+
php: [8.4, 8.3]
2221
include:
23-
- laravel: 11.*
24-
testbench: 9.*
25-
carbon: ^3.1.1
22+
- laravel: 12.*
23+
carbon: ^3.9.1
2624

27-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
25+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}
2826

2927
steps:
3028
- name: Checkout code
@@ -44,8 +42,8 @@ jobs:
4442
4543
- name: Install dependencies
4644
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
48-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
46+
composer update --prefer-dist --no-interaction
4947
5048
- name: List Installed Dependencies
5149
run: composer show -D

.gitignore

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
# Composer Related
2-
composer.lock
3-
/vendor
4-
5-
# Frontend Assets
6-
/node_modules
7-
8-
# Logs
9-
npm-debug.log
10-
yarn-error.log
11-
12-
# Caches
13-
.phpunit.cache
14-
.phpunit.result.cache
15-
/build
16-
17-
# IDE Helper
18-
_ide_helper.php
191
_ide_helper_models.php
2+
_ide_helper.php
3+
!.env.example
4+
.cache
5+
.data
6+
.DS_Store
7+
.env
8+
.env.*
9+
.fleet
10+
.idea
11+
.output
12+
.phpactor.json
2013
.phpstorm.meta.php
21-
22-
# Editors
23-
/.idea
24-
/.fleet
25-
/.vscode
26-
27-
# Misc
28-
phpunit.xml
29-
phpstan.neon
30-
testbench.yaml
31-
/docs
32-
/coverage
14+
.phpunit.cache
15+
.phpunit.result.cache
16+
.pnpm-store
17+
.vscode
18+
.zed
19+
*.log
20+
composer.lock
21+
/auth.json
22+
/bootstrap/ssr
23+
/dist
24+
/node_modules
25+
/public/build
26+
/public/hot
27+
/public/storage
28+
/public/vendor
29+
/storage/*.key
30+
/storage/pail
31+
/vendor

composer.json

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "foxws/laravel-modelcache",
33
"description": "Cache helpers for Laravel Eloquent models",
44
"keywords": [
5-
"foxws",
65
"laravel",
76
"laravel-modelcache",
87
"eloquent",
98
"model",
9+
"models",
1010
"cache",
1111
"caching"
1212
],
@@ -21,26 +21,23 @@
2121
],
2222
"require": {
2323
"php": "^8.2",
24-
"illuminate/cache": "^10.0|^11.0",
25-
"illuminate/console": "^10.0|^11.0",
26-
"illuminate/container": "^10.0|^11.0",
27-
"illuminate/contracts": "^10.0||^11.0",
28-
"illuminate/support": "^10.0|^11.0",
29-
"nesbot/carbon": "^2.63|^3.0",
30-
"spatie/laravel-package-tools": "^1.17"
24+
"illuminate/cache": "^11.0|^12.0",
25+
"illuminate/console": "^11.0|^12.0",
26+
"illuminate/contracts": "^11.0|^12.0",
27+
"illuminate/support": "^11.0|^12.0",
28+
"spatie/laravel-package-tools": "^1.9"
3129
},
3230
"require-dev": {
33-
"laravel/pint": "^1.14",
34-
"nunomaduro/collision": "^8.1.1||^7.10.0",
35-
"larastan/larastan": "^2.9",
36-
"orchestra/testbench": "^9.0.0||^8.22.0",
37-
"pestphp/pest": "^2.34",
38-
"pestphp/pest-plugin-arch": "^2.7",
39-
"pestphp/pest-plugin-laravel": "^2.3",
40-
"phpstan/extension-installer": "^1.3",
41-
"phpstan/phpstan-deprecation-rules": "^1.1",
42-
"phpstan/phpstan-phpunit": "^1.3",
43-
"spatie/laravel-ray": "^1.35"
31+
"larastan/larastan": "^3.4",
32+
"laravel/pint": "^1.22",
33+
"nunomaduro/collision": "^8.8",
34+
"orchestra/testbench": "^10.0",
35+
"pestphp/pest": "^3.7",
36+
"pestphp/pest-plugin-arch": "^3.1",
37+
"pestphp/pest-plugin-laravel": "^3.4",
38+
"phpstan/extension-installer": "^1.4.3",
39+
"phpstan/phpstan-deprecation-rules": "^2.0",
40+
"phpstan/phpstan-phpunit": "^2.0"
4441
},
4542
"autoload": {
4643
"psr-4": {

0 commit comments

Comments
 (0)