Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Xethron\MigrationsGenerator\Syntax; |
||
56 | protected function addDecorators($decorators) |
||
57 | { |
||
58 | $output = ''; |
||
59 | foreach ($decorators as $decorator) { |
||
60 | $output .= sprintf("->%s", $decorator); |
||
61 | // Do we need to tack on the parentheses? |
||
62 | if (strpos($decorator, '(') === false) { |
||
63 | $output .= '()'; |
||
64 | } |
||
65 | } |
||
66 | return $output; |
||
67 | } |
||
68 | } |
||
69 |