| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace FlatPlan\Components; |
||
| 26 | public function updateStyles($role) |
||
| 27 | { |
||
| 28 | $this->layout = $role . ucfirst($this->layout); |
||
| 29 | $this->style = $role . ucfirst($this->style); |
||
| 30 | $this->textStyle = $role . ucfirst($this->textStyle); |
||
| 31 | |||
| 32 | if (isset($this->components)) { |
||
| 33 | foreach ($this->components as $component) { |
||
| 34 | $component->updateStyles($role); |
||
| 35 | } |
||
| 44 |