Passed
Push — main ( e408a5...255641 )
by Stefan
08:22
created
SKien/Config/AbstractConfig.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function getString(string $strPath, string $strDefault = '') : string
106 106
     {
107
-        return (string) $this->getValue($strPath, $strDefault);
107
+        return (string)$this->getValue($strPath, $strDefault);
108 108
     }
109 109
 
110 110
     /**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $value = $this->getValue($strPath, $bDefault);
141 141
         if (!is_bool($value)) {
142
-            $value = $this->boolFromString((string) $value, $bDefault);
142
+            $value = $this->boolFromString((string)$value, $bDefault);
143 143
         }
144 144
         return $value;
145 145
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function getDate(string $strPath, int $default = 0) : int
157 157
     {
158
-        $date = (string) $this->getValue($strPath, $default);
158
+        $date = (string)$this->getValue($strPath, $default);
159 159
         if (!ctype_digit($date)) {
160 160
             $dt = \DateTime::createFromFormat($this->strDateFormat, $date);
161 161
             $date = $default;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function getDateTime(string $strPath, int $default = 0) : int
185 185
     {
186
-        $date = (string) $this->getValue($strPath, $default);
186
+        $date = (string)$this->getValue($strPath, $default);
187 187
         if (!ctype_digit($date)) {
188 188
             $dt = \DateTime::createFromFormat($this->strDateTimeFormat, $date);
189 189
             $date = $default;
Please login to merge, or discard this patch.