Passed
Push — master ( 882871...6b9e82 )
by Alain
02:19
created
src/ConfigTrait.php 1 patch
Indentation   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Config Trait
4
- *
5
- * @package   BrightNucleus\Config
6
- * @author    Alain Schlesser <[email protected]>
7
- * @license   GPL-2.0+
8
- * @link      http://www.brightnucleus.com/
9
- * @copyright 2016 Alain Schlesser, Bright Nucleus
10
- */
3
+	 * Config Trait
4
+	 *
5
+	 * @package   BrightNucleus\Config
6
+	 * @author    Alain Schlesser <[email protected]>
7
+	 * @license   GPL-2.0+
8
+	 * @link      http://www.brightnucleus.com/
9
+	 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
+	 */
11 11
 
12 12
 namespace BrightNucleus\Config;
13 13
 
@@ -16,84 +16,84 @@  discard block
 block discarded – undo
16 16
 trait ConfigTrait
17 17
 {
18 18
 
19
-    /**
20
-     * Reference to the Config object.
21
-     *
22
-     * @since 0.1.2
23
-     *
24
-     * @var ConfigInterface
25
-     */
26
-    protected $config;
19
+	/**
20
+	 * Reference to the Config object.
21
+	 *
22
+	 * @since 0.1.2
23
+	 *
24
+	 * @var ConfigInterface
25
+	 */
26
+	protected $config;
27 27
 
28
-    /**
29
-     * Process the passed-in configuration file.
30
-     *
31
-     * @since 0.1.2
32
-     *
33
-     * @param ConfigInterface $config The Config to process.
34
-     */
35
-    protected function processConfig(ConfigInterface $config)
36
-    {
37
-        $this->config = $config;
38
-    }
28
+	/**
29
+	 * Process the passed-in configuration file.
30
+	 *
31
+	 * @since 0.1.2
32
+	 *
33
+	 * @param ConfigInterface $config The Config to process.
34
+	 */
35
+	protected function processConfig(ConfigInterface $config)
36
+	{
37
+		$this->config = $config;
38
+	}
39 39
 
40
-    /**
41
-     * Check whether the Config has a specific key.
42
-     *
43
-     * To get a value several levels deep, add the keys for each level as a comma-separated list.
44
-     *
45
-     * @since 0.1.2
46
-     * @since 0.1.5 Accepts list of keys.
47
-     *
48
-     * @param string ... List of keys.
49
-     * @return bool Whether the key is known.
50
-     */
51
-    protected function hasConfigKey()
52
-    {
53
-        $keys = func_get_args();
40
+	/**
41
+	 * Check whether the Config has a specific key.
42
+	 *
43
+	 * To get a value several levels deep, add the keys for each level as a comma-separated list.
44
+	 *
45
+	 * @since 0.1.2
46
+	 * @since 0.1.5 Accepts list of keys.
47
+	 *
48
+	 * @param string ... List of keys.
49
+	 * @return bool Whether the key is known.
50
+	 */
51
+	protected function hasConfigKey()
52
+	{
53
+		$keys = func_get_args();
54 54
 
55
-        return call_user_func_array([$this->config, 'hasKey'], $keys);
56
-    }
55
+		return call_user_func_array([$this->config, 'hasKey'], $keys);
56
+	}
57 57
 
58
-    /**
59
-     * Get the Config value for a specific key.
60
-     *
61
-     * To get a value several levels deep, add the keys for each level as a comma-separated list.
62
-     *
63
-     * @since 0.1.2
64
-     * @since 0.1.5 Accepts list of keys.
65
-     *
66
-     * @param string ... List of keys.
67
-     * @return mixed Value of the key.
68
-     */
69
-    protected function getConfigKey()
70
-    {
71
-        $keys = func_get_args();
58
+	/**
59
+	 * Get the Config value for a specific key.
60
+	 *
61
+	 * To get a value several levels deep, add the keys for each level as a comma-separated list.
62
+	 *
63
+	 * @since 0.1.2
64
+	 * @since 0.1.5 Accepts list of keys.
65
+	 *
66
+	 * @param string ... List of keys.
67
+	 * @return mixed Value of the key.
68
+	 */
69
+	protected function getConfigKey()
70
+	{
71
+		$keys = func_get_args();
72 72
 
73
-        return call_user_func_array([$this->config, 'getKey'], $keys);
74
-    }
73
+		return call_user_func_array([$this->config, 'getKey'], $keys);
74
+	}
75 75
 
76
-    /**
77
-     * Get a (multi-dimensional) array of all the configuration settings.
78
-     *
79
-     * @since 0.1.4
80
-     *
81
-     * @return array All the configuration settings.
82
-     */
83
-    protected function getConfigArray()
84
-    {
85
-        return $this->config->getAll();
86
-    }
76
+	/**
77
+	 * Get a (multi-dimensional) array of all the configuration settings.
78
+	 *
79
+	 * @since 0.1.4
80
+	 *
81
+	 * @return array All the configuration settings.
82
+	 */
83
+	protected function getConfigArray()
84
+	{
85
+		return $this->config->getAll();
86
+	}
87 87
 
88
-    /**
89
-     * Get an array of all the keys that are known by the Config.
90
-     *
91
-     * @since 0.1.2
92
-     *
93
-     * @return array Array of strings containing all the keys.
94
-     */
95
-    protected function getConfigKeys()
96
-    {
97
-        return $this->config->getKeys();
98
-    }
88
+	/**
89
+	 * Get an array of all the keys that are known by the Config.
90
+	 *
91
+	 * @since 0.1.2
92
+	 *
93
+	 * @return array Array of strings containing all the keys.
94
+	 */
95
+	protected function getConfigKeys()
96
+	{
97
+		return $this->config->getKeys();
98
+	}
99 99
 }
Please login to merge, or discard this patch.