Skip to content

Commit 13b8a69

Browse files
authored
Merge pull request #1 from binary-cats/analysis-vQRGoE
Apply fixes from StyleCI
2 parents b40cdc5 + 187909b commit 13b8a69

14 files changed

+26
-26
lines changed

src/UrlShortenerManager.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
namespace BinaryCats\UrlShortener;
44

5-
use Closure;
6-
use GuzzleHttp\ClientInterface;
7-
use Illuminate\Contracts\Foundation\Application;
8-
use Illuminate\Support\Arr;
9-
use Illuminate\Support\Str;
10-
use InvalidArgumentException;
115
use BinaryCats\UrlShortener\Contracts\Factory as FactoryContract;
126
use BinaryCats\UrlShortener\Http\BitLyShortener;
137
use BinaryCats\UrlShortener\Http\FirebaseShortener;
@@ -16,6 +10,12 @@
1610
use BinaryCats\UrlShortener\Http\PolrShortener;
1711
use BinaryCats\UrlShortener\Http\ShorteStShortener;
1812
use BinaryCats\UrlShortener\Http\TinyUrlShortener;
13+
use Closure;
14+
use GuzzleHttp\ClientInterface;
15+
use Illuminate\Contracts\Foundation\Application;
16+
use Illuminate\Support\Arr;
17+
use Illuminate\Support\Str;
18+
use InvalidArgumentException;
1919

2020
/**
2121
* @method string shorten(\Psr\Http\Message\UriInterface|string $url, array $options = [])

tests/Integration/BitLyShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5-
use GuzzleHttp\Client;
6-
use GuzzleHttp\Promise\PromiseInterface;
75
use BinaryCats\UrlShortener\Http\BitLyShortener;
86
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
7+
use GuzzleHttp\Client;
8+
use GuzzleHttp\Promise\PromiseInterface;
99
use PHPUnit\Framework\TestCase;
1010

1111
class BitLyShortenerTest extends TestCase

tests/Integration/FirebaseShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5-
use GuzzleHttp\Client;
6-
use GuzzleHttp\Promise\PromiseInterface;
75
use BinaryCats\UrlShortener\Http\FirebaseShortener;
86
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
7+
use GuzzleHttp\Client;
8+
use GuzzleHttp\Promise\PromiseInterface;
99
use PHPUnit\Framework\TestCase;
1010

1111
class FirebaseShortenerTest extends TestCase

tests/Integration/IsGdShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5-
use GuzzleHttp\Client;
6-
use GuzzleHttp\Promise\PromiseInterface;
75
use BinaryCats\UrlShortener\Http\IsGdShortener;
86
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
7+
use GuzzleHttp\Client;
8+
use GuzzleHttp\Promise\PromiseInterface;
99
use PHPUnit\Framework\TestCase;
1010

1111
class IsGdShortenerTest extends TestCase

tests/Integration/OuoIoShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5+
use BinaryCats\UrlShortener\Http\OuoIoShortener;
6+
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
57
use GuzzleHttp\Client;
68
use GuzzleHttp\Promise\PromiseInterface;
79
use Illuminate\Support\Str;
8-
use BinaryCats\UrlShortener\Http\OuoIoShortener;
9-
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
1010
use PHPUnit\Framework\TestCase;
1111

1212
class OuoIoShortenerTest extends TestCase

tests/Integration/ShorteStShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5-
use GuzzleHttp\Client;
6-
use GuzzleHttp\Promise\PromiseInterface;
75
use BinaryCats\UrlShortener\Http\ShorteStShortener;
86
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
7+
use GuzzleHttp\Client;
8+
use GuzzleHttp\Promise\PromiseInterface;
99
use PHPUnit\Framework\TestCase;
1010

1111
class ShorteStShortenerTest extends TestCase

tests/Integration/TinyUrlShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5-
use GuzzleHttp\Client;
6-
use GuzzleHttp\Promise\PromiseInterface;
75
use BinaryCats\UrlShortener\Http\TinyUrlShortener;
86
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
7+
use GuzzleHttp\Client;
8+
use GuzzleHttp\Promise\PromiseInterface;
99
use PHPUnit\Framework\TestCase;
1010

1111
class TinyUrlShortenerTest extends TestCase

tests/Integration/VGdShortenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Integration;
44

5+
use BinaryCats\UrlShortener\Http\IsGdShortener;
6+
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
57
use GuzzleHttp\Client;
68
use GuzzleHttp\Promise\PromiseInterface;
79
use Illuminate\Support\Str;
8-
use BinaryCats\UrlShortener\Http\IsGdShortener;
9-
use BinaryCats\UrlShortener\Tests\Concerns\HasUrlAssertions;
1010
use PHPUnit\Framework\TestCase;
1111

1212
class VGdShortenerTest extends TestCase

tests/Unit/Http/BitLyShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\BitLyShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class BitLyShortenerTest extends HttpTestCase
99
{

tests/Unit/Http/FirebaseShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\FirebaseShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class FirebaseShortenerTest extends HttpTestCase
99
{

tests/Unit/Http/IsGdShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\IsGdShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class IsGdShortenerTest extends HttpTestCase
99
{

tests/Unit/Http/PolrShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\PolrShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class PolrShortenerTest extends HttpTestCase
99
{

tests/Unit/Http/ShorteStShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\ShorteStShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class ShorteStShortenerTest extends HttpTestCase
99
{

tests/Unit/Http/TinyUrlShortenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BinaryCats\UrlShortener\Tests\Unit\Http;
44

5-
use GuzzleHttp\Exception\ClientException;
65
use BinaryCats\UrlShortener\Http\TinyUrlShortener;
6+
use GuzzleHttp\Exception\ClientException;
77

88
class TinyUrlShortenerTest extends HttpTestCase
99
{

0 commit comments

Comments
 (0)