Browse Source

Code formatting

tags/v13.2.0
Cédric Belin 3 months ago
parent
commit
46ff078993
29 changed files with 45 additions and 45 deletions
  1. +2
    -2
      bin/coveralls
  2. +4
    -4
      src/Cli/Command.php
  3. +7
    -7
      src/Client.php
  4. +1
    -1
      src/ClientException.php
  5. +2
    -2
      src/Configuration.php
  6. +2
    -2
      src/GitRemote.php
  7. +1
    -1
      src/Parsers/Clover.php
  8. +1
    -1
      src/Parsers/Lcov.php
  9. +2
    -2
      src/RequestEvent.php
  10. +1
    -1
      src/Services/AppVeyor.php
  11. +1
    -1
      src/Services/CircleCI.php
  12. +1
    -1
      src/Services/Codeship.php
  13. +1
    -1
      src/Services/GitHub.php
  14. +1
    -1
      src/Services/GitLabCI.php
  15. +1
    -1
      src/Services/Jenkins.php
  16. +1
    -1
      src/Services/Semaphore.php
  17. +1
    -1
      src/Services/SolanoCI.php
  18. +1
    -1
      src/Services/Surf.php
  19. +1
    -1
      src/Services/TravisCI.php
  20. +1
    -1
      src/Services/Wercker.php
  21. +1
    -1
      test/ClientTest.php
  22. +1
    -1
      test/ConfigurationTest.php
  23. +1
    -1
      test/GitCommitTest.php
  24. +1
    -1
      test/GitDataTest.php
  25. +2
    -2
      test/GitRemoteTest.php
  26. +1
    -1
      test/JobTest.php
  27. +2
    -2
      test/Parsers/CloverTest.php
  28. +2
    -2
      test/Parsers/LcovTest.php
  29. +1
    -1
      test/SourceFileTest.php

+ 2
- 2
bin/coveralls View File

@@ -1,8 +1,8 @@
#!/usr/bin/env php
<?php declare(strict_types=1);

use Coveralls\Cli\{Command};
use Symfony\Component\Console\{Application};
use Coveralls\Cli\Command;
use Symfony\Component\Console\Application;

// Load the dependencies.
$autoloader = new SplFileInfo(__DIR__."/../../../autoload.php");


+ 4
- 4
src/Cli/Command.php View File

@@ -1,11 +1,11 @@
<?php declare(strict_types=1);
namespace Coveralls\Cli;

use Coveralls\{Client};
use Nyholm\Psr7\{Uri};
use Symfony\Component\Console\Exception\{RuntimeException};
use Coveralls\Client;
use Nyholm\Psr7\Uri;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Input\{InputArgument, InputInterface};
use Symfony\Component\Console\Output\{OutputInterface};
use Symfony\Component\Console\Output\OutputInterface;

/** The console command. */
class Command extends \Symfony\Component\Console\Command\Command {


+ 7
- 7
src/Client.php View File

@@ -2,13 +2,13 @@
namespace Coveralls;

use Coveralls\Parsers\{Clover, Lcov};
use Psr\Http\Message\{UriInterface};
use Symfony\Component\EventDispatcher\{EventDispatcher};
use Symfony\Component\HttpClient\{Psr18Client};
use Symfony\Component\Mime\Part\{DataPart};
use Symfony\Component\Mime\Part\Multipart\{FormDataPart};
use Which\{FinderException};
use function Which\{which};
use Psr\Http\Message\UriInterface;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpClient\Psr18Client;
use Symfony\Component\Mime\Part\DataPart;
use Symfony\Component\Mime\Part\Multipart\FormDataPart;
use Which\FinderException;
use function Which\which;

/** Uploads code coverage reports to the [Coveralls](https://coveralls.io) service. */
class Client extends EventDispatcher {


+ 1
- 1
src/ClientException.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use Psr\Http\Message\{UriInterface};
use Psr\Http\Message\UriInterface;

/** An exception caused by an error in a `Client` request. */
class ClientException extends \RuntimeException {


+ 2
- 2
src/Configuration.php View File

@@ -2,8 +2,8 @@
namespace Coveralls;

use Coveralls\Services\{AppVeyor, CircleCI, Codeship, GitHub, GitLabCI, Jenkins, Semaphore, SolanoCI, Surf, TravisCI, Wercker};
use Symfony\Component\Yaml\{Yaml};
use Symfony\Component\Yaml\Exception\{ParseException};
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Yaml\Exception\ParseException;

/**
* Provides access to the coverage settings.


+ 2
- 2
src/GitRemote.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Coveralls;

use Nyholm\Psr7\{Uri};
use Psr\Http\Message\{UriInterface};
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;

/** Represents a Git remote repository. */
class GitRemote implements \JsonSerializable {


+ 1
- 1
src/Parsers/Clover.php View File

@@ -2,7 +2,7 @@
namespace Coveralls\Parsers;

use Coveralls\{Job, SourceFile};
use Webmozart\PathUtil\{Path};
use Webmozart\PathUtil\Path;

/** Parses [Clover](https://www.atlassian.com/software/clover) coverage reports. */
abstract class Clover {


+ 1
- 1
src/Parsers/Lcov.php View File

@@ -3,7 +3,7 @@ namespace Coveralls\Parsers;

use Coveralls\{Job, SourceFile};
use lcov\{Record, Report};
use Webmozart\PathUtil\{Path};
use Webmozart\PathUtil\Path;

/** Parses [LCOV](http://ltp.sourceforge.net/coverage/lcov.php) coverage reports. */
abstract class Lcov {


+ 2
- 2
src/RequestEvent.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Coveralls;

use Psr\Http\Message\{RequestInterface};
use Symfony\Contracts\EventDispatcher\{Event};
use Psr\Http\Message\RequestInterface;
use Symfony\Contracts\EventDispatcher\Event;

/** Represents the event parameter used for request events. */
class RequestEvent extends Event {


+ 1
- 1
src/Services/AppVeyor.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [AppVeyor](https://www.appveyor.com) configuration parameters from the environment. */
abstract class AppVeyor {


+ 1
- 1
src/Services/CircleCI.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [CircleCI](https://circleci.com) configuration parameters from the environment. */
abstract class CircleCI {


+ 1
- 1
src/Services/Codeship.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Codeship](https://circleci.com) configuration parameters from the environment. */
abstract class Codeship {


+ 1
- 1
src/Services/GitHub.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [GitHub](https://github.com) configuration parameters from the environment. */
abstract class GitHub {


+ 1
- 1
src/Services/GitLabCI.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [GitLab CI](https://gitlab.com) configuration parameters from the environment. */
abstract class GitLabCI {


+ 1
- 1
src/Services/Jenkins.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Jenkins](https://jenkins.io) configuration parameters from the environment. */
abstract class Jenkins {


+ 1
- 1
src/Services/Semaphore.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Semaphore](https://semaphoreci.com) configuration parameters from the environment. */
abstract class Semaphore {


+ 1
- 1
src/Services/SolanoCI.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Solano CI](https://ci.solanolabs.com) configuration parameters from the environment. */
abstract class SolanoCI {


+ 1
- 1
src/Services/Surf.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Surf](https://github.com/surf-build/surf) configuration parameters from the environment. */
abstract class Surf {


+ 1
- 1
src/Services/TravisCI.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Travis CI](https://travis-ci.com) configuration parameters from the environment. */
abstract class TravisCI {


+ 1
- 1
src/Services/Wercker.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls\Services;

use Coveralls\{Configuration};
use Coveralls\Configuration;

/** Fetches the [Wercker](https://app.wercker.com) configuration parameters from the environment. */
abstract class Wercker {


+ 1
- 1
test/ClientTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;

/** @testdox Coveralls\Client */
class ClientTest extends TestCase {


+ 1
- 1
test/ConfigurationTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, greaterThanOrEqual, isEmpty, isFalse, isNull, isTrue};

/** @testdox Coveralls\Configuration */


+ 1
- 1
test/GitCommitTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty};

/** @testdox Coveralls\GitCommit */


+ 1
- 1
test/GitDataTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isInstanceOf, isNull, logicalNot, logicalOr, matchesRegularExpression};

/** @testdox Coveralls\GitData */


+ 2
- 2
test/GitRemoteTest.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Coveralls;

use Nyholm\Psr7\{Uri};
use PHPUnit\Framework\{TestCase};
use Nyholm\Psr7\Uri;
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isNull};

/** @testdox Coveralls\GitRemote */


+ 1
- 1
test/JobTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isFalse, isInstanceOf, isNull, isTrue};

/** @testdox Coveralls\Job */


+ 2
- 2
test/Parsers/CloverTest.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Coveralls\Parsers;

use Coveralls\{SourceFile};
use PHPUnit\Framework\{TestCase};
use Coveralls\SourceFile;
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isInstanceOf, logicalNot};

/** @testdox Coveralls\Parsers\Clover */


+ 2
- 2
test/Parsers/LcovTest.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Coveralls\Parsers;

use Coveralls\{SourceFile};
use PHPUnit\Framework\{TestCase};
use Coveralls\SourceFile;
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isInstanceOf, logicalNot};

/** @testdox Coveralls\Parsers\Lcov */


+ 1
- 1
test/SourceFileTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Coveralls;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, countOf, equalTo, isEmpty, isNull, isType, logicalAnd};

/** @testdox Coveralls\SourceFile */


Loading…
Cancel
Save