Completed
Pull Request — develop (#77)
by Tony
13:46
created
app/Settings.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
      * Forget a key and all children
195 195
      * This cannot forget variables set in config.php
196 196
      *
197
-     * @param $key string Explicit key to forget
197
+     * @param string $key string Explicit key to forget
198 198
      */
199 199
     public function forget($key)
200 200
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         // Cannot remove from config
202 202
 
203 203
         $count = DbConfig::key($key)->count();
204
-        if($count == 1) {
204
+        if ($count == 1) {
205 205
             $this->flush($key);
206 206
         }
207 207
         else {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     {
261 261
         $var = $this->get($key);
262 262
 
263
-        if(is_array($var)) {
263
+        if (is_array($var)) {
264 264
             $this->forget($key);
265 265
             array_unshift($var, $value);
266 266
             $this->set($key, $var);
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     public function push($key, $value)
282 282
     {
283 283
         $var = $this->get($key);
284
-        if(is_array($var)) {
284
+        if (is_array($var)) {
285 285
             $var[] = $value;
286 286
             $this->set($key, $var);
287 287
         }
Please login to merge, or discard this patch.