Completed
Push — master ( 973e33...58fb89 )
by Алексей
04:55
created
src/helpers.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,13 @@
 block discarded – undo
12 12
      */
13 13
     function array_get($array, $key, $default = null)
14 14
     {
15
-        if (is_null($key)) return $array;
15
+        if (is_null($key)) {
16
+            return $array;
17
+        }
16 18
 
17
-        if (isset($array[$key])) return $array[$key];
19
+        if (isset($array[$key])) {
20
+            return $array[$key];
21
+        }
18 22
 
19 23
         foreach (explode('.', $key) as $segment)
20 24
         {
Please login to merge, or discard this patch.