Completed
Push — master ( f7a064...f7d7f5 )
by Andrii
13:30
created

src/console/ScrutinizerController.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * Scrutinizer plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-scrutinizer
7
 * @package   hidev-scrutinizer
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\scrutinizer\console;
13
14
/**
15
 * Goal for Scrutinizer.
16
 */
17
class ScrutinizerController extends \hidev\base\Controller
18
{
19
    public function actionUploadCoverage()
20
    {
21
        $lang = $this->take('package')->getLanguage();
22
23
        return $this->runActions(["upload-$lang-coverage"]);
0 ignored issues
show
The method runActions() does not exist on hidev\scrutinizer\console\ScrutinizerController. Did you maybe mean actions()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
24
    }
25
26
    public function actionUploadPhpCoverage()
27
    {
28
        return $this->passthru('php-ocular', ['code-coverage:upload', '--format=php-clover', 'coverage.clover']);
29
    }
30
31
    public function actionUploadPythonCoverage()
32
    {
33
        return $this->passthru('python-ocular', ['--data-file', '.coverage']);
34
    }
35
}
36