| Conditions | 4 |
| Paths | 5 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | protected function instantiate(?array $appAttributes): ?App |
||
| 55 | { |
||
| 56 | if (! $appAttributes) { |
||
| 57 | return null; |
||
| 58 | } |
||
| 59 | |||
| 60 | $app = new App( |
||
| 61 | $appAttributes['id'], |
||
| 62 | $appAttributes['key'], |
||
| 63 | $appAttributes['secret'] |
||
| 64 | ); |
||
| 65 | |||
| 66 | if (isset($appAttributes['name'])) { |
||
| 67 | $app->setName($appAttributes['name']); |
||
| 68 | } |
||
| 69 | |||
| 70 | if (isset($appAttributes['host'])) { |
||
| 71 | $app->setHost($appAttributes['host']); |
||
| 72 | } |
||
| 73 | |||
| 74 | $app |
||
| 75 | ->enableClientMessages($appAttributes['enable_client_messages']) |
||
| 76 | ->enableStatistics($appAttributes['enable_statistics']); |
||
| 77 | |||
| 78 | return $app; |
||
| 79 | } |
||
| 80 | } |
||
| 81 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.