Code Duplication    Length = 7-7 lines in 2 locations

src/class/observers/Basic.php 1 location

@@ 143-149 (lines=7) @@
140
     */
141
    protected function systemQuery()
142
    {
143
        if ($this->context instanceof AbstractActions === false) {
144
            throw new Exception(
145
                '"system query" event should have an AbstractActions class'
146
                .' into the context.',
147
                self::ERR_SYSTEM_QUERY_CONTEXT_CLASS
148
            );
149
        }
150
        
151
        $query = $this->context->getAssembledRequest();
152
        $error = $this->context->getLastErrorInfos();

src/class/observers/Explain.php 1 location

@@ 85-91 (lines=7) @@
82
     */
83
    protected function systemQuery()
84
    {
85
        if ($this->context instanceof AbstractActions === false) {
86
            throw new Exception(
87
                '"system query" event should have an AbstractActions class'
88
                .' into the context.',
89
                self::ERR_SYSTEM_QUERY_CONTEXT_CLASS
90
            );
91
        }
92
        
93
        if ($this->context instanceof Select === false) {
94
            return;