Passed
Push — master ( cff466...b9a473 )
by Xavier
01:16
created

Figshare   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A extractJournalData() 0 7 2
1
<?php
2
3
namespace PubPeerFoundation\PublicationDataExtractor\Resources\Extractors;
4
5
use PubPeerFoundation\PublicationDataExtractor\Exceptions\JournalTitleNotFoundException;
6
7
class Figshare extends Doi
8
{
9
    /**
10
     * Extract and format data needed for the Journals Relationship
11
     * on the Publication Model.
12
     */
13
    public function extractJournalData()
14
    {
15
        try {
16
            parent::extractJournalData();
17
        } catch (JournalTitleNotFoundException $e) {
18
            $this->output['journal'] = [
19
                'title' => 'Figshare',
20
            ];
21
        }
22
    }
23
}
24