Completed
Pull Request — 3.x-dev-kit (#736)
by
unknown
12:39 queued 10:58
created

FooWalker   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A walkOrderByClause() 0 4 1
1
<?php
2
3
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Query;
4
5
use Doctrine\ORM\Query\SqlWalker;
6
7
final class FooWalker extends SqlWalker
8
{
9
    public function walkOrderByClause($orderByClause)
10
    {
11
        return str_replace(' ASC', ' DESC', parent::walkOrderByClause($orderByClause));
12
    }
13
}
14