Passed
Push — main ( ebf18b...19cd5b )
by Artem
02:19
created
src/Entity/ContentPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use CloudPlayDev\ConfluenceClient\Api\Content;
13 13
 
14
-class ContentPage extends AbstractContent{
14
+class ContentPage extends AbstractContent {
15 15
 
16 16
     protected string $type = Content::CONTENT_TYPE_PAGE;
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/Api/Content.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         ];
142 142
 
143 143
         /* attach content to content */
144
-        if(null !== $content->getContainerId()) {
144
+        if (null !== $content->getContainerId()) {
145 145
             $data['container'] = [
146 146
                 'id' => $content->getContainerId(),
147 147
                 'type' => $content->getContainerType(),
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     public function findOneBy(array $searchParameter): ?AbstractContent
210 210
     {
211 211
         $allowedSearchParameter = ['title', 'spaceKey', 'type', 'id'];
212
-        $queryParameter = array_filter($searchParameter, static function (string $searchKey) use ($allowedSearchParameter) {
212
+        $queryParameter = array_filter($searchParameter, static function(string $searchKey) use ($allowedSearchParameter) {
213 213
             return in_array($searchKey, $allowedSearchParameter, true);
214 214
         }, ARRAY_FILTER_USE_KEY);
215 215
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         if (isset($decodedData['version']['number'])) {
307 307
             $content->setVersion((int)$decodedData['version']['number']);
308 308
         }
309
-        if(isset($decodedData['body']['storage']['value']) ) {
309
+        if (isset($decodedData['body']['storage']['value'])) {
310 310
             assert(is_array($decodedData['body']['storage']));
311 311
             $content->setContent((string)$decodedData['body']['storage']['value']);
312 312
         }
Please login to merge, or discard this patch.
src/Api/AbstractApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     private static function prepareUri(string $uri, array $query = []): string
125 125
     {
126
-        $query = array_filter($query, static function ($value): bool {
126
+        $query = array_filter($query, static function($value): bool {
127 127
             return null !== $value;
128 128
         });
129 129
 
Please login to merge, or discard this patch.