More style fixes
This commit is contained in:
parent
0a72e60f68
commit
da9ebe8867
@ -235,7 +235,7 @@ class Kitsu {
|
|||||||
* @param array $existingTitles
|
* @param array $existingTitles
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private static function titleIsUnique(string $title = null, array $existingTitles): bool
|
private static function titleIsUnique(string $title = null, array $existingTitles = []): bool
|
||||||
{
|
{
|
||||||
if (empty($title))
|
if (empty($title))
|
||||||
{
|
{
|
||||||
|
@ -42,11 +42,11 @@ class MangaListTransformer extends AbstractTransformer {
|
|||||||
? intval(2 * $item['attributes']['rating'])
|
? intval(2 * $item['attributes']['rating'])
|
||||||
: '-';
|
: '-';
|
||||||
|
|
||||||
$total_chapters = ($manga['attributes']['chapterCount'] > 0)
|
$totalChapters = ($manga['attributes']['chapterCount'] > 0)
|
||||||
? $manga['attributes']['chapterCount']
|
? $manga['attributes']['chapterCount']
|
||||||
: '-';
|
: '-';
|
||||||
|
|
||||||
$total_volumes = ($manga['attributes']['volumeCount'] > 0)
|
$totalVolumes = ($manga['attributes']['volumeCount'] > 0)
|
||||||
? $manga['attributes']['volumeCount']
|
? $manga['attributes']['volumeCount']
|
||||||
: '-';
|
: '-';
|
||||||
|
|
||||||
@ -54,11 +54,11 @@ class MangaListTransformer extends AbstractTransformer {
|
|||||||
'id' => $item['id'],
|
'id' => $item['id'],
|
||||||
'chapters' => [
|
'chapters' => [
|
||||||
'read' => $item['attributes']['progress'],
|
'read' => $item['attributes']['progress'],
|
||||||
'total' => $total_chapters
|
'total' => $totalChapters
|
||||||
],
|
],
|
||||||
'volumes' => [
|
'volumes' => [
|
||||||
'read' => '-', //$item['attributes']['volumes_read'],
|
'read' => '-', //$item['attributes']['volumes_read'],
|
||||||
'total' => $total_volumes
|
'total' => $totalVolumes
|
||||||
],
|
],
|
||||||
'manga' => [
|
'manga' => [
|
||||||
'titles' => Kitsu::filterTitles($manga['attributes']),
|
'titles' => Kitsu::filterTitles($manga['attributes']),
|
||||||
|
Loading…
Reference in New Issue
Block a user