Skip to content

Commit

Permalink
Improve name of test, he try create a subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel committed Mar 8, 2018
1 parent fbb5aae commit 69972b3
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 252 deletions.
14 changes: 10 additions & 4 deletions .editorconfig
@@ -1,4 +1,10 @@
root = true
[*]
ident_style = space
indet_size = 4
root = true
[*]
ident_style = space
indet_size = 4
end_of_line = crlf
charset = utf-8

[*.md]
max_line_length = off
trim_trailing_whitespace = false
100 changes: 50 additions & 50 deletions composer.json
@@ -1,50 +1,50 @@
{
"name": "gabrieldarezzo/colorizzar",
"description": "Change the colors of an image without lose alpha channnel",
"license": "MIT",
"keywords": ["image", "gd", "rgb", "color", "alpha"],
"homepage": "https://github.com/gabrieldarezzo/colorizzar",
"authors": [
{
"name": "Gabriel Darezzo",
"email": "darezzo.gabriel@gmail.com",
"homepage": "https://inwork.com.br"
}
],
"require": {
"php": ">=5.4",
"ext-gd": "*"
},
"extra": {
"class": "Colorizzar"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "2.*",
"friendsofphp/php-cs-fixer": "^2.8"
},
"scripts": {
"test": [
"phpunit"
],
"ci": [
"php-cs-fixer fix ./src",
"php-cs-fixer fix ./tests",
"phpcs --standard=PSR2 ./src",
"phpcs --standard=PSR2 ./tests",
"@test"
]
},
"autoload": {
"psr-4": {
"Colorizzar\\": "src/Colorizzar/"
}
},
"autoload-dev": {
"psr-4": {
"Colorizzar\\Test\\": "tests/"
}
},
"minimum-stability": "dev",
"version": "1.0.0"
}
{
"name": "gabrieldarezzo/colorizzar",
"description": "Change the colors of an image without lose alpha channnel",
"license": "MIT",
"keywords": ["image", "gd", "rgb", "color", "alpha"],
"homepage": "https://github.com/gabrieldarezzo/colorizzar",
"authors": [
{
"name": "Gabriel Darezzo",
"email": "darezzo.gabriel@gmail.com",
"homepage": "https://inwork.com.br"
}
],
"require": {
"php": ">=5.4",
"ext-gd": "*"
},
"extra": {
"class": "Colorizzar"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "2.*",
"friendsofphp/php-cs-fixer": "^2.4"

This comment has been minimized.

Copy link
@gabrieldarezzo

gabrieldarezzo Mar 8, 2018

Owner

Downgrade fixer bacause EOF in Windows get wrong

},
"scripts": {
"test": [
"phpunit"
],
"ci": [
"php-cs-fixer fix ./src",
"php-cs-fixer fix ./tests",
"phpcs --standard=PSR2 ./src",
"phpcs --standard=PSR2 ./tests",
"@test"
]
},
"autoload": {
"psr-4": {
"Colorizzar\\": "src/Colorizzar/"
}
},
"autoload-dev": {
"psr-4": {
"Colorizzar\\Test\\": "tests/"
}
},
"minimum-stability": "dev",
"version": "1.0.0"
}
2 changes: 1 addition & 1 deletion src/Colorizzar/ChangeColor.php
Expand Up @@ -173,7 +173,7 @@ public function colorizeKeepAplhaChannnel($fileOutPath)
public function colorizeByNameColor($nameColor, $folderName, $fileName = '')
{
if (!file_exists($folderName)) {
mkdir($folderName);
mkdir($folderName, null, true);
}

$color = Colors::createByName($nameColor);
Expand Down
2 changes: 1 addition & 1 deletion src/Colorizzar/UploadFile.php
Expand Up @@ -113,7 +113,7 @@ private function handle(array $file)
}

if (! file_exists($this->UploadPath)) {
mkdir($this->UploadPath);
mkdir($this->UploadPath, null, true);
}

if ($file['arquivo']['error'] !== UPLOAD_ERR_OK) {
Expand Down

0 comments on commit 69972b3

Please sign in to comment.