Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | 8 | public static function runAll() |
|
7 | { |
||
8 | 8 | self::checkSapiEnv(); |
|
9 | 8 | self::init(); |
|
10 | 8 | self::parseCommand(); |
|
11 | 8 | self::daemonize(); |
|
12 | 8 | self::initWorkers(); |
|
13 | 8 | self::installSignal(); |
|
14 | 8 | self::saveMasterPid(); |
|
15 | 8 | self::forkWorkers(); |
|
16 | // @codeCoverageIgnoreStart |
||
17 | self::resetStd(); |
||
18 | self::monitorWorkers(); |
||
19 | // @codeCoverageIgnoreEnd |
||
20 | } // @codeCoverageIgnore |
||
21 | |||
32 |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state