Code Duplication    Length = 7-7 lines in 2 locations

src/Plugin/Manager.php 2 locations

@@ 231-237 (lines=7) @@
228
                // Register a function without options
229
                $this->register(Jaxon::USER_FUNCTION, $sFunction);
230
            }
231
            elseif(is_string($xKey) && is_array($xValue))
232
            {
233
                $sFunction = $xKey;
234
                $aOptions = $xValue;
235
                // Register a function with options
236
                $this->register(Jaxon::USER_FUNCTION, $sFunction, $aOptions);
237
            }
238
            else
239
            {
240
                continue;
@@ 255-261 (lines=7) @@
252
                // Register a class without options
253
                $this->register(Jaxon::CALLABLE_CLASS, $sClass);
254
            }
255
            elseif(is_string($xKey) && is_array($xValue))
256
            {
257
                $sClass = $xKey;
258
                $aOptions = $xValue;
259
                // Register a class with options
260
                $this->register(Jaxon::CALLABLE_CLASS, $sClass, $aOptions);
261
            }
262
            elseif(is_integer($xKey) && is_array($xValue))
263
            {
264
                // The directory path is required