GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 926faa...eb8df6 )
by Florian
04:05
created

Configuration::getConfigTreeBuilder()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 30
rs 8.8571
cc 1
eloc 26
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Stinger Enity Search package.
5
 *
6
 * (c) Oliver Kotte <[email protected]>
7
 * (c) Florian Meyer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
namespace StingerSoft\EntitySearchBundle\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
/**
18
 * This is the class that validates and merges configuration from your app/config files
19
 *
20
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
21
 */
22
class Configuration implements ConfigurationInterface {
23
24
	/**
25
	 *
26
	 * {@inheritDoc}
27
	 *
28
	 */
29
	public function getConfigTreeBuilder() {
30
		$treeBuilder = new TreeBuilder();
31
		$root = $treeBuilder->root('stinger_soft_search');
32
		// @formatter:off
33
		$root->children()
34
			->arrayNode('types')
35
			->useAttributeAsKey('name')
36
			->prototype('array')
37
				->children()
38
					->arrayNode('mappings')
39
						->useAttributeAsKey('name')
40
						->cannotBeEmpty()
41
						->prototype('array')
42
							->children()
43
								->scalarNode('propertyPath')->defaultValue(false)->end()
44
							->end()
45
						->end()
46
					->end()
47
					->arrayNode('persistence')
48
						->children()
49
							->scalarNode('model')->end()
50
						->end()
51
					->end()
52
				->end()
53
			->end()
54
		->end();
55
		// @formatter:on
56
		
57
		return $treeBuilder;
58
	}
59
}
60