• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pixelpeter / laravel5-genderize-api-client / 15701686167

17 Jun 2025 08:06AM UTC coverage: 98.925%. Remained the same
15701686167

push

github

web-flow
Bump stefanzweifel/git-auto-commit-action from 5 to 6 (#25)

Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

92 of 93 relevant lines covered (98.92%)

13.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Models/GenderizeResponse.php
1
<?php
2

3
namespace Pixelpeter\Genderize\Models;
4

5
use Illuminate\Support\Collection;
6

7
class GenderizeResponse extends BaseModel
8
{
9
    protected $meta;
10

11
    protected $result;
12

13
    public function __construct($response)
9✔
14
    {
15
        $this->result = $this->setResult($response);
9✔
16
        $this->meta = $this->setMeta($response);
9✔
17
    }
9✔
18

19
    protected function setMeta($data)
9✔
20
    {
21
        return new Meta($data);
9✔
22
    }
23

24
    protected function setResult($response)
9✔
25
    {
26
        if (is_array($response->body)) {
9✔
27
            return $this->returnWithCollection($response);
3✔
28
        }
29

30
        return new Name($response->body);
6✔
31
    }
32

33
    protected function returnWithCollection($response)
3✔
34
    {
35
        $collection = new Collection;
3✔
36

37
        foreach ($response->body as $row) {
3✔
38
            $collection->push(new Name($row));
3✔
39
        }
40

41
        return $collection;
3✔
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc