Code Duplication    Length = 7-7 lines in 2 locations

src/Imdb.php 2 locations

@@ 131-137 (lines=7) @@
128
            $oInfo->runtime = null === $sRuntime ? null : (int)$sRuntime;
129
130
            $tmp = [];
131
            foreach ($oData->directors_summary ?? [] as $oDir) {
132
                $oPerson            = $oDir->name;
133
                $oImage             = isset($oPerson->image) ? new Image($oPerson->image->url, $oPerson->image->width,
134
                    $oPerson->image->height) : null;
135
                $oInfo->directors[] = new Person($oPerson->nconst, $oPerson->name, $oImage);
136
                $tmp[]              = $oPerson->name;
137
            }
138
            $oInfo->directorsDisplay = implode(', ', $tmp);
139
140
            $tmp = [];
@@ 141-147 (lines=7) @@
138
            $oInfo->directorsDisplay = implode(', ', $tmp);
139
140
            $tmp = [];
141
            foreach ($oData->writers_summary ?? [] as $oDir) {
142
                $oPerson          = $oDir->name;
143
                $oImage           = isset($oPerson->image) ? new Image($oPerson->image->url, $oPerson->image->width,
144
                    $oPerson->image->height) : null;
145
                $oInfo->writers[] = new Person($oPerson->nconst, $oPerson->name, $oImage);
146
                $tmp[]            = $oPerson->name;
147
            }
148
            $oInfo->writersDisplay = implode(', ', $tmp);
149
150
            foreach ($oData->photos ?? [] as $photo) {