Code Duplication    Length = 4-4 lines in 2 locations

src/Plugin/CodeGenerator.php 2 locations

@@ 178-181 (lines=4) @@
175
                {
176
                    $this->sJsCode .= rtrim($sJsCode, " \n") . "\n";
177
                }
178
                if(($sJsReady = trim($xResponsePlugin->getScript())))
179
                {
180
                    $this->sJsReady .= trim($sJsReady, " \n") . "\n";
181
                }
182
            }
183
184
            $this->sJsReady = $this->xTemplate->render('jaxon::plugins/ready.js', [
@@ 189-192 (lines=4) @@
186
            ]);
187
            foreach($this->xPluginManager->getRequestPlugins() as $xRequestPlugin)
188
            {
189
                if(($sJsReady = trim($xRequestPlugin->getScript())))
190
                {
191
                    $this->sJsReady .= trim($sJsReady, " \n") . "\n";
192
                }
193
            }
194
195
            foreach($this->xPluginManager->getPackages() as $sPackageClass)