DailymotionConfiguration::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace Libcast\AssetDistributor\Dailymotion;
4
5
use Libcast\AssetDistributor\Configuration\AbstractConfiguration;
6
use Libcast\AssetDistributor\Configuration\Configuration;
7
use Psr\Log\LoggerInterface;
8
9
class DailymotionConfiguration extends AbstractConfiguration implements Configuration
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function __construct(array $configuration, LoggerInterface $logger = null)
15
    {
16
        $configuration = array_merge($configuration, [
17
            'scopes' => ['manage_videos'],
18
        ]);
19
20
        parent::__construct($configuration, $logger);
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getCategoryMap()
27
    {
28
        return [];
29
    }
30
}
31