Passed
Push — develop ( d6706d...7ec088 )
by nguereza
10:59
created
src/FileLoader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      */
129 129
     protected function parse(string $env): array
130 130
     {
131
-        $environments = array_filter((array)preg_split('/(\/|\.)/', $env));
131
+        $environments = array_filter((array) preg_split('/(\/|\.)/', $env));
132 132
         array_unshift($environments, '');
133 133
 
134 134
         return $environments;
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 namespace Platine\Config;
50 50
 
51
-class FileLoader implements LoaderInterface
52
-{
51
+class FileLoader implements LoaderInterface {
53 52
     /**
54 53
      * The application base path to use for
55 54
      * configuration scanning
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
      * Create new instance of file loader
62 61
      * @param string $path the base path to use
63 62
      */
64
-    public function __construct(string $path)
65
-    {
63
+    public function __construct(string $path) {
66 64
         $this->path = rtrim($path, '/\\') . DIRECTORY_SEPARATOR;
67 65
     }
68 66
 
Please login to merge, or discard this patch.
src/LoaderInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
 
48 48
 namespace Platine\Config;
49 49
 
50
-interface LoaderInterface
51
-{
50
+interface LoaderInterface {
52 51
     /**
53 52
      * Load the configuration group for the given environment
54 53
      * @param  string $environment   the name of the environment
Please login to merge, or discard this patch.
src/Config.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      */
106 106
     public function get(string $key, mixed $default = null): mixed
107 107
     {
108
-        list($group, ) = $this->parseKey($key);
108
+        list($group,) = $this->parseKey($key);
109 109
         $this->load($group);
110 110
 
111 111
         return Arr::get($this->items, $key, $default);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * @template T
57 57
  * @implements ArrayAccess<string, mixed>
58 58
  */
59
-class Config implements ArrayAccess
60
-{
59
+class Config implements ArrayAccess {
61 60
     /**
62 61
      * The configuration loader to use
63 62
      * @var LoaderInterface
@@ -81,8 +80,7 @@  discard block
 block discarded – undo
81 80
      * @param LoaderInterface $loader the loader to use
82 81
      * @param string          $env    the name of the environment
83 82
      */
84
-    public function __construct(LoaderInterface $loader, string $env = '')
85
-    {
83
+    public function __construct(LoaderInterface $loader, string $env = '') {
86 84
         $this->loader = $loader;
87 85
         $this->env = $env;
88 86
     }
Please login to merge, or discard this patch.