Code Duplication    Length = 8-8 lines in 2 locations

src/Filter/FixtureFilterAbstractFactory.php 1 location

@@ 114-121 (lines=8) @@
111
                throw new Exception\RuntimeException($errMsg);
112
            }
113
114
            if (!array_key_exists('name', $item)) {
115
                $errMsg = sprintf(
116
                    'Required parameter [%s][filters][%s][\'name\'] not found',
117
                    Module::CONFIG_KEY,
118
                    $index
119
                );
120
                throw new Exception\RuntimeException($errMsg);
121
            }
122
123
            if (!is_string($item['name'])) {
124
                $errMsg = sprintf(

src/Loader/FixtureLoaderAbstractFactory.php 1 location

@@ 107-114 (lines=8) @@
104
                throw new Exception\RuntimeException($errMsg);
105
            }
106
107
            if (!array_key_exists('name', $item)) {
108
                $errMsg = sprintf(
109
                    'Required parameter [%s][fixtures][%s][\'name\'] not found',
110
                    Module::CONFIG_KEY,
111
                    $index
112
                );
113
                throw new Exception\RuntimeException($errMsg);
114
            }
115
116
            if (!is_string($item['name'])) {
117
                $errMsg = sprintf(