These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * Travis CI plugin for HiDev |
||
4 | * |
||
5 | * @link https://github.com/hiqdev/hidev-travis |
||
6 | * @package hidev-travis |
||
7 | * @license BSD-3-Clause |
||
8 | * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/) |
||
9 | */ |
||
10 | |||
11 | namespace hidev\travis\console; |
||
12 | |||
13 | /** |
||
14 | * Travis CI. |
||
15 | */ |
||
16 | class TravisController extends \hidev\base\Controller |
||
17 | { |
||
18 | public $defaultAction = 'run'; |
||
19 | |||
20 | public function actionRun() |
||
21 | { |
||
22 | $this->runActions(['before-install', 'install']); |
||
23 | $res = $this->runActions(['before-script', 'script']); |
||
24 | $this->runAction(static::isNotOk($res) ? 'after-failure' : 'after-success'); |
||
0 ignored issues
–
show
|
|||
25 | $this->runAction('after-script'); |
||
26 | |||
27 | return $res; |
||
28 | } |
||
29 | |||
30 | public function actionBeforeInstall() |
||
31 | { |
||
32 | return $this->runRequests($this->getComponent()->before_install); |
||
33 | } |
||
34 | |||
35 | public function actionInstall() |
||
36 | { |
||
37 | return $this->runRequests($this->getComponent()->install); |
||
38 | } |
||
39 | |||
40 | public function actionBeforeScript() |
||
41 | { |
||
42 | return $this->runRequests($this->getComponent()->before_script); |
||
43 | } |
||
44 | |||
45 | public function actionScript() |
||
46 | { |
||
47 | return $this->runRequests($this->getComponent()->script); |
||
48 | } |
||
49 | |||
50 | public function actionAfterSuccess() |
||
51 | { |
||
52 | return $this->runRequests($this->getComponent()->after_success); |
||
53 | } |
||
54 | |||
55 | public function actionAfterFailure() |
||
56 | { |
||
57 | return $this->runRequests($this->getComponent()->after_failure); |
||
58 | } |
||
59 | |||
60 | public function actionAfterScript() |
||
61 | { |
||
62 | return $this->runRequests($this->getComponent()->after_script); |
||
63 | } |
||
64 | |||
65 | public function getComponent() |
||
66 | { |
||
67 | return $this->take('travis'); |
||
68 | } |
||
69 | } |
||
70 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.