Passed
Push — master ( f3fe09...4b8aef )
by Aimeos
04:04
created
src/helpers.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@  discard block
 block discarded – undo
8 8
 
9 9
 
10 10
 if (! function_exists('airoute')) {
11
-    /**
12
-     * Generate the URL to a named route.
13
-     *
14
-     * @param  array|string  $name
15
-     * @param  mixed  $parameters
16
-     * @param  bool  $absolute
17
-     * @return string
18
-     */
19
-    function airoute( $name, $parameters = [], $absolute = true )
20
-    {
11
+	/**
12
+	 * Generate the URL to a named route.
13
+	 *
14
+	 * @param  array|string  $name
15
+	 * @param  mixed  $parameters
16
+	 * @param  bool  $absolute
17
+	 * @return string
18
+	 */
19
+	function airoute( $name, $parameters = [], $absolute = true )
20
+	{
21 21
 		if( $current = Route::current() )
22 22
 		{
23 23
 			$parameters['site'] = $current->parameter( 'site', Request::get( 'site' ) );
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 			$parameters['currency'] = $current->parameter( 'currency', Request::get( 'currency' ) );
26 26
 		}
27 27
 
28
-        return app('url')->route( $name, array_filter( $parameters ), $absolute );
29
-    }
28
+		return app('url')->route( $name, array_filter( $parameters ), $absolute );
29
+	}
30 30
 }
31 31
 
32 32
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 
10
-if (! function_exists('airoute')) {
10
+if( !function_exists( 'airoute' ) ) {
11 11
     /**
12 12
      * Generate the URL to a named route.
13 13
      *
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 			$parameters['currency'] = $current->parameter( 'currency', Request::get( 'currency' ) );
26 26
 		}
27 27
 
28
-        return app('url')->route( $name, array_filter( $parameters ), $absolute );
28
+        return app( 'url' )->route( $name, array_filter( $parameters ), $absolute );
29 29
     }
30 30
 }
31 31
 
Please login to merge, or discard this patch.