sonata-project / SonataClassificationBundle

Compare 9f9e680 ... +1 ... d99795f


@@ -59,7 +59,7 @@
Loading
59 59
    {
60 60
        $parameters = [
61 61
            'context' => '',
62 -
            'hide_context' => $this->hasRequest() ? (int) $this->getRequest()->get('hide_context', 0) : 0,
62 +
            'hide_context' => $this->hasRequest() ? $this->getRequest()->query->getInt('hide_context', 0) : 0,
63 63
        ];
64 64
65 65
        if ($this->hasSubject()) {
@@ -71,7 +71,7 @@
Loading
71 71
        }
72 72
73 73
        if ($this->hasRequest()) {
74 -
            $parameters['context'] = $this->getRequest()->get('context');
74 +
            $parameters['context'] = $this->getRequest()->query->get('context');
75 75
76 76
            return $parameters;
77 77
        }

@@ -40,12 +40,12 @@
Loading
40 40
41 41
    public function listAction(Request $request): Response
42 42
    {
43 -
        if (null === $request->get('filter') && null === $request->get('filters')) {
43 +
        if (null === $request->query->get('filter') && null === $request->query->get('filters')) {
44 44
            return new RedirectResponse($this->admin->generateUrl('tree', $request->query->all()));
45 45
        }
46 46
47 -
        $listMode = $request->get('_list_mode');
48 -
        if (null !== $listMode) {
47 +
        $listMode = $request->query->get('_list_mode');
48 +
        if (\is_string($listMode)) {
49 49
            $this->admin->setListMode($listMode);
50 50
        }
51 51
@@ -79,7 +79,7 @@
Loading
79 79
80 80
        $currentContext = null;
81 81
82 -
        $contextId = $request->get('context');
82 +
        $contextId = $request->query->get('context');
83 83
        if (null !== $contextId) {
84 84
            $contextManager = $this->container->get('sonata.classification.manager.context');
85 85
            \assert($contextManager instanceof ContextManagerInterface);

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Complexity Coverage
src ø 55.37%
Project Totals (36 files) 348 55.37%
Loading