Completed
Pull Request — devel (#145)
by Litera
05:12
created
app/helpers.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -33,52 +33,52 @@
 block discarded – undo
33 33
 }
34 34
 
35 35
 if(!function_exists('webpackManifest')) {
36
-    /**
37
-     * Get object from manifest.json
38
-     *
39
-     * @return string
40
-     */
41
-    function webpackManifest(string $name = null) {
42
-        $manifestPath = realpath(__DIR__ . '/../www/manifest.json');
43
-        $manifest = json_decode(file_get_contents($manifestPath), true);
36
+	/**
37
+	 * Get object from manifest.json
38
+	 *
39
+	 * @return string
40
+	 */
41
+	function webpackManifest(string $name = null) {
42
+		$manifestPath = realpath(__DIR__ . '/../www/manifest.json');
43
+		$manifest = json_decode(file_get_contents($manifestPath), true);
44 44
 
45
-        if ($name && array_key_exists($name, $manifest)) {
46
-            $manifest = $manifest[$name];
47
-        }
45
+		if ($name && array_key_exists($name, $manifest)) {
46
+			$manifest = $manifest[$name];
47
+		}
48 48
 
49
-        return $manifest;
50
-    }
49
+		return $manifest;
50
+	}
51 51
 }
52 52
 
53 53
 if(!function_exists('mainCss')) {
54
-    /**
55
-     * Get main css file from manifest.json
56
-     *
57
-     * @return string
58
-     */
59
-    function mainCss() {
60
-        return webpackManifest('main.css');
61
-    }
54
+	/**
55
+	 * Get main css file from manifest.json
56
+	 *
57
+	 * @return string
58
+	 */
59
+	function mainCss() {
60
+		return webpackManifest('main.css');
61
+	}
62 62
 }
63 63
 
64 64
 if(!function_exists('mainJs')) {
65
-    /**
66
-     * Get main js file from manifest.json
67
-     *
68
-     * @return string
69
-     */
70
-    function mainJs() {
71
-        return webpackManifest('main.js');
72
-    }
65
+	/**
66
+	 * Get main js file from manifest.json
67
+	 *
68
+	 * @return string
69
+	 */
70
+	function mainJs() {
71
+		return webpackManifest('main.js');
72
+	}
73 73
 }
74 74
 
75 75
 if(!function_exists('vendorJs')) {
76
-    /**
77
-     * Get vendor js file from manifest.json
78
-     *
79
-     * @return string
80
-     */
81
-    function vendorJs() {
82
-        return webpackManifest('vendor.js');
83
-    }
76
+	/**
77
+	 * Get vendor js file from manifest.json
78
+	 *
79
+	 * @return string
80
+	 */
81
+	function vendorJs() {
82
+		return webpackManifest('vendor.js');
83
+	}
84 84
 }
Please login to merge, or discard this patch.