Skip to content

Commit 98842c6

Browse files
author
Artem Stepin
committed
code style
1 parent 597c786 commit 98842c6

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Confluence PHP Client
2+
[![CI](https://github.com/CloudPlayDev/confluence-php-client/actions/workflows/ci.yml/badge.svg)](https://github.com/CloudPlayDev/confluence-php-client/actions/workflows/ci.yml) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/CloudPlayDev/confluence-php-client/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/CloudPlayDev/confluence-php-client/?branch=main)
3+
24
A Confluence RESTful API client in PHP
35

46
An Object Oriented wrapper for Confluence

src/Api/AbstractApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private static function prepareJsonBody(array $params): string
123123
*/
124124
private static function prepareUri(string $uri, array $query = []): string
125125
{
126-
$query = array_filter($query, static function ($value): bool {
126+
$query = array_filter($query, static function($value): bool {
127127
return null !== $value;
128128
});
129129

@@ -138,4 +138,4 @@ protected static function encodePath($uri): string
138138
{
139139
return rawurlencode((string)$uri);
140140
}
141-
}
141+
}

src/Api/Content.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function create(AbstractContent $content): AbstractContent
141141
];
142142

143143
/* attach content to content */
144-
if(null !== $content->getContainerId()) {
144+
if (null !== $content->getContainerId()) {
145145
$data['container'] = [
146146
'id' => $content->getContainerId(),
147147
'type' => $content->getContainerType(),
@@ -209,7 +209,7 @@ public function descendants(AbstractContent $content, ?string $contentType = nul
209209
public function findOneBy(array $searchParameter): ?AbstractContent
210210
{
211211
$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) {
213213
return in_array($searchKey, $allowedSearchParameter, true);
214214
}, ARRAY_FILTER_USE_KEY);
215215

@@ -306,7 +306,7 @@ private function deserializeContent(array $decodedData): AbstractContent
306306
if (isset($decodedData['version']['number'])) {
307307
$content->setVersion((int)$decodedData['version']['number']);
308308
}
309-
if(isset($decodedData['body']['storage']['value']) ) {
309+
if (isset($decodedData['body']['storage']['value'])) {
310310
assert(is_array($decodedData['body']['storage']));
311311
$content->setContent((string)$decodedData['body']['storage']['value']);
312312
}

src/Entity/ContentPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use CloudPlayDev\ConfluenceClient\Api\Content;
1313

14-
class ContentPage extends AbstractContent{
14+
class ContentPage extends AbstractContent {
1515

1616
protected string $type = Content::CONTENT_TYPE_PAGE;
1717
}

0 commit comments

Comments
 (0)