@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function add(Segment $segment) |
54 | 54 | { |
55 | 55 | |
56 | - $compiledUrl = self::BASE_URL.$segment->getMemberId(); |
|
56 | + $compiledUrl = self::BASE_URL . $segment->getMemberId(); |
|
57 | 57 | |
58 | 58 | $payload = [ |
59 | 59 | 'segment' => [ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $responseContent = json_decode($stream->getContents(), true); |
82 | 82 | $stream->rewind(); |
83 | 83 | |
84 | - if (!(isset($responseContent['response']['segment']['id']))) { |
|
84 | + if ( ! (isset($responseContent['response']['segment']['id']))) { |
|
85 | 85 | throw RepositoryException::wrongFormat(serialize($responseContent)); |
86 | 86 | } |
87 | 87 | |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | public function findOneById($id, $memberId) |
102 | 102 | { |
103 | 103 | |
104 | - $compiledUrl = self::BASE_URL.$memberId.'/'.$id; |
|
104 | + $compiledUrl = self::BASE_URL . $memberId . '/' . $id; |
|
105 | 105 | |
106 | 106 | $response = $this->client->request('GET', $compiledUrl); |
107 | 107 | |
108 | 108 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
109 | 109 | |
110 | - if (!$repositoryResponse->isSuccessful()) { |
|
110 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
111 | 111 | return null; |
112 | 112 | } |
113 | 113 | |
@@ -130,20 +130,20 @@ discard block |
||
130 | 130 | { |
131 | 131 | |
132 | 132 | if ($this->isCacheEnabled()) { |
133 | - $cacheKey = self::CACHE_NAMESPACE.sha1($memberId.$start.$maxResults); |
|
133 | + $cacheKey = self::CACHE_NAMESPACE . sha1($memberId . $start . $maxResults); |
|
134 | 134 | if ($this->cache->contains($cacheKey)) { |
135 | 135 | return $this->cache->fetch($cacheKey); |
136 | 136 | } |
137 | 137 | |
138 | 138 | } |
139 | 139 | |
140 | - $compiledUrl = self::BASE_URL.$memberId."?start_element=$start&num_elements=$maxResults"; |
|
140 | + $compiledUrl = self::BASE_URL . $memberId . "?start_element=$start&num_elements=$maxResults"; |
|
141 | 141 | |
142 | 142 | $response = $this->client->request('GET', $compiledUrl); |
143 | 143 | |
144 | 144 | $repositoryResponse = RepositoryResponse::fromResponse($response); |
145 | 145 | |
146 | - if (!$repositoryResponse->isSuccessful()) { |
|
146 | + if ( ! $repositoryResponse->isSuccessful()) { |
|
147 | 147 | return null; |
148 | 148 | } |
149 | 149 |