Code Duplication    Length = 6-6 lines in 2 locations

modules/gateways/Invoice/lib/Invoice.class.php 1 location

@@ 188-193 (lines=6) @@
185
			echo $content;
186
		}else{
187
			//only load dompdf if nobody else has yet...
188
			if( ! defined('DOMPDF_DIR')){
189
				define('DOMPDF_ENABLE_REMOTE', TRUE);
190
				define('DOMPDF_ENABLE_JAVASCRIPT', FALSE);
191
				define('DOMPDF_ENABLE_CSS_FLOAT', TRUE);
192
				require_once(EE_THIRD_PARTY . 'dompdf/dompdf_config.inc.php');
193
			}
194
			$dompdf = new DOMPDF();
195
			$dompdf->load_html($content);
196
			$dompdf->render();

core/libraries/messages/messenger/EE_Pdf_messenger.class.php 1 location

@@ 346-351 (lines=6) @@
343
		$invoice_name = html_entity_decode( $this->_subject, ENT_QUOTES, "UTF-8");
344
345
		//only load dompdf if nobody else has yet...
346
		if( ! defined('DOMPDF_DIR')){
347
			define('DOMPDF_ENABLE_REMOTE', TRUE);
348
			define('DOMPDF_ENABLE_JAVASCRIPT', FALSE);
349
			define('DOMPDF_ENABLE_CSS_FLOAT', TRUE);
350
			require_once(EE_THIRD_PARTY . 'dompdf/dompdf_config.inc.php');
351
		}
352
		$dompdf = new DOMPDF();
353
		$dompdf->load_html($content);
354
		$dompdf->render();