Skip to content

Commit

Permalink
Clean up repository (#255)
Browse files Browse the repository at this point in the history
- update .gitattributes
- remove redundant entries from .gitignore
- normalize composer.json
- fix codestyle
- fix link to LICENSE.txt
  • Loading branch information
spawnia committed Mar 11, 2022
1 parent 4e436d4 commit 799cbcc
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 43 deletions.
16 changes: 9 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
/tests export-ignore
/branding export-ignore
.github export-ignore
branding export-ignore
tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
CONTRIBUTING.md export-ignore
enum-library.md export-ignore
phpunit.xml export-ignore
21 changes: 1 addition & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,10 @@
composer.lock

# Dependencies
vendor/
node_modules/
npm-debug.log

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
public/storage
public/hot
storage/*.key
.env.*.php
.env.php
.env
Homestead.yaml
Homestead.json
vendor

# PHPUnit
.phpunit.result.cache

# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
.rocketeer/

# IDE stuff
.idea/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<a href="https://travis-ci.org/BenSampo/laravel-enum"><img src="https://travis-ci.org/BenSampo/laravel-enum.svg?branch=master" alt="Build Status"></a>
<a href="https://packagist.org/packages/bensampo/laravel-enum"><img src="https://img.shields.io/packagist/v/bensampo/laravel-enum.svg?style=flat-square&label=stable" alt="Packagist Stable Version"></a>
<a href="https://packagist.org/packages/bensampo/laravel-enum"><img src="https://img.shields.io/packagist/dt/bensampo/laravel-enum.svg?style=flat-square" alt="Packagist downloads"></a>
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="MIT Software License"></a>
<a href="LICENSE.txt"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="MIT Software License"></a>
</p>

## About Laravel Enum
Expand Down
32 changes: 18 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
{
"name": "bensampo/laravel-enum",
"type": "library",
"description": "Simple, extensible and powerful enumeration implementation for Laravel.",
"license": "MIT",
"type": "library",
"keywords": [
"bensampo",
"enum",
"laravel",
"package",
"validation"
],
"homepage": "https://github.com/bensampo/laravel-enum",
"license": "MIT",
"authors": [
{
"name": "Ben Sampson",
"homepage": "https://sampo.co.uk",
"role": "Developer"
}
],
"homepage": "https://github.com/bensampo/laravel-enum",
"require": {
"php": "^8.0",
"composer/composer": "^2.2",
"illuminate/contracts": "^9.0",
"illuminate/support": "^9.0",
"laminas/laminas-code": "^3.4|^4.0",
"laminas/laminas-code": "^3.4 || ^4.0",
"nikic/php-parser": "^4.13"
},
"require-dev": {
"doctrine/dbal": "^3.3",
"orchestra/testbench": "^7.0",
"ergebnis/composer-normalize": "^2.24",
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^7.0",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5.10",
"squizlabs/php_codesniffer": "^3.6"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"BenSampo\\Enum\\": "src"
Expand All @@ -44,10 +47,11 @@
"BenSampo\\Enum\\Tests\\": "tests"
}
},
"scripts": {
"test": "phpunit",
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"extra": {
"branch-alias": {
Expand All @@ -64,9 +68,9 @@
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
"scripts": {
"check-style": "phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style": "phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"test": "phpunit"
}
}
3 changes: 2 additions & 1 deletion src/Attributes/Description.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ class Description
{
public function __construct(
public string $description,
) {}
) {
}
}

0 comments on commit 799cbcc

Please sign in to comment.