Completed
Push — master ( caa478...b65f01 )
by Manuel
02:41
created
app/Utilities/mix.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@
 block discarded – undo
4 4
 // mix('js/app.js')
5 5
 function mix($path, $json = false, $shouldHotReload = false)
6 6
 {
7
-    if (! $json) static $json;
8
-    if (! $shouldHotReload) static $shouldHotReload;
7
+	if (! $json) static $json;
8
+	if (! $shouldHotReload) static $shouldHotReload;
9 9
 
10
-    if (! $json) {
11
-        $manifestPath = public_path('manifest.json');
12
-        $shouldHotReload = file_exists(public_path('hot'));
10
+	if (! $json) {
11
+		$manifestPath = public_path('manifest.json');
12
+		$shouldHotReload = file_exists(public_path('hot'));
13 13
 
14
-        if (! file_exists($manifestPath)) {
15
-            throw new Exception(
16
-                'The Laravel Mix manifest file does not exist. ' .
17
-                'Please run "npm run webpack" and try again.'
18
-            );
19
-        }
14
+		if (! file_exists($manifestPath)) {
15
+			throw new Exception(
16
+				'The Laravel Mix manifest file does not exist. ' .
17
+				'Please run "npm run webpack" and try again.'
18
+			);
19
+		}
20 20
 
21
-        $json = json_decode(file_get_contents($manifestPath), true);
22
-    }
21
+		$json = json_decode(file_get_contents($manifestPath), true);
22
+	}
23 23
 
24
-    $path = pathinfo($path, PATHINFO_BASENAME);
24
+	$path = pathinfo($path, PATHINFO_BASENAME);
25 25
 
26
-    if (! array_key_exists($path, $json)) {
27
-        throw new Exception(
28
-            'Unknown file path. Please check your requested ' .
29
-            'webpack.mix.js output path, and try again.'
30
-        );
31
-    }
26
+	if (! array_key_exists($path, $json)) {
27
+		throw new Exception(
28
+			'Unknown file path. Please check your requested ' .
29
+			'webpack.mix.js output path, and try again.'
30
+		);
31
+	}
32 32
 
33
-    return $shouldHotReload
34
-        ? "http://localhost:8080{$json[$path]}"
35
-        : url($json[$path]);
33
+	return $shouldHotReload
34
+		? "http://localhost:8080{$json[$path]}"
35
+		: url($json[$path]);
36 36
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@  discard block
 block discarded – undo
4 4
 // mix('js/app.js')
5 5
 function mix($path, $json = false, $shouldHotReload = false)
6 6
 {
7
-    if (! $json) static $json;
8
-    if (! $shouldHotReload) static $shouldHotReload;
7
+    if (!$json) static $json;
8
+    if (!$shouldHotReload) static $shouldHotReload;
9 9
 
10
-    if (! $json) {
10
+    if (!$json) {
11 11
         $manifestPath = public_path('manifest.json');
12 12
         $shouldHotReload = file_exists(public_path('hot'));
13 13
 
14
-        if (! file_exists($manifestPath)) {
14
+        if (!file_exists($manifestPath)) {
15 15
             throw new Exception(
16
-                'The Laravel Mix manifest file does not exist. ' .
16
+                'The Laravel Mix manifest file does not exist. '.
17 17
                 'Please run "npm run webpack" and try again.'
18 18
             );
19 19
         }
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
     $path = pathinfo($path, PATHINFO_BASENAME);
25 25
 
26
-    if (! array_key_exists($path, $json)) {
26
+    if (!array_key_exists($path, $json)) {
27 27
         throw new Exception(
28
-            'Unknown file path. Please check your requested ' .
28
+            'Unknown file path. Please check your requested '.
29 29
             'webpack.mix.js output path, and try again.'
30 30
         );
31 31
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,12 @@
 block discarded – undo
4 4
 // mix('js/app.js')
5 5
 function mix($path, $json = false, $shouldHotReload = false)
6 6
 {
7
-    if (! $json) static $json;
8
-    if (! $shouldHotReload) static $shouldHotReload;
7
+    if (! $json) {
8
+    	static $json;
9
+    }
10
+    if (! $shouldHotReload) {
11
+    	static $shouldHotReload;
12
+    }
9 13
 
10 14
     if (! $json) {
11 15
         $manifestPath = public_path('manifest.json');
Please login to merge, or discard this patch.