|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\Service; |
| 4 | + |
| 5 | +/** |
| 6 | + * A small class that generates a complement. |
| 7 | + * |
| 8 | + * @author Tobias Nyholm <[email protected]> |
| 9 | + */ |
| 10 | +class ComplementGenerator |
| 11 | +{ |
| 12 | + /** |
| 13 | + * @return string |
| 14 | + */ |
| 15 | + public function getPullRequestComplement() |
| 16 | + { |
| 17 | + $data = [ |
| 18 | + 'Cool. Good work.', |
| 19 | + 'I like what you have done here.', |
| 20 | + 'I like what you have done here. Keep up the good work.', |
| 21 | + 'I did a quick review of this PR, I think most things looks good.', |
| 22 | + 'I had a quick look at this PR, I think it is alright.', |
| 23 | + 'Wow, interesting approach.', |
| 24 | + 'Cool, it looks like you have quite a talent.', |
| 25 | + 'I appreciate you submitting this PR.', |
| 26 | + 'Well done!, Im impressed by this PR.', |
| 27 | + 'Nice work here, I this makes me happy.', |
| 28 | + 'Haha, I was thinking of doing this exact same thing. =)', |
| 29 | + 'This is.. this is amazing. Thank you!', |
| 30 | + 'Excellent, just like I would have done it.', |
| 31 | + 'You, my fried, deserve a BIG HUG for making this PR.', |
| 32 | + 'I didn\'t know that was capable of this emotion. I really really like reviewing this PR. Well done.', |
| 33 | + 'I see that more good work is coming your way.', |
| 34 | + 'Excellent, keep up the good work.', |
| 35 | + 'Two days ago, I was sitting at my usual spot at the top of Big Ben, I was thinking that we really needed this. And now, here you are with a PR. =)', |
| 36 | + 'Great work. I told my friends about this PR, they too were impressed.', |
| 37 | + ]; |
| 38 | + |
| 39 | + return $data[array_rand($data)]; |
| 40 | + } |
| 41 | +} |
0 commit comments