1 | <?php |
||
2 | /** |
||
3 | * This file is part of the O2System Framework package. |
||
4 | * |
||
5 | * For the full copyright and license information, please view the LICENSE |
||
6 | * file that was distributed with this source code. |
||
7 | * |
||
8 | * @author Steeve Andrian Salim |
||
9 | * @copyright Copyright (c) Steeve Andrian Salim |
||
10 | */ |
||
11 | |||
12 | // ------------------------------------------------------------------------ |
||
13 | |||
14 | namespace O2System\Framework\Cli; |
||
15 | |||
16 | // ------------------------------------------------------------------------ |
||
17 | |||
18 | use O2System\Kernel\Cli\Writers\Format; |
||
19 | |||
20 | /** |
||
21 | * Class App |
||
22 | * |
||
23 | * Command line interface (cli) application commands container class. |
||
24 | * |
||
25 | * @package O2System\Framework\Cli |
||
26 | */ |
||
27 | class App extends \O2System\Kernel\Cli\App |
||
28 | { |
||
29 | /** |
||
30 | * App::optionVersion |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function optionVersion() |
||
35 | { |
||
36 | if (property_exists($this, 'version')) { |
||
37 | if ( ! empty($this->version)) { |
||
38 | output()->write( |
||
0 ignored issues
–
show
|
|||
39 | (new Format()) |
||
40 | ->setString($this->name . ' v' . $this->version . ' Copyright (c) 2011 - ' . date('Y') . ' Steeve Andrian Salim') |
||
41 | ->setNewLinesAfter(1) |
||
42 | ); |
||
43 | |||
44 | output()->write( |
||
45 | (new Format()) |
||
46 | ->setIndent(2) |
||
47 | ->setString('this framework is trademark of Steeve Andrian Salim') |
||
48 | ->setNewLinesAfter(1) |
||
49 | ); |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 | } |
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.