Skip to content

Commit

Permalink
Merge pull request #96: Update metafiles and codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Jan 8, 2025
2 parents 024fa0f + 653e84c commit aa914b9
Show file tree
Hide file tree
Showing 89 changed files with 1,294 additions and 696 deletions.
12 changes: 8 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# editorconfig.org

root = true

[*]
Expand All @@ -10,5 +8,11 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.json]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[Makefile]
indent_style = tab
14 changes: 7 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.github export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
/.* export-ignore
/tests export-ignore
/*.xml export-ignore
/*.yml export-ignore
/*.lock export-ignore
/*.dist export-ignore
/*.php export-ignore
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: spiral
16 changes: 16 additions & 0 deletions .github/workflows/cs-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

on: # yamllint disable-line rule:truthy
push:
branches:
- '*'

name: Fix Code Style

jobs:
cs-fix:
permissions:
contents: write
uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master

...
15 changes: 15 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
pull_request: null
push:
branches:
- master
- '*.*'

name: static analysis

jobs:
psalm:
uses: spiral/gh-actions/.github/workflows/psalm.yml@master
with:
os: >-
['ubuntu-latest']
14 changes: 0 additions & 14 deletions .github/workflows/static-analysis.yml

This file was deleted.

22 changes: 4 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# IDEA
.idea/
*.iml

# Composer
vendor/
/.*
!/.github/
/runtime/
/vendor/
composer.lock
composer.phar

# OS
.DS_Store
Thumbs.db

# Other
.phpunit.result.cache
.php_cs.cache
clover.xml
.env
builds
15 changes: 15 additions & 0 deletions .idea/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

require_once 'vendor/autoload.php';

return \Spiral\CodeStyle\Builder::create()
->include(__DIR__ . '/src')
->include(__DIR__ . '/tests')
->include(__FILE__)
->cache('./runtime/php-cs-fixer.cache')
->allowRisky(false)
->build();
166 changes: 92 additions & 74 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,96 @@
{
"name": "spiral/cycle-bridge",
"type": "library",
"description": "Cycle ORM integration package",
"license": "MIT",
"homepage": "https://spiral.dev",
"support": {
"issues": "https://github.com/spiral/framework/issues",
"source": "https://github.com/spiral/cycle-bridge"
},
"authors": [
{
"name": "Anton Titov (wolfy-j)",
"email": "wolfy-j@spiralscout.com"
"name": "spiral/cycle-bridge",
"type": "library",
"description": "Cycle ORM integration package",
"license": "MIT",
"homepage": "https://spiral.dev",
"support": {
"issues": "https://github.com/spiral/framework/issues",
"source": "https://github.com/spiral/cycle-bridge"
},
{
"name": "Pavel Buchnev (butschster)",
"email": "pavel.buchnev@spiralscout.com"
}
],
"require": {
"php": ">=8.1",
"cycle/annotated": "^4.0",
"cycle/migrations": "^4.0.1",
"cycle/orm": "^2.0.2",
"cycle/schema-migrations-generator": "^2.1",
"cycle/schema-renderer": "^1.2",
"cycle/schema-builder": "^2.7",
"doctrine/inflector": "^1.4 || ^2.0",
"spiral/attributes": "^2.10 || ^3.0",
"spiral/reactor": "^3.0",
"spiral/scaffolder": "^3.0",
"spiral/prototype": "^3.0",
"spiral/console": "^3.0",
"spiral/core": "^3.0",
"spiral/boot": "^3.0",
"spiral/auth": "^3.0",
"spiral/tokenizer": "^3.0",
"spiral/config": "^3.0",
"spiral/filters": "^3.10",
"spiral/data-grid-bridge": "^3.0",
"psr/container": "^1.1 || ^2.0"
},
"require-dev": {
"doctrine/collections": "^2.0",
"illuminate/collections": "^9.0",
"infection/infection": "^0.26.6",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5.20",
"spiral/framework": "^3.11.1",
"spiral/testing": "^2.4",
"spiral/validator": "^1.5",
"spiral/nyholm-bridge": "^1.3",
"spiral-packages/database-seeder": "^3.1",
"vimeo/psalm": "^5.19",
"cycle/entity-behavior": "^1.2"
},
"autoload": {
"psr-4": {
"Spiral\\Cycle\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Spiral\\App\\": "tests/app",
"Spiral\\Tests\\": "tests/src"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"spiral/composer-publish-plugin": false,
"infection/extension-installer": false
"authors": [
{
"name": "Anton Titov (wolfy-j)",
"email": "wolfy-j@spiralscout.com"
},
{
"name": "Pavel Buchnev (butschster)",
"email": "pavel.buchnev@spiralscout.com"
},
{
"name": "Aleksei Gagarin (roxblnfk)",
"email": "alexey.gagarin@spiralscout.com"
}
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/spiral"
}
],
"require": {
"php": ">=8.1",
"cycle/annotated": "^4.0",
"cycle/migrations": "^4.0.1",
"cycle/orm": "^2.0.2",
"cycle/schema-migrations-generator": "^2.1",
"cycle/schema-renderer": "^1.2",
"cycle/schema-builder": "^2.7",
"doctrine/inflector": "^1.4 || ^2.0",
"spiral/attributes": "^2.10 || ^3.0",
"spiral/reactor": "^3.0",
"spiral/scaffolder": "^3.0",
"spiral/prototype": "^3.0",
"spiral/console": "^3.0",
"spiral/core": "^3.0",
"spiral/boot": "^3.0",
"spiral/auth": "^3.0",
"spiral/tokenizer": "^3.0",
"spiral/config": "^3.0",
"spiral/filters": "^3.10",
"spiral/data-grid-bridge": "^3.0",
"psr/container": "^1.1 || ^2.0"
},
"require-dev": {
"cycle/entity-behavior": "^1.2",
"doctrine/collections": "^2.0",
"illuminate/collections": "^9.0",
"infection/infection": "^0.26.6",
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5.20",
"spiral-packages/database-seeder": "^3.1",
"spiral/code-style": "^2.2.1",
"spiral/framework": "^3.11.1",
"spiral/nyholm-bridge": "^1.3",
"spiral/testing": "^2.4",
"spiral/validator": "^1.5",
"vimeo/psalm": "^5.19"
},
"autoload": {
"psr-4": {
"Spiral\\Cycle\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Spiral\\App\\": "tests/app",
"Spiral\\Tests\\": "tests/src"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"spiral/composer-publish-plugin": false,
"infection/extension-installer": false
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"cs:diff": "php-cs-fixer fix --dry-run -v --diff",
"cs:fix": "php-cs-fixer fix -v",
"psalm": "psalm",
"psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
"test": "phpunit --color=always"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile="runtime/phpunit/result.cache"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
Expand Down
Loading

0 comments on commit aa914b9

Please sign in to comment.