Skip to content

Commit

Permalink
Fixed codestyles
Browse files Browse the repository at this point in the history
* minor differences in ide settings
  • Loading branch information
JeroenBoersma committed Mar 20, 2019
1 parent 3563142 commit 45fccc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Prismic/ApiData.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function ($ref) {
(array)$json->bookmarks,
(array)$json->types,
array_map(
function($language) {
function ($language) {
return Language::parse($language);
},
(array)$json->languages
Expand Down
7 changes: 2 additions & 5 deletions src/Prismic/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Prismic;


class Language
{

Expand All @@ -33,8 +32,7 @@ class Language
private function __construct(
string $id,
string $name
)
{
) {
$this->id = $id;
$this->name = $name;
}
Expand Down Expand Up @@ -77,5 +75,4 @@ public static function parse(\stdClass $json): self
$json->name
);
}

}
}
4 changes: 1 addition & 3 deletions tests/Prismic/LanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Prismic\Test;


use Prismic\Exception\InvalidArgumentException;
use Prismic\Language;

Expand Down Expand Up @@ -39,5 +38,4 @@ public function testWrongObjectType()
{
Language::parse(new \stdClass);
}

}
}

0 comments on commit 45fccc2

Please sign in to comment.