Passed
Branch master (ea3a4f)
by Enjoys
02:00
created
src/Parse/Json.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
         $result = \json_decode(
49 49
             $json,
50 50
             true,
51
-            (int)$this->getOption('depth', 512),
52
-            (int)$this->getOption('options', 0)
51
+            (int) $this->getOption('depth', 512),
52
+            (int) $this->getOption('options', 0)
53 53
         );
54 54
         
55 55
         //Clear the most recent error
Please login to merge, or discard this patch.
src/Parse/YAML.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     protected function parseString(string $yaml)
48 48
     {
49 49
         try {
50
-            return Symfony\Yaml::parse($yaml, (int)$this->getOption('flags', 0));
50
+            return Symfony\Yaml::parse($yaml, (int) $this->getOption('flags', 0));
51 51
         } catch (Symfony\Exception\ParseException $e) {
52 52
             $this->logger->error($e->getMessage());
53 53
             return null;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     protected function parseFile(string $filename)
64 64
     {
65 65
         try {
66
-            return Symfony\Yaml::parseFile($filename, (int)$this->getOption('flags', 0));
66
+            return Symfony\Yaml::parseFile($filename, (int) $this->getOption('flags', 0));
67 67
         } catch (Symfony\Exception\ParseException $e) {
68 68
             $this->logger->error($e->getMessage());
69 69
             return null;
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function addConfig($params, array $options = [], string $parseClass = self::INI, bool $replace = true): void
44 44
     {
45
-        $params = (array)$params;
45
+        $params = (array) $params;
46 46
 
47 47
         if (!class_exists($parseClass)) {
48 48
             throw new \Exception(sprintf('Not found parse class: %s', $parseClass));
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
                     $this->config[$namespace] = [];
94 94
                 }
95 95
                 if ($replace === true) {
96
-                    $this->config[$namespace] = array_merge((array)$this->config[$namespace], $result);
96
+                    $this->config[$namespace] = array_merge((array) $this->config[$namespace], $result);
97 97
                 } else {
98
-                    $this->config[$namespace] = array_merge($result, (array)$this->config[$namespace]);
98
+                    $this->config[$namespace] = array_merge($result, (array) $this->config[$namespace]);
99 99
                 }
100 100
             }
101 101
         }
Please login to merge, or discard this patch.