The doc-type array[\BeyondCode\Larave...ckets\AppProviders\App] could not be parsed: Expected "]" at position 2, but found "\BeyondCode\LaravelWebSockets\AppProviders\App". (view supported doc-types)
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.
Loading history...
18
public function all(): array
19
{
20
return $this->apps
21
->map(function (array $appAttributes) {
22
return $this->instanciate($appAttributes);
23
})
24
->toArray();
25
}
26
27
public function findById($appId): ?App
28
{
29
$appAttributes = $this
30
->apps
31
->firstWhere('id', $appId);
32
33
return $this->instanciate($appAttributes);
34
}
35
36
public function findByKey(string $appKey): ?App
37
{
38
$appAttributes = $this
39
->apps
40
->firstWhere('key', $appKey);
41
42
return $this->instanciate($appAttributes);
43
}
44
45
public function findBySecret(string $appSecret): ?App
46
{
47
$appAttributes = $this
48
->apps
49
->firstWhere('secret', $appSecret);
50
51
return $this->instanciate($appAttributes);
52
}
53
54
protected function instanciate(?array $appAttributes): ?App
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.