Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix the code style of all files
Browse files Browse the repository at this point in the history
  • Loading branch information
ste93cry committed Oct 30, 2018
1 parent 3491767 commit 3ed98f7
Show file tree
Hide file tree
Showing 67 changed files with 629 additions and 327 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
vendor/
build/
/composer.lock
/.php_cs.cache
37 changes: 24 additions & 13 deletions .travis.yml
@@ -1,15 +1,12 @@
language: php

sudo: false

php:
- 7.1
- 7.2
- nightly
- 7.1
- 7.2

env:
- dependencies=lowest
- dependencies=highest
- dependencies=lowest
- dependencies=highest

matrix:
fast_finish: true
Expand All @@ -22,7 +19,8 @@ cache:

stages:
- Code style & static analysis
- test
- Test
- Code coverage

jobs:
include:
Expand All @@ -31,13 +29,26 @@ jobs:
script: composer phpcs
- script: composer phpstan
name: PHPStan

- stage: Test
php: nightly
allow_failure: true
env: dependencies=lowest
before_install:
- composer remove --dev friendsofphp/php-cs-fixer # This is needed until PHP-CS-Fixer becames compatible with PHP 7.4
- php: nightly
allow_failure: true
env: dependencies=highest
before_install:
- composer remove --dev friendsofphp/php-cs-fixer # This is needed until PHP-CS-Fixer becames compatible with PHP 7.4
- stage: Code coverage
php: 7.2
env: dependencies=highest
script: vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml
after_success:
- travis_retry php vendor/bin/php-coveralls --verbose
install:
- if [ "$dependencies" = "lowest" ]; then composer update --no-interaction --prefer-lowest --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --no-interaction --prefer-lowest --prefer-dist; fi;
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction --prefer-dist; fi;

script:
- composer tests

after_success:
- php vendor/bin/php-coveralls -v
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -38,6 +38,7 @@
"phpunit/phpunit": "^7.3.1",
"psr/http-message-implementation": "^1.0",
"symfony/options-resolver": "^3.0|^4.0",
"symfony/phpunit-bridge": "^4.1",
"webmozart/assert": "^1.3"
},
"autoload": {
Expand Down
18 changes: 10 additions & 8 deletions phpunit.xml.dist
@@ -1,20 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.7/phpunit.xsd"
backupStaticAttributes="false"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
</php>

<filter>
<whitelist>
<directory>src</directory>
<directory suffix=".php">src</directory>
</whitelist>
</filter>

Expand All @@ -23,4 +21,8 @@
<directory>tests</directory>
</testsuite>
</testsuites>

<listeners>
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
</phpunit>
11 changes: 6 additions & 5 deletions src/LooplineSystems/CloseIoApiWrapper/Api/ActivityApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\ClientInterface;
Expand All @@ -24,7 +25,7 @@
class ActivityApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand Down
11 changes: 6 additions & 5 deletions src/LooplineSystems/CloseIoApiWrapper/Api/CallActivityApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class CallActivityApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand Down
15 changes: 8 additions & 7 deletions src/LooplineSystems/CloseIoApiWrapper/Api/ContactApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class ContactApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand All @@ -39,8 +40,8 @@ protected function initUrls()
/**
* Gets up to the specified number of contacts that matches the given criteria.
*
* @param int $offset The offset from which start getting the items
* @param int $limit The maximum number of items to get
* @param int $offset The offset from which start getting the items
* @param int $limit The maximum number of items to get
* @param string[] $fields The subset of fields to get (defaults to all)
*
* @return Contact[]
Expand Down
11 changes: 6 additions & 5 deletions src/LooplineSystems/CloseIoApiWrapper/Api/CustomFieldApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class CustomFieldApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand Down
11 changes: 6 additions & 5 deletions src/LooplineSystems/CloseIoApiWrapper/Api/EmailActivityApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class EmailActivityApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand Down
17 changes: 9 additions & 8 deletions src/LooplineSystems/CloseIoApiWrapper/Api/LeadApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -20,7 +21,7 @@
class LeadApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand All @@ -42,9 +43,9 @@ protected function initUrls()
/**
* Gets up to the specified number of leads that matches the given criteria.
*
* @param int $offset The offset from which start getting the items
* @param int $limit The maximum number of items to get
* @param array $filters A set of criteria to filter the items by
* @param int $offset The offset from which start getting the items
* @param int $limit The maximum number of items to get
* @param array $filters A set of criteria to filter the items by
* @param string[] $fields The subset of fields to get (defaults to all)
*
* @return Lead[]
Expand Down
13 changes: 7 additions & 6 deletions src/LooplineSystems/CloseIoApiWrapper/Api/LeadStatusApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class LeadStatusApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand All @@ -32,7 +33,7 @@ protected function initUrls()
'add-status' => '/status/lead/',
'get-status' => '/status/lead/[:id]/',
'update-status' => '/status/lead/[:id]/',
'delete-status' => '/status/lead/[:id]/'
'delete-status' => '/status/lead/[:id]/',
];
}

Expand Down
11 changes: 6 additions & 5 deletions src/LooplineSystems/CloseIoApiWrapper/Api/NoteActivityApi.php
@@ -1,15 +1,16 @@
<?php

declare(strict_types=1);

/**
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems
* Close.io Api Wrapper - LLS Internet GmbH - Loopline Systems.
*
* @see https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
*
* @link https://github.com/loopline-systems/closeio-api-wrapper for the canonical source repository
* @copyright Copyright (c) 2014 LLS Internet GmbH - Loopline Systems (http://www.loopline-systems.com)
* @license https://github.com/loopline-systems/closeio-api-wrapper/blob/master/LICENSE (MIT Licence)
*/

declare(strict_types=1);

namespace LooplineSystems\CloseIoApiWrapper\Api;

use LooplineSystems\CloseIoApiWrapper\Library\Api\AbstractApi;
Expand All @@ -18,7 +19,7 @@
class NoteActivityApi extends AbstractApi
{
/**
* The maximum number of items that are requested by default
* The maximum number of items that are requested by default.
*/
private const MAX_ITEMS_PER_REQUEST = 100;

Expand Down

0 comments on commit 3ed98f7

Please sign in to comment.