Completed
Pull Request — devel (#145)
by Litera
05:12
created
app/helpers.php 3 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	 * @return void
11 11
 	 */
12 12
 	function dd() {
13
-		array_map(function ($x){
13
+		array_map(function($x) {
14 14
 			(\Tracy\Debugger::dump($x));
15 15
 		}, func_get_args());
16 16
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $manifestPath = realpath(__DIR__ . '/../www/manifest.json');
43 43
         $manifest = json_decode(file_get_contents($manifestPath), true);
44 44
 
45
-        if ($name && array_key_exists($name, $manifest)) {
45
+        if($name && array_key_exists($name, $manifest)) {
46 46
             $manifest = $manifest[$name];
47 47
         }
48 48
 
Please login to merge, or discard this patch.
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,8 @@  discard block
 block discarded – undo
9 9
 	 * @param  mixed
10 10
 	 * @return void
11 11
 	 */
12
-	function dd() {
12
+	function dd()
13
+	{
13 14
 		array_map(function ($x){
14 15
 			(\Tracy\Debugger::dump($x));
15 16
 		}, func_get_args());
@@ -24,7 +25,8 @@  discard block
 block discarded – undo
24 25
 	 *
25 26
 	 * @return string
26 27
 	 */
27
-	function appVersion() {
28
+	function appVersion()
29
+	{
28 30
 		$packagePath = realpath(__DIR__ . '/../package.json');
29 31
 		$package = json_decode(file_get_contents($packagePath));
30 32
 
@@ -38,7 +40,8 @@  discard block
 block discarded – undo
38 40
      *
39 41
      * @return string
40 42
      */
41
-    function webpackManifest(string $name = null) {
43
+    function webpackManifest(string $name = null)
44
+    {
42 45
         $manifestPath = realpath(__DIR__ . '/../www/manifest.json');
43 46
         $manifest = json_decode(file_get_contents($manifestPath), true);
44 47
 
@@ -56,7 +59,8 @@  discard block
 block discarded – undo
56 59
      *
57 60
      * @return string
58 61
      */
59
-    function mainCss() {
62
+    function mainCss()
63
+    {
60 64
         return webpackManifest('main.css');
61 65
     }
62 66
 }
@@ -67,7 +71,8 @@  discard block
 block discarded – undo
67 71
      *
68 72
      * @return string
69 73
      */
70
-    function mainJs() {
74
+    function mainJs()
75
+    {
71 76
         return webpackManifest('main.js');
72 77
     }
73 78
 }
@@ -78,7 +83,8 @@  discard block
 block discarded – undo
78 83
      *
79 84
      * @return string
80 85
      */
81
-    function vendorJs() {
86
+    function vendorJs()
87
+    {
82 88
         return webpackManifest('vendor.js');
83 89
     }
84 90
 }
Please login to merge, or discard this patch.