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

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

Build:
DEFAULT BRANCH: master
Ran 30 Jan 2018 07:50AM UTC
Files 183
Run time 5s
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.092% (+0.03%) from 90.059%
2.3.6

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
```

2755 of 3058 relevant lines covered (90.09%)

102.2 hits per line

Source Files on job 1566.3 (2.3.6)
  • 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.3
  • e29265ee on github
  • Prev Job for 2.3.6 on master (#1564.3)
  • Next Job for 2.3.6 on master (#1567.3)
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