| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php namespace VojtaSvoboda\UserPdfExport\Updates; | ||
| 10 | public function run() | ||
| 11 |     { | ||
| 12 |         if (!Schema::hasTable('renatio_dynamicpdf_pdf_layouts')) { | ||
| 13 | return false; | ||
| 14 | } | ||
| 15 | |||
| 16 | Layout::create([ | ||
| 17 | 'name' => 'Users PDF layout', | ||
| 18 | 'code' => 'rainlab::user', | ||
| 19 | 'content_html' => File::get(__DIR__ . '/templates/layout.htm'), | ||
| 20 | 'content_css' => File::get(__DIR__ . '/templates/style.css'), | ||
| 21 | ]); | ||
| 22 | } | ||
| 23 | } | ||
| 24 |