Skip to content

Commit 45fccc2

Browse files
committed
Fixed codestyles
* minor differences in ide settings
1 parent 3563142 commit 45fccc2

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/Prismic/ApiData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function ($ref) {
134134
(array)$json->bookmarks,
135135
(array)$json->types,
136136
array_map(
137-
function($language) {
137+
function ($language) {
138138
return Language::parse($language);
139139
},
140140
(array)$json->languages

src/Prismic/Language.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace Prismic;
1010

11-
1211
class Language
1312
{
1413

@@ -33,8 +32,7 @@ class Language
3332
private function __construct(
3433
string $id,
3534
string $name
36-
)
37-
{
35+
) {
3836
$this->id = $id;
3937
$this->name = $name;
4038
}
@@ -77,5 +75,4 @@ public static function parse(\stdClass $json): self
7775
$json->name
7876
);
7977
}
80-
81-
}
78+
}

tests/Prismic/LanguageTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace Prismic\Test;
1010

11-
1211
use Prismic\Exception\InvalidArgumentException;
1312
use Prismic\Language;
1413

@@ -39,5 +38,4 @@ public function testWrongObjectType()
3938
{
4039
Language::parse(new \stdClass);
4140
}
42-
43-
}
41+
}

0 commit comments

Comments
 (0)