Code Duplication    Length = 8-8 lines in 3 locations

source/FluidXml.php 3 locations

@@ 1226-1233 (lines=8) @@
1223
                // return $this->attachNodes($parent, $v->documentElement, $fn);
1224
        }
1225
1226
        protected function integerDomnodelistHandler($parent, $k, $v, $fn)
1227
        {
1228
                if (! \is_int($k) || ! $v instanceof \DOMNodeList) {
1229
                        return false;
1230
                }
1231
1232
                return $this->attachNodes($parent, $v, $fn);
1233
        }
1234
1235
        protected function integerDomnodeHandler($parent, $k, $v, $fn)
1236
        {
@@ 1235-1242 (lines=8) @@
1232
                return $this->attachNodes($parent, $v, $fn);
1233
        }
1234
1235
        protected function integerDomnodeHandler($parent, $k, $v, $fn)
1236
        {
1237
                if (! \is_int($k) || ! $v instanceof \DOMNode) {
1238
                        return false;
1239
                }
1240
1241
                return $this->attachNodes($parent, $v, $fn);
1242
        }
1243
1244
        protected function integerSimplexmlHandler($parent, $k, $v, $fn)
1245
        {
@@ 1262-1269 (lines=8) @@
1259
                return $this->attachNodes($parent, $v->dom()->documentElement, $fn);
1260
        }
1261
1262
        protected function integerFluidcontextHandler($parent, $k, $v, $fn)
1263
        {
1264
                if (! \is_int($k) || ! $v instanceof FluidContext) {
1265
                        return false;
1266
                }
1267
1268
                return $this->attachNodes($parent, $v->asArray(), $fn);
1269
        }
1270
}
1271
1272
class FluidNamespace