Completed
Push — master ( 01b1f4...cd2255 )
by Francesco
03:06
created
src/Auth.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @param null   $uri
71 71
      * @param array  $options
72 72
      *
73
-     * @return mixed|\Psr\Http\Message\ResponseInterface
73
+     * @return \Psr\Http\Message\ResponseInterface
74 74
      * @throws \Exception
75 75
      */
76 76
     public function request($method, $uri = null, array $options = [])
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
         $response = $this->client->request($method, $uri, $options);
78 78
 
79
-        if (!$this->needToRevalidate($response)) {
79
+        if ( ! $this->needToRevalidate($response)) {
80 80
             return $response;
81 81
         }
82 82
 
Please login to merge, or discard this patch.
src/exceptions/AuthException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public static function authFailed($reason)
17 17
     {
18
-        return new self(self::DEFAULT_MESSAGE.$reason, 0, null);
18
+        return new self(self::DEFAULT_MESSAGE . $reason, 0, null);
19 19
     }
20 20
 
21 21
 }
Please login to merge, or discard this patch.
phpunit_bs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 umask(0000);
4 4
 
5
-if(function_exists('xdebug_disable')) {
5
+if (function_exists('xdebug_disable')) {
6 6
     xdebug_disable();
7 7
 }
8 8
 
9
-include(__DIR__.'/vendor/autoload.php');
10 9
\ No newline at end of file
10
+include(__DIR__ . '/vendor/autoload.php');
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
src/authentication/AppnexusStrategy.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * AdnxStrategy constructor.
27 27
      *
28 28
      * @param ClientInterface $clientInterface
29
-     * @param Cache|null      $cache
29
+     * @param Cache      $cache
30 30
      */
31 31
     public function __construct(ClientInterface $clientInterface, Cache $cache)
32 32
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function authenticate($username, $password, $cache = true)
46 46
     {
47 47
 
48
-        $cacheKey = self::CACHE_NAMESPACE.sha1($username.$password.self::BASE_URL);
48
+        $cacheKey = self::CACHE_NAMESPACE . sha1($username . $password . self::BASE_URL);
49 49
 
50 50
         if ($cache) {
51 51
             if ($this->cache->contains($cacheKey)) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $contentArray = json_decode($content, true);
69 69
 
70
-        if (!isset($contentArray["response"]["token"])) {
70
+        if ( ! isset($contentArray["response"]["token"])) {
71 71
             throw new AuthException($content);
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/authentication/AdnxStrategy.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * AdnxStrategy constructor.
27 27
      *
28 28
      * @param ClientInterface $clientInterface
29
-     * @param Cache|null      $cache
29
+     * @param Cache      $cache
30 30
      */
31 31
     public function __construct(ClientInterface $clientInterface, Cache $cache)
32 32
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function authenticate($username, $password, $cache = true)
46 46
     {
47 47
 
48
-        $cacheKey = self::CACHE_NAMESPACE.sha1($username.$password.self::BASE_URL);
48
+        $cacheKey = self::CACHE_NAMESPACE . sha1($username . $password . self::BASE_URL);
49 49
 
50 50
         if ($cache) {
51 51
             if ($this->cache->contains($cacheKey)) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $contentArray = json_decode($content, true);
69 69
 
70
-        if (!isset($contentArray["response"]["token"])) {
70
+        if ( ! isset($contentArray["response"]["token"])) {
71 71
             throw new AuthException($content);
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/repository/RepositoryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             $self->setSuccessful($responseArray['response']['status'] == self::STATUS_SUCCESS);
106 106
         }
107 107
 
108
-        if (!$self->isSuccessful()) {
108
+        if ( ! $self->isSuccessful()) {
109 109
             $error = Error::fromArray($responseArray['response']);
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/exceptions/RepositoryException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function missingId(Segment $segment)
30 30
     {
31
-        return new self('Missing segment id for '.serialize($segment->getCode()));
31
+        return new self('Missing segment id for ' . serialize($segment->getCode()));
32 32
     }
33 33
 
34 34
     /**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public static function failed(RepositoryResponse $repositoryResponse)
40 40
     {
41
-        return new self('Failed call: '.$repositoryResponse->getError()->getError());
41
+        return new self('Failed call: ' . $repositoryResponse->getError()->getError());
42 42
     }
43 43
 
44 44
     /**+
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function missingIndex($missingIndex)
50 50
     {
51
-        return new self('Invalid reposnse missing: '. $missingIndex);
51
+        return new self('Invalid reposnse missing: ' . $missingIndex);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/entity/UploadJobStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@
 block discarded – undo
434 434
     {
435 435
         $object = new self();
436 436
 
437
-        if (!isset($objectArray['upload_url'])) {
437
+        if ( ! isset($objectArray['upload_url'])) {
438 438
             $objectArray['upload_url'] = '';
439 439
         }
440 440
 
Please login to merge, or discard this patch.
src/exceptions/UploadException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public static function failed(RepositoryResponse $repositoryResponse)
19 19
     {
20
-        return new self('Failed call: '.$repositoryResponse->getError()->getError());
20
+        return new self('Failed call: ' . $repositoryResponse->getError()->getError());
21 21
     }
22 22
 
23 23
     /**+
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public static function missingIndex($missingIndex)
29 29
     {
30
-        return new self('Invalid reposnse missing: '.$missingIndex);
30
+        return new self('Invalid reposnse missing: ' . $missingIndex);
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.