Completed
Push — master ( 3657ae...e63a18 )
by Vladimir
02:34
created
src/Twig/BaseUrlFunction.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,13 +11,16 @@
 block discarded – undo
11 11
     {
12 12
         $globals = $env->getGlobals();
13 13
 
14
-        if ($assetPath instanceof JailObject) {
14
+        if ($assetPath instanceof JailObject)
15
+        {
15 16
             $assetPath = $assetPath->getPermalink();
16 17
         }
17
-        else if (is_array($assetPath)) {
18
+        else if (is_array($assetPath))
19
+        {
18 20
             $assetPath = $assetPath['permalink'];
19 21
         }
20
-        else if (is_null($assetPath)) {
22
+        else if (is_null($assetPath))
23
+        {
21 24
             $assetPath = '/';
22 25
         }
23 26
 
Please login to merge, or discard this patch.