Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 17
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultCommands() 0 9 1
1
<?php
2
/**
3
 * This file is part of the Jira-CLI library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/console-helpers/jira-cli
9
 */
10
11
namespace ConsoleHelpers\JiraCLI;
12
13
14
use ConsoleHelpers\JiraCLI\Command\BackportCommand;
15
use ConsoleHelpers\JiraCLI\Command\ChangeLogCloneCommand;
16
use ConsoleHelpers\JiraCLI\Command\DownloadAttachmentCommand;
17
use ConsoleHelpers\ConsoleKit\Application as BaseApplication;
18
use ConsoleHelpers\JiraCLI\Command\VersionsCommand;
19
use Symfony\Component\Console\Command\Command;
20
21
class Application extends BaseApplication
22
{
23
24
	/**
25
	 * Initializes all the composer commands.
26
	 *
27
	 * @return Command[] An array of default Command instances.
28
	 */
29
	protected function getDefaultCommands()
30
	{
31
		$default_commands = parent::getDefaultCommands();
32
		$default_commands[] = new DownloadAttachmentCommand();
33
		$default_commands[] = new VersionsCommand();
34
		$default_commands[] = new BackportCommand();
35
		$default_commands[] = new ChangeLogCloneCommand();
36
37
		return $default_commands;
38
	}
39
40
}
41