Skip to content

Commit 6641e9f

Browse files
MatanYadaevMatan Yadaev
andauthored
Fix indentation (#43)
* Set indent size config to 2 spaces * Fix indentations * make GeometryCollection@toArray more readable * remove unnecessary tests Co-authored-by: Matan Yadaev <[email protected]>
1 parent 3cbc88e commit 6641e9f

36 files changed

+2260
-2275
lines changed

.editorconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ root = true
22

33
[*]
44
charset = utf-8
5-
indent_size = 4
5+
indent_size = 2
66
indent_style = space
77
end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13-
14-
[*.{yml,yaml}]
15-
indent_size = 2

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Lint
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
php-cs-fixer:

.github/workflows/phpinsights.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Code quality analysis
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
phpstan:

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Static code analysis
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
phpstan:
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [8.1, 8.0]
14+
php: [ 8.1, 8.0 ]
1515

1616
steps:
1717
- name: Checkout code

.github/workflows/phpunit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
test:
@@ -11,10 +11,10 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [8.1, 8.0]
15-
laravel: [9.*, 8.*]
14+
php: [ 8.1, 8.0 ]
15+
laravel: [ 9.*, 8.* ]
1616
# dependency-version: [prefer-lowest, prefer-stable]
17-
dependency-version: [prefer-stable]
17+
dependency-version: [ prefer-stable ]
1818
include:
1919
- laravel: 8.*
2020
testbench: ^6.23

.github/workflows/update-changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update Changelog
22

33
on:
44
release:
5-
types: [released]
5+
types: [ released ]
66

77
jobs:
88
update:
@@ -25,4 +25,4 @@ jobs:
2525
with:
2626
branch: master
2727
commit_message: Update CHANGELOG
28-
file_pattern: CHANGELOG.md
28+
file_pattern: CHANGELOG.md

.php-cs-fixer.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
return (new Jubeki\LaravelCodeStyle\Config())
4-
->setFinder(
5-
PhpCsFixer\Finder::create()
6-
->in(__DIR__)
7-
)
8-
->setRules([
9-
'@Laravel' => true,
10-
'@Laravel:risky' => true,
11-
])
12-
->setRiskyAllowed(true);
4+
->setFinder(
5+
PhpCsFixer\Finder::create()
6+
->in(__DIR__)
7+
)
8+
->setIndent(' ')
9+
->setRules([
10+
'@Laravel' => true,
11+
'@Laravel:risky' => true,
12+
])
13+
->setRiskyAllowed(true);

composer.json

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
{
2-
"name": "matanyadaev/laravel-eloquent-spatial",
3-
"description": "Spatial library for Laravel",
4-
"homepage": "https://github.com/matanyadaev/laravel-eloquent-spatial",
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "Matan Yadaev",
9-
"email": "[email protected]"
10-
}
11-
],
12-
"require": {
13-
"php": "^8.0",
14-
"ext-json": "*",
15-
"laravel/framework": "^8.0|^9.0",
16-
"phayes/geophp": "^1.2"
17-
},
18-
"require-dev": {
19-
"friendsofphp/php-cs-fixer": "^3.0",
20-
"jubeki/laravel-code-style": "^1.0",
21-
"nunomaduro/phpinsights": "^1.0|^2.0",
22-
"nunomaduro/larastan": "^1.0|^2.0",
23-
"orchestra/testbench": "^6.23|^7.0",
24-
"phpunit/phpunit": "^9.3"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"MatanYadaev\\EloquentSpatial\\": "src",
29-
"MatanYadaev\\EloquentSpatial\\Database\\Factories\\": "database/factories"
30-
}
31-
},
32-
"autoload-dev": {
33-
"psr-4": {
34-
"MatanYadaev\\EloquentSpatial\\Tests\\": "tests"
35-
}
36-
},
37-
"scripts": {
38-
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
39-
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=2G",
40-
"phpunit": "./vendor/bin/phpunit --colors=always",
41-
"phpunit-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage",
42-
"phpinsights": "./vendor/bin/phpinsights",
43-
"phpinsights-fix": "./vendor/bin/phpinsights fix"
44-
},
45-
"config": {
46-
"sort-packages": true,
47-
"allow-plugins": {
48-
"dealerdirect/phpcodesniffer-composer-installer": false
49-
}
50-
},
51-
"minimum-stability": "dev",
52-
"prefer-stable": true
2+
"name": "matanyadaev/laravel-eloquent-spatial",
3+
"description": "Spatial library for Laravel",
4+
"homepage": "https://github.com/matanyadaev/laravel-eloquent-spatial",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Matan Yadaev",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"php": "^8.0",
14+
"ext-json": "*",
15+
"laravel/framework": "^8.0|^9.0",
16+
"phayes/geophp": "^1.2"
17+
},
18+
"require-dev": {
19+
"friendsofphp/php-cs-fixer": "^3.0",
20+
"jubeki/laravel-code-style": "^1.0",
21+
"nunomaduro/phpinsights": "^1.0|^2.0",
22+
"nunomaduro/larastan": "^1.0|^2.0",
23+
"orchestra/testbench": "^6.23|^7.0",
24+
"phpunit/phpunit": "^9.3"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"MatanYadaev\\EloquentSpatial\\": "src",
29+
"MatanYadaev\\EloquentSpatial\\Database\\Factories\\": "database/factories"
30+
}
31+
},
32+
"autoload-dev": {
33+
"psr-4": {
34+
"MatanYadaev\\EloquentSpatial\\Tests\\": "tests"
35+
}
36+
},
37+
"scripts": {
38+
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --allow-risky=yes",
39+
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=2G",
40+
"phpunit": "./vendor/bin/phpunit --colors=always",
41+
"phpunit-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage",
42+
"phpinsights": "./vendor/bin/phpinsights",
43+
"phpinsights-fix": "./vendor/bin/phpinsights fix"
44+
},
45+
"config": {
46+
"sort-packages": true,
47+
"allow-plugins": {
48+
"dealerdirect/phpcodesniffer-composer-installer": false
49+
}
50+
},
51+
"minimum-stability": "dev",
52+
"prefer-stable": true
5353
}

0 commit comments

Comments
 (0)