Strategy   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getParams() 0 8 2
1
<?php
2
3
/**
4
 * This file is part of Laravel Meetups.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace LaravelMeetups\Http\Client\Catalog;
13
14
use LaravelMeetups\Contracts\Http\Client\Strategy as Contract;
15
use LaravelMeetups\Http\Client\AbstractStrategy;
16
17
/**
18
 * Class Strategy.
19
 */
20
class Strategy extends AbstractStrategy implements Contract
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getParams()
26
    {
27
        return [
28
            'allMeetups' => $this->config->getAllMeetups() ? 'true' : 'false',
29
            'keywords'   => $this->config->getKeywords(),
30
            'radius'     => $this->config->getRadius(),
31
        ];
32
    }
33
}
34