Code Duplication    Length = 3-3 lines in 3 locations

src/Adapter/GD.php 1 location

@@ 154-156 (lines=3) @@
151
            }
152
        }
153
154
        if (strtolower($orientation) === "landscape") {
155
            list($size[2], $size[3]) = array($size[3], $size[2]);
156
        }
157
158
        $this->_dompdf = $dompdf;
159

src/Adapter/CPDF.php 1 location

@@ 192-194 (lines=3) @@
189
            $size = self::$PAPER_SIZES["letter"];
190
        }
191
192
        if (mb_strtolower($orientation) === "landscape") {
193
            list($size[2], $size[3]) = array($size[3], $size[2]);
194
        }
195
196
        $this->_dompdf = $dompdf;
197

src/Adapter/PDFLib.php 1 location

@@ 179-181 (lines=3) @@
176
            $size = self::$PAPER_SIZES["letter"];
177
        }
178
179
        if (mb_strtolower($orientation) === "landscape") {
180
            list($size[2], $size[3]) = array($size[3], $size[2]);
181
        }
182
183
        $this->_width = $size[2] - $size[0];
184
        $this->_height = $size[3] - $size[1];