Skip to content

Commit aff09be

Browse files
committed
Indent files with space
1 parent d92f70c commit aff09be

10 files changed

+1000
-1000
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test:php:
1010
before_script:
1111
- composer install
1212
script:
13-
- composer normalize --dry-run --indent-size=1 --indent-style=tab
13+
- composer normalize --dry-run --indent-size=4 --indent-style=space
1414
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
1515
# - vendor/bin/phpmd src xml phpmd.xml
1616
- vendor/bin/phpstan analyse -vvv

.php-cs-fixer.dist.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
use Framework\CodingStandard\Finder;
1212

1313
return (new Config())->setFinder(
14-
Finder::create()->in(__DIR__)
14+
Finder::create()->in(__DIR__)
1515
)->setDefaultHeaderComment('The Framework Image Library');

ci-test.sh

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
set -e
33

44
commands=(
5-
"composer install"
6-
"composer normalize --dry-run --indent-size=1 --indent-style=tab"
7-
"vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
8-
"vendor/bin/phpmd src xml phpmd.xml"
9-
"vendor/bin/phpstan analyse -vvv"
10-
"vendor/bin/phpunit"
11-
"phpdoc"
5+
"composer install"
6+
"composer normalize --dry-run --indent-size=1 --indent-style=tab"
7+
"vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
8+
"vendor/bin/phpmd src xml phpmd.xml"
9+
"vendor/bin/phpstan analyse -vvv"
10+
"vendor/bin/phpunit"
11+
"phpdoc"
1212
)
1313

1414
color_default='\033[0m'
1515
color_green='\033[1;32m'
1616
color_red='\033[1;31m'
1717

1818
for command in "${commands[@]}"; do
19-
echo -e "${color_green}$ ${command}${color_default}"
20-
if ! eval "${command}"; then
21-
echo -e "${color_red}ERROR: Test failed${color_default}"
22-
exit
23-
fi
19+
echo -e "${color_green}$ ${command}${color_default}"
20+
if ! eval "${command}"; then
21+
echo -e "${color_red}ERROR: Test failed${color_default}"
22+
exit
23+
fi
2424
done
2525

2626
echo

composer.json

+57-57
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
{
2-
"name": "natanfelles/image",
3-
"type": "library",
4-
"description": "The Framework Image Library",
5-
"keywords": [
6-
"image",
7-
"opacity",
8-
"watermark",
9-
"filter",
10-
"flatten"
11-
],
12-
"homepage": "https://the-framework.gitlab.io/libraries/image.html",
13-
"license": "MIT",
14-
"authors": [
15-
{
16-
"name": "Natan Felles",
17-
"email": "[email protected]",
18-
"homepage": "https://natanfelles.github.io"
19-
}
20-
],
21-
"require": {
22-
"php": ">=8.0",
23-
"ext-gd": "*",
24-
"ext-json": "*"
25-
},
26-
"require-dev": {
27-
"ext-xdebug": "*",
28-
"ergebnis/composer-normalize": "^2.15",
29-
"jetbrains/phpstorm-attributes": "^1.0",
30-
"natanfelles/coding-standard": "^1.7",
31-
"phpmd/phpmd": "^2.10",
32-
"phpstan/phpstan": "^0.12",
33-
"phpunit/phpunit": "^9.5"
34-
},
35-
"config": {
36-
"optimize-autoloader": true,
37-
"preferred-install": "dist",
38-
"sort-packages": true
39-
},
40-
"autoload": {
41-
"psr-4": {
42-
"Framework\\Image\\": "src/"
43-
}
44-
},
45-
"autoload-dev": {
46-
"psr-4": {
47-
"Tests\\Image\\": "tests/"
48-
}
49-
},
50-
"minimum-stability": "dev",
51-
"prefer-stable": true,
52-
"support": {
53-
"email": "[email protected]",
54-
"issues": "https://gitlab.com/the-framework/libraries/image/issues",
55-
"wiki": "https://gitlab.com/the-framework/libraries/image/wikis/home",
56-
"source": "https://gitlab.com/the-framework/libraries/image",
57-
"docs": "https://the-framework.gitlab.io/libraries/image/docs/"
58-
}
2+
"name": "natanfelles/image",
3+
"type": "library",
4+
"description": "The Framework Image Library",
5+
"keywords": [
6+
"image",
7+
"opacity",
8+
"watermark",
9+
"filter",
10+
"flatten"
11+
],
12+
"homepage": "https://the-framework.gitlab.io/libraries/image.html",
13+
"license": "MIT",
14+
"authors": [
15+
{
16+
"name": "Natan Felles",
17+
"email": "[email protected]",
18+
"homepage": "https://natanfelles.github.io"
19+
}
20+
],
21+
"require": {
22+
"php": ">=8.0",
23+
"ext-gd": "*",
24+
"ext-json": "*"
25+
},
26+
"require-dev": {
27+
"ext-xdebug": "*",
28+
"ergebnis/composer-normalize": "^2.15",
29+
"jetbrains/phpstorm-attributes": "^1.0",
30+
"natanfelles/coding-standard": "^1.7",
31+
"phpmd/phpmd": "^2.10",
32+
"phpstan/phpstan": "^0.12",
33+
"phpunit/phpunit": "^9.5"
34+
},
35+
"config": {
36+
"optimize-autoloader": true,
37+
"preferred-install": "dist",
38+
"sort-packages": true
39+
},
40+
"autoload": {
41+
"psr-4": {
42+
"Framework\\Image\\": "src/"
43+
}
44+
},
45+
"autoload-dev": {
46+
"psr-4": {
47+
"Tests\\Image\\": "tests/"
48+
}
49+
},
50+
"minimum-stability": "dev",
51+
"prefer-stable": true,
52+
"support": {
53+
"email": "[email protected]",
54+
"issues": "https://gitlab.com/the-framework/libraries/image/issues",
55+
"wiki": "https://gitlab.com/the-framework/libraries/image/wikis/home",
56+
"source": "https://gitlab.com/the-framework/libraries/image",
57+
"docs": "https://the-framework.gitlab.io/libraries/image/docs/"
58+
}
5959
}

phpdoc.dist.xml

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<phpdocumentor
3-
configVersion="3"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xmlns="https://www.phpdoc.org"
6-
xsi:noNamespaceSchemaLocation="https://docs.phpdoc.org/latest/phpdoc.xsd"
3+
configVersion="3"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://www.phpdoc.org"
6+
xsi:noNamespaceSchemaLocation="https://docs.phpdoc.org/latest/phpdoc.xsd"
77
>
8-
<title>The Framework Image Library</title>
9-
<paths>
10-
<output>build/docs</output>
11-
<cache>build/docs-cache</cache>
12-
</paths>
13-
<version number="latest">
14-
<folder>latest</folder>
15-
<api>
16-
<source dsn=".">
17-
<path>src</path>
18-
</source>
19-
<default-package-name>Image</default-package-name>
20-
<include-source>true</include-source>
21-
</api>
22-
<guide>
23-
<source dsn=".">
24-
<path>guide</path>
25-
</source>
26-
<output>guide</output>
27-
</guide>
28-
</version>
29-
<setting name="graphs.enabled" value="true"/>
30-
<setting name="guides.enabled" value="true"/>
31-
<template name="default"/>
8+
<title>The Framework Image Library</title>
9+
<paths>
10+
<output>build/docs</output>
11+
<cache>build/docs-cache</cache>
12+
</paths>
13+
<version number="latest">
14+
<folder>latest</folder>
15+
<api>
16+
<source dsn=".">
17+
<path>src</path>
18+
</source>
19+
<default-package-name>Image</default-package-name>
20+
<include-source>true</include-source>
21+
</api>
22+
<guide>
23+
<source dsn=".">
24+
<path>guide</path>
25+
</source>
26+
<output>guide</output>
27+
</guide>
28+
</version>
29+
<setting name="graphs.enabled" value="true"/>
30+
<setting name="guides.enabled" value="true"/>
31+
<template name="default"/>
3232
</phpdocumentor>
3333

phpmd.xml

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
<?xml version="1.0"?>
22
<ruleset name="Mess Detector">
3-
<!-- cleancode -->
4-
<rule ref="rulesets/cleancode.xml">
5-
<exclude name="StaticAccess"/>
6-
</rule>
7-
<!-- codesize -->
8-
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
9-
<properties>
10-
<property name="minimum" value="7"/>
11-
</properties>
12-
</rule>
13-
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
14-
<properties>
15-
<property name="maxmethods" value="20"/>
16-
</properties>
17-
</rule>
18-
<!-- controversial -->
19-
<rule ref="rulesets/controversial.xml">
20-
<exclude name="CamelCaseVariableName"/>
21-
</rule>
22-
<!-- design -->
23-
<rule ref="rulesets/design.xml"/>
24-
<!-- naming -->
25-
<rule ref="rulesets/naming.xml/ShortVariable">
26-
<properties>
27-
<property name="minimum" value="2"/>
28-
</properties>
29-
</rule>
30-
<!-- unusedcode -->
31-
<rule ref="rulesets/unusedcode.xml"/>
3+
<!-- cleancode -->
4+
<rule ref="rulesets/cleancode.xml">
5+
<exclude name="StaticAccess"/>
6+
</rule>
7+
<!-- codesize -->
8+
<rule ref="rulesets/codesize.xml/ExcessiveParameterList">
9+
<properties>
10+
<property name="minimum" value="7"/>
11+
</properties>
12+
</rule>
13+
<rule ref="rulesets/codesize.xml/TooManyPublicMethods">
14+
<properties>
15+
<property name="maxmethods" value="20"/>
16+
</properties>
17+
</rule>
18+
<!-- controversial -->
19+
<rule ref="rulesets/controversial.xml">
20+
<exclude name="CamelCaseVariableName"/>
21+
</rule>
22+
<!-- design -->
23+
<rule ref="rulesets/design.xml"/>
24+
<!-- naming -->
25+
<rule ref="rulesets/naming.xml/ShortVariable">
26+
<properties>
27+
<property name="minimum" value="2"/>
28+
</properties>
29+
</rule>
30+
<!-- unusedcode -->
31+
<rule ref="rulesets/unusedcode.xml"/>
3232
</ruleset>

phpstan.neon.dist

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 7
3-
paths:
4-
- src
5-
- tests
2+
level: 7
3+
paths:
4+
- src
5+
- tests

phpunit.xml.dist

+14-14
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false"
55
stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false"
66
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7-
<coverage processUncoveredFiles="true">
8-
<include>
9-
<directory suffix=".php">src</directory>
10-
</include>
11-
<report>
12-
<clover outputFile="build/coverage/clover.xml"/>
13-
<html outputDirectory="build/coverage"/>
14-
<text outputFile="php://stdout"/>
15-
</report>
16-
</coverage>
17-
<testsuite name="Tests">
18-
<directory suffix="Test.php">tests</directory>
19-
</testsuite>
20-
<logging/>
7+
<coverage processUncoveredFiles="true">
8+
<include>
9+
<directory suffix=".php">src</directory>
10+
</include>
11+
<report>
12+
<clover outputFile="build/coverage/clover.xml"/>
13+
<html outputDirectory="build/coverage"/>
14+
<text outputFile="php://stdout"/>
15+
</report>
16+
</coverage>
17+
<testsuite name="Tests">
18+
<directory suffix="Test.php">tests</directory>
19+
</testsuite>
20+
<logging/>
2121
</phpunit>

0 commit comments

Comments
 (0)