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

sds / overcommit / 1566
91%

Build:
DEFAULT BRANCH: master
Ran 30 Jan 2018 07:49AM UTC
Jobs 4
Files 183
Run time 18s
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

pending completion
1566

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%)

407.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1566.1 (2.1) 30 Jan 2018 07:50AM UTC 0
90.33
Travis Job 1566.1
2 1566.2 (2.2) 30 Jan 2018 07:49AM UTC 0
90.05
Travis Job 1566.2
3 1566.3 (2.3.6) 30 Jan 2018 07:50AM UTC 0
90.09
Travis Job 1566.3
4 1566.4 (2.4.3) 30 Jan 2018 07:49AM UTC 0
90.09
Travis Job 1566.4
Source Files on build 1566
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1566
  • e29265ee on github
  • Prev Build on master (#1564)
  • Next Build on master (#1567)
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