Skip to content

Commit e91d7f6

Browse files
committed
rename
1 parent 892c559 commit e91d7f6

File tree

5 files changed

+46
-45
lines changed

5 files changed

+46
-45
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,5 @@
1111
->ignoreVCS(true);
1212

1313
return (new PhpCsFixer\Config())
14-
->setRules([
15-
'@PSR12' => true,
16-
'array_syntax' => ['syntax' => 'short'],
17-
'ordered_imports' => ['sort_algorithm' => 'alpha'],
18-
'no_unused_imports' => true,
19-
'not_operator_with_successor_space' => true,
20-
'trailing_comma_in_multiline' => true,
21-
'phpdoc_scalar' => true,
22-
'unary_operator_spaces' => true,
23-
'binary_operator_spaces' => true,
24-
'blank_line_before_statement' => [
25-
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
26-
],
27-
'phpdoc_single_line_var_spacing' => true,
28-
'phpdoc_var_without_name' => true,
29-
'class_attributes_separation' => [
30-
'elements' => [
31-
'method' => 'one',
32-
],
33-
],
34-
'method_argument_space' => [
35-
'on_multiline' => 'ensure_fully_multiline',
36-
'keep_multiple_spaces_after_comma' => true,
37-
],
38-
'single_trait_insert_per_statement' => true,
39-
'php_unit_method_casing' => ['case' => 'camel_case'],
40-
])
14+
->setRules(Descom\Common\CsFixer::rules())
4115
->setFinder($finder);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Via Composer
66

77
```bash
8-
composer require descom/package_name
8+
composer require descom/common
99
```
1010

1111
## Usage

composer.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "descom/skeleton",
3-
"description": "package_description",
2+
"name": "descom/common",
3+
"description": "Package to PHP projects in Descom.es",
44
"type": "library",
55
"require": {
66
"php": "^8.0"
77
},
8-
"homepage": "https://github.com/descom/skeleton",
8+
"homepage": "https://github.com/descom-es/php-common",
99
"license": "MIT",
1010
"authors": [
1111
{
@@ -22,18 +22,16 @@
2222
"minimum-stability": "dev",
2323
"prefer-stable": true,
2424
"require-dev": {
25-
"friendsofphp/php-cs-fixer": "^3.4",
26-
"phpunit/phpunit": "^9.5",
27-
"phpstan/phpstan": "^1.9"
25+
"friendsofphp/php-cs-fixer": "^3.35",
26+
"phpunit/phpunit": "^9.5"
2827
},
2928
"autoload": {
3029
"psr-4": {
31-
"Descom\\Skeleton\\": "src"
30+
"Descom\\Common\\": "src"
3231
}
3332
},
3433
"scripts": {
3534
"test": "vendor/bin/phpunit --colors=always",
36-
"style": "vendor/bin/php-cs-fixer fix",
37-
"analyse": "vendor/bin/phpstan analyse"
35+
"style": "vendor/bin/php-cs-fixer fix"
3836
}
3937
}

src/CsFixer.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
namespace Descom\Common;
4+
5+
class CsFixer
6+
{
7+
public static function rules(): array
8+
{
9+
return [
10+
'@PSR12' => true,
11+
'array_syntax' => ['syntax' => 'short'],
12+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
13+
'no_unused_imports' => true,
14+
'not_operator_with_successor_space' => true,
15+
'trailing_comma_in_multiline' => true,
16+
'phpdoc_scalar' => true,
17+
'unary_operator_spaces' => true,
18+
'binary_operator_spaces' => true,
19+
'blank_line_before_statement' => [
20+
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
21+
],
22+
'phpdoc_single_line_var_spacing' => true,
23+
'phpdoc_var_without_name' => true,
24+
'class_attributes_separation' => [
25+
'elements' => [
26+
'method' => 'one',
27+
],
28+
],
29+
'method_argument_space' => [
30+
'on_multiline' => 'ensure_fully_multiline',
31+
'keep_multiple_spaces_after_comma' => true,
32+
],
33+
'single_trait_insert_per_statement' => true,
34+
'php_unit_method_casing' => ['case' => 'camel_case'],
35+
];
36+
}
37+
}

src/Skeleton.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)