| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | protected function configureGdaemon($ds) |
||
| 39 | { |
||
| 40 | if (is_int($ds)) { |
||
| 41 | $dedicatedServer = DedicatedServer::findOrFail($ds); |
||
| 42 | } else if ($ds instanceof DedicatedServer) { |
||
| 43 | $dedicatedServer = $ds; |
||
| 44 | } else { |
||
| 45 | throw new GameapException('Invalid type'); |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->gdaemonCommands->setConfig( |
||
| 49 | $dedicatedServer->gdaemonSettings() |
||
| 50 | ); |
||
| 66 | } |