| Total Complexity | 5 | 
| Total Lines | 59 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 22 | class OrderPositionDescriptionWidget extends Widget  | 
            ||
| 23 | { | 
            ||
| 24 | /**  | 
            ||
| 25 | * @var ServerOrderProduct|ServerOrderDedicatedProduct  | 
            ||
| 26 | */  | 
            ||
| 27 | public $position;  | 
            ||
| 28 | |||
| 29 | public function init()  | 
            ||
| 30 |     { | 
            ||
| 31 | $this->view->registerCss(<<<CSS  | 
            ||
| 32 |             .cart-item .dl-config { display: none; } | 
            ||
| 33 | |||
| 34 |             dl.dl-config { | 
            ||
| 35 | padding: 1em 0 0;  | 
            ||
| 36 | display: flex;  | 
            ||
| 37 | flex-flow: row wrap;  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 |             dl.dl-config dt { | 
            ||
| 41 | flex-basis: 16%;  | 
            ||
| 42 | text-align: left;  | 
            ||
| 43 | width: auto;  | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 |             dl.dl-config dt::after { | 
            ||
| 47 | content: ":";  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 |             dl.dl-config dd { | 
            ||
| 51 | flex-basis: 70%;  | 
            ||
| 52 | flex-grow: 1;  | 
            ||
| 53 | margin: 0;  | 
            ||
| 54 | padding: 0;  | 
            ||
| 55 | }  | 
            ||
| 56 | CSS  | 
            ||
| 57 | , [], __CLASS__ . '_client_css');  | 
            ||
| 58 | }  | 
            ||
| 59 | |||
| 60 |     /** {@inheritdoc} */ | 
            ||
| 61 | public function run()  | 
            ||
| 62 |     { | 
            ||
| 63 |         return $this->render('_orderPositionDescription', ['position' => $this->position]); | 
            ||
| 64 | }  | 
            ||
| 65 | |||
| 66 | /**  | 
            ||
| 67 | * @param array $items  | 
            ||
| 68 | * @return string  | 
            ||
| 69 | */  | 
            ||
| 70 | public function formatConfig(array $items = []): string  | 
            ||
| 81 | }  | 
            ||
| 82 | }  | 
            ||
| 83 |