Skip to content

Commit 4e9666b

Browse files
resolving merge conflicts
2 parents e6b923d + dfe76dd commit 4e9666b

13 files changed

+4160
-177
lines changed

.gitignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
.DS_Store
2-
*.swp
3-
Thumbs.db
4-
.svn
5-
._*
1+
/vendor/

.php_cs

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
3+
$header = <<<'EOF'
4+
Copyright (c) 2009 - 2010, SoftLayer Technologies, Inc. All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice,
10+
this list of conditions and the following disclaimer.
11+
* Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
* Neither SoftLayer Technologies, Inc. nor the names of its contributors may
15+
be used to endorse or promote products derived from this software without
16+
specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28+
POSSIBILITY OF SUCH DAMAGE.
29+
EOF;
30+
31+
// Use PHP-CS-Fixer 2+ if it is available
32+
if (\class_exists('PhpCsFixer\Config', false)) {
33+
return PhpCsFixer\Config::create()
34+
->setUsingCache(true)
35+
->setRiskyAllowed(true)
36+
->setRules(array(
37+
'@Symfony' => true,
38+
'array_syntax' => array('syntax' => 'long'),
39+
'binary_operator_spaces' => array(
40+
'align_double_arrow' => false,
41+
'align_equals' => false,
42+
),
43+
'blank_line_after_opening_tag' => true,
44+
'header_comment' => array('header' => $header),
45+
'ordered_imports' => true,
46+
'php_unit_construct' => true,
47+
))
48+
->setFinder(
49+
PhpCsFixer\Finder::create()->in(__DIR__)
50+
)
51+
;
52+
}
53+
54+
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
55+
56+
return Symfony\CS\Config\Config::create()
57+
->setUsingCache(true)
58+
->fixers(array(
59+
'newline_after_open_tag',
60+
'ordered_use',
61+
'php_unit_construct',
62+
'long_array_syntax',
63+
'unalign_double_arrow',
64+
'unalign_equals',
65+
))
66+
->finder(
67+
Symfony\CS\Finder\DefaultFinder::create()
68+
->in(__DIR__)
69+
)
70+
;

.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
warnings_are_errors: false
3+
4+
env:
5+
global:
6+
- PATH="$HOME/.composer/vendor/bin:$PATH"
7+
8+
matrix:
9+
fast_finish: true
10+
include:
11+
- php: 5.6
12+
- php: 5.6
13+
env: COMPOSER_FLAGS="--prefer-lowest"
14+
- php: 7.0
15+
- php: 7.1
16+
- php: 7.2
17+
18+
sudo: false
19+
20+
cache:
21+
directories:
22+
- $HOME/.composer/cache
23+
24+
before_script:
25+
- if [[ $TRAVIS_PHP_VERSION != hhvm && -f xdebug.ini ]]; then phpenv config-rm xdebug.ini; fi
26+
- if [ "$GITHUB_OAUTH_TOKEN" != "" ]; then echo -e $GITHUB_OAUTH_TOKEN && composer config -g github-oauth.github.com $GITHUB_OAUTH_TOKEN; fi;
27+
- COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
28+
29+
script:
30+
- vendor/bin/phpunit -c phpunit.xml.dist

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# A SoftLayer API PHP client.
22

3+
[![Build Status](https://travis-ci.org/softlayer/softlayer-api-php-client.svg?branch=master)](https://travis-ci.org/softlayer/softlayer-api-php-client)
4+
35
## Warning
46

57
```
@@ -24,8 +26,10 @@ Making API calls using the `\SoftLayer\SoapClient` is done in the following step
2426

2527
Once your method is executed you may continue using the same client if you need to connect to the same service or define another client object if you wish to work with multiple services at once.
2628

29+
2730
The most up to date version of this library can be found on the SoftLayer github public repositories: [https://github.com/softlayer/softlayer-api-php-client](https://github.com/softlayer/softlayer-api-php-client) . Any issues using this library, please open a [Github Issue](https://github.com/softlayer/softlayer-api-php-client/issues)
2831

32+
2933
## System Requirements
3034

3135
The `\SoftLayer\SoapClient` class requires at least PHP 8.0.0 and the PHP SOAP enxtension installed and enabled (`extension=soap` in the php.ini file).

composer.json

+12
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@
1919
"SoftLayer\\": "src/"
2020
}
2121
},
22+
"autoload-dev": {
23+
"psr-4": {
24+
"SoftLayer\\Tests\\": "tests/"
25+
}
26+
},
2227
"extra": {
2328
"branch-alias": {
2429
"dev-master": "2.0.0"
30+
},
31+
"config": {
32+
"sort-packages": true
2533
}
34+
},
35+
"require-dev": {
36+
"friendsofphp/php-cs-fixer": ">=3.13.0",
37+
"phpunit/phpunit": ">=9.0"
2638
}
2739
}

0 commit comments

Comments
 (0)