Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | private function checkDarwin() |
||
51 | { |
||
52 | if ('Darwin' !== PHP_OS) { |
||
53 | return false; |
||
54 | } |
||
55 | |||
56 | // Apply hack to force process into background as it keeps sticky on Darwin. |
||
57 | // Dunno why but as I lack the hardware and knowledge of said OS, this hack will have to do. |
||
58 | $this->getAutoConfig()->setForceToBackground(true); |
||
59 | $this->markSuccess( |
||
60 | 'Mac OS X (Darwin) detected, force-to-background-workaround enabled.' |
||
61 | ); |
||
62 | |||
63 | return true; |
||
64 | } |
||
65 | } |
||
66 |