Test Setup Failed
Push — master ( 909ed5...7bbbd5 )
by Georgi
02:38
created
src/Integration/Concerns/HasLinks.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	{
20 20
 		$defaultView = self::module()::view();
21 21
 		
22
-		$viewClass = is_a(static::class, ModuleView::class, true)? static::class: $defaultView;
22
+		$viewClass = is_a(static::class, ModuleView::class, true) ? static::class : $defaultView;
23 23
 		
24 24
 		if ($viewClass == $defaultView) $viewClass = null;
25 25
 		
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
 	final public static function moduleLink($module, $method = 'body', $args = [])
40 40
 	{
41
-		$alias = class_exists($module)? $module::alias(): $module;
41
+		$alias = class_exists($module) ? $module::alias() : $module;
42 42
 		
43 43
 		return url(implode('/', ['view', $alias, $method, self::encodeArgs($args)]));
44 44
 	}
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
 	 * @throws \Illuminate\Http\Exceptions\HttpResponseException
53 53
 	 */
54 54
 	final public static function decodeArgs($hash) {
55
-		if (! $hash) return [];
55
+		if (!$hash) return [];
56 56
 		
57 57
 		$args = session($hash);
58 58
 
59 59
 		if (is_null($args)) abort(419);
60 60
 		
61
-		return is_array($args)? $args: [$args];
61
+		return is_array($args) ? $args : [$args];
62 62
 	}
63 63
 	
64 64
 	/**
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 	 * @return string
69 69
 	 */
70 70
 	final public static function encodeArgs($args) {
71
-		$args = is_array($args)? $args: [$args];
71
+		$args = is_array($args) ? $args : [$args];
72 72
 		
73
-		if (! $args) return;
73
+		if (!$args) return;
74 74
 		
75 75
 		$hash = md5(serialize($args));
76 76
 		
Please login to merge, or discard this patch.