Skip to content

Commit

Permalink
Merge branch 'hotfix/0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Feb 14, 2017
2 parents 3dd0039 + 24d29ab commit 8e5515c
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 55 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{php,twig,yml}]
indent_style = space
indent_size = 4

[*.min.{css,js}]
insert_final_newline = false
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Vendor
# Composer
/composer.lock
/vendor/

# PhpUnit
/phpunit.xml
27 changes: 0 additions & 27 deletions .php_cs

This file was deleted.

28 changes: 28 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

$date = date('Y');

$header = <<<EOF
This file is part of Contao.
Copyright (c) 2005-$date Leo Feyer
@license LGPL-3.0+
EOF;

$finder = PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
;

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'psr0' => false,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $header],
'strict_comparison' => true,
])
->setFinder($finder)
->setRiskyAllowed(true)
->setUsingCache(false)
;
4 changes: 2 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ checks:
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
type_name: '^[A-Z][a-zA-Z0-9]*$'
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
isser_method_name: '^(?:is|can|has|grants|should|may|supports)'
isser_method_name: '^(?:is|can|has|grants|should|may|requires|supports)'
more_specific_types_in_doc_comments: true
missing_arguments: true
method_calls_on_non_object: true
line_length:
max_length: '120'
max_length: '0'
instanceof_class_exists: true
function_in_camel_caps: true
foreach_usable_as_reference: true
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ sudo: false
env:
global:
- COMPOSER_ALLOW_XDEBUG=0
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
include:
Expand All @@ -27,7 +26,7 @@ matrix:
- php: 7.1

before_install:
- composer selfupdate --snapshot # TODO: remove when Composer 1.3 stable is released
- composer selfupdate

before_script:
- travis_wait composer update $COMPOSER_FLAGS --no-interaction
Expand Down
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ shallow_clone: true
platform: x86
clone_folder: c:\projects\contao-imagine-svg

cache:
- '%LOCALAPPDATA%\Composer\files'

init:
- SET PATH=c:\php;%PATH%
- SET SYMFONY_DEPRECATIONS_HELPER=weak

install:
- mkdir c:\php && cd c:\php
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.25-Win32-VC11-x86.zip
- 7z x php-5.6.25-Win32-VC11-x86.zip -y >nul
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.27-Win32-VC11-x86.zip
- 7z x php-5.6.27-Win32-VC11-x86.zip -y >nul
- del *.zip
- copy php.ini-production php.ini
- echo date.timezone="UTC" >> php.ini
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"imagine/imagine": "^0.6"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~1.8",
"phpunit/phpunit": "~4.5",
"symfony/filesystem": "~2.8 | ~3.0",
"satooshi/php-coveralls": "~0.6"
"friendsofphp/php-cs-fixer": "^2.0",
"phpunit/phpunit": "^4.5",
"satooshi/php-coveralls": "^0.6",
"symfony/filesystem": "^2.8|^3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -27,7 +27,7 @@
},
"autoload-dev": {
"psr-4": {
"Contao\\ImagineSvg\\Test\\": "tests/"
"Contao\\ImagineSvg\\Tests\\": "tests/"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Imagine.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RelativeBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RelativeBoxInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion src/UndefinedBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion src/UndefinedBoxInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/

namespace Contao\ImagineSvg\Test;
namespace Contao\ImagineSvg\Tests;

use Contao\ImagineSvg\Image;
use Contao\ImagineSvg\Imagine;
Expand Down
4 changes: 2 additions & 2 deletions tests/ImagineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/

namespace Contao\ImagineSvg\Test;
namespace Contao\ImagineSvg\Tests;

use Contao\ImagineSvg\Imagine;
use Contao\ImagineSvg\UndefinedBox;
Expand Down
4 changes: 2 additions & 2 deletions tests/RelativeBoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/

namespace Contao\ImagineSvg\Test;
namespace Contao\ImagineSvg\Tests;

use Contao\ImagineSvg\RelativeBox;
use Imagine\Image\Point;
Expand Down
4 changes: 2 additions & 2 deletions tests/UndefinedBoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/

namespace Contao\ImagineSvg\Test;
namespace Contao\ImagineSvg\Tests;

use Contao\ImagineSvg\UndefinedBox;

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
* Copyright (c) 2005-2017 Leo Feyer
*
* @license LGPL-3.0+
*/
Expand Down

0 comments on commit 8e5515c

Please sign in to comment.