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

sds / overcommit / 1566 / 2
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 30 Jan 2018 07:49AM UTC
Files 183
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jan 2018 07:47AM UTC coverage: 90.046% (+0.03%) from 90.013%
2.2

push

travis-ci

sds
Add PhpStan (PHP Static Code Analyser) PreCommit Hook

Added [PhpStan](https://github.com/phpstan/phpstan) PreCommit Hook.

**Example Files Change**

```
// app/foo.php
<?php

namespace App;

class Foo
{
    public function __construct($foo, $test)
    {
        $this->foo = $foo;
    }
}

// app/bar.php
<?php

namespace App;

class Bar
{
    public function __construct($foo)
    {
        $this->foo = $foo;
    }

    private function testMe()
    {
        return $this->hello;
    }
}
```

**Example Error Messages***

```
Running pre-commit hooks
Analysing PHP codes...............................[PhpStan] FAILED
Errors on modified lines:
/app/bar.php:9:Access to an undefined property App\Bar::$foo.
/app/bar.php:14:Access to an undefined property App\Bar::$hello.
/app/foo.php:7:Constructor of class App\Foo has an unused parameter $test.
/app/foo.php:9:Access to an undefined property App\Foo::$foo.

✗ One or more pre-commit hooks failed
```

2741 of 3044 relevant lines covered (90.05%)

102.18 hits per line

Source Files on job 1566.2 (2.2)
  • Tree
  • List 0
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1566
  • Travis Job 1566.2
  • e29265ee on github
  • Prev Job for 2.2 on master (#1564.2)
  • Next Job for 2.2 on master (#1567.2)
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