Code Duplication    Length = 14-14 lines in 2 locations

core/EE_Registry.core.php 1 location

@@ 1067-1080 (lines=14) @@
1064
        }
1065
        $identifier = '';
1066
        $arguments = is_array($arguments) ? $arguments : array();
1067
        foreach ($arguments as $argument) {
1068
            switch (true) {
1069
                case is_object($argument) :
1070
                case $argument instanceof Closure :
1071
                    $identifier .= spl_object_hash($argument);
1072
                    break;
1073
                case is_array($argument) :
1074
                    $identifier .= $this->getIdentifierForArguments($argument);
1075
                    break;
1076
                default :
1077
                    $identifier .= $argument;
1078
                    break;
1079
            }
1080
        }
1081
        return $identifier;
1082
    }
1083

core/services/loaders/CachingLoader.php 1 location

@@ 191-204 (lines=14) @@
188
            return '';
189
        }
190
        $identifier = '';
191
        foreach ($arguments as $argument) {
192
            switch (true) {
193
                case is_object($argument) :
194
                case $argument instanceof Closure :
195
                    $identifier .= spl_object_hash($argument);
196
                    break;
197
                case is_array($argument) :
198
                    $identifier .= $this->getIdentifierForArguments($argument);
199
                    break;
200
                default :
201
                    $identifier .= $argument;
202
                    break;
203
            }
204
        }
205
        return $identifier;
206
    }
207