Code Duplication    Length = 8-8 lines in 3 locations

source/FluidXml.php 3 locations

@@ 1220-1227 (lines=8) @@
1217
                // return $this->attachNodes($parent, $v->documentElement, $fn);
1218
        }
1219
1220
        protected function integerDomnodelistHandler($parent, $k, $v, $optionals, $fn)
1221
        {
1222
                if (! \is_int($k) || ! $v instanceof \DOMNodeList) {
1223
                        return false;
1224
                }
1225
1226
                return $this->attachNodes($parent, $v, $fn);
1227
        }
1228
1229
        protected function integerDomnodeHandler($parent, $k, $v, $optionals, $fn)
1230
        {
@@ 1229-1236 (lines=8) @@
1226
                return $this->attachNodes($parent, $v, $fn);
1227
        }
1228
1229
        protected function integerDomnodeHandler($parent, $k, $v, $optionals, $fn)
1230
        {
1231
                if (! \is_int($k) || ! $v instanceof \DOMNode) {
1232
                        return false;
1233
                }
1234
1235
                return $this->attachNodes($parent, $v, $fn);
1236
        }
1237
1238
        protected function integerSimplexmlHandler($parent, $k, $v, $optionals, $fn)
1239
        {
@@ 1256-1263 (lines=8) @@
1253
                return $this->attachNodes($parent, $v->dom()->documentElement, $fn);
1254
        }
1255
1256
        protected function integerFluidcontextHandler($parent, $k, $v, $optionals, $fn)
1257
        {
1258
                if (! \is_int($k) || ! $v instanceof FluidContext) {
1259
                        return false;
1260
                }
1261
1262
                return $this->attachNodes($parent, $v->asArray(), $fn);
1263
        }
1264
}
1265
1266
class FluidNamespace