VenuesQueryHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A aroundVenues() 0 15 1
1
<?php
2
3
/**
4
 * This file is part of the Cubiche package.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Cubiche\Core\Cqrs\Tests\Fixtures\Query;
12
13
/**
14
 * VenuesQueryHandler class.
15
 *
16
 * @author Ivannis Suárez Jerez <[email protected]>
17
 */
18
class VenuesQueryHandler
19
{
20
    /**
21
     * @param NearbyVenuesQuery $query
22
     *
23
     * @return array
24
     */
25
    public function aroundVenues(NearbyVenuesQuery $query)
0 ignored issues
show
Unused Code introduced by
The parameter $query is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
        return array(
28
            array(
29
                'id' => 123,
30
                'title' => 'Post 1',
31
                'content' => 'Post 1 content',
32
            ),
33
            array(
34
                'id' => 345,
35
                'title' => 'Post 2',
36
                'content' => 'Post 2 content',
37
            ),
38
        );
39
    }
40
}
41