Failed Conditions
Push — feature/improve ( 651cf0...264dd7 )
by Yo
02:28
created

YoanmBehat3SymfonyKernelBridge::shutdown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/******** WARNING : THIS FILE IS JUST A TEMPLATE, IT IS NOT LOADABLE AS IS ********/
3
namespace {
4
5
    /**
6
     * Autogenerated by Behat3SymfonyExtension.
7
     * Don't touch the content it will be erased !
8
     * See Yoanm\Behat3SymfonyExtension\Factory\KernelFactory::load()
9
     *
10
     * This file should be automatically deleted after kernel load. Except if kernel.kernelDebug === true
11
     */
12
    use __OriginalKernelClassNameToReplace__ as YoanmBehat3SymfonyKernelBridgeBaseKernel;
13
    use Yoanm\Behat3SymfonyExtension\Dispatcher\BehatKernelEventDispatcher;
14
15
    class YoanmBehat3SymfonyKernelBridge__BridgeId__ extends YoanmBehat3SymfonyKernelBridgeBaseKernel
2 ignored issues
show
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
Coding Style introduced by
YoanmBehat3SymfonyKernelBridge__BridgeId__ does not seem to conform to the naming convention (^[A-Z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
16
    {
17
        /** @var BehatKernelEventDispatcher */
18
        private $behatKernelEventDispatcher;
19
20
        /**
21
         * @param BehatKernelEventDispatcher $behatKernelEventDispatcher
22
         */
23
        public function setBehatKernelEventDispatcher(BehatKernelEventDispatcher $behatKernelEventDispatcher)
24
        {
25
            $this->behatKernelEventDispatcher = $behatKernelEventDispatcher;
26
        }
27
28
        /**
29
         * Will dispatch events related to kernel boot action
30
         * Rely on parent class method
31
         *
32
         * {@inheritdoc}
33
         */
34
        public function boot()
35
        {
36
            $this->behatKernelEventDispatcher->beforeBoot($this);
37
            parent::boot();
38
            $this->behatKernelEventDispatcher->afterBoot($this);
39
        }
40
41
        /**
42
         * Will dispatch events related to kernel shutdown action
43
         * Rely on parent class method
44
         *
45
         * {@inheritdoc}
46
         */
47
        public function shutdown()
48
        {
49
            $this->behatKernelEventDispatcher->beforeShutdown($this);
50
            parent::shutdown();
51
            $this->behatKernelEventDispatcher->afterShutdown($this);
52
        }
53
    }
54
}
55