Completed
Push — master ( c49337...a3b85d )
by Elf
05:13
created
src/helpers.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Ramsey\Uuid\Uuid;
4 4
 
5
-if (! function_exists('is_domain')) {
5
+if (!function_exists('is_domain')) {
6 6
     /**
7 7
      * Determines the current domain equals to the given domain identifier.
8 8
      *
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     }
16 16
 }
17 17
 
18
-if (! function_exists('app_url')) {
18
+if (!function_exists('app_url')) {
19 19
     /**
20 20
      * Generate an URL for the application.
21 21
      *
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
     function app_url($path = '', $parameters = null, $identifier = 'site')
28 28
     {
29 29
         $path = trim($path, '/');
30
-        if (! empty($path) && ! starts_with($path, ['?', '&', '#'])) {
30
+        if (!empty($path) && !starts_with($path, [ '?', '&', '#' ])) {
31 31
             $path = '/'.$path;
32 32
         }
33 33
 
34
-        if (! is_null($parameters)) {
34
+        if (!is_null($parameters)) {
35 35
             $query = http_build_query($parameters);
36
-            if (! empty($query)) {
37
-                $path .= (str_contains($path, ['?', '&', '#']) ? '&' : '?').$query;
36
+            if (!empty($query)) {
37
+                $path .= (str_contains($path, [ '?', '&', '#' ]) ? '&' : '?').$query;
38 38
             }
39 39
         }
40 40
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 }
48 48
 
49
-if (! function_exists('revision')) {
49
+if (!function_exists('revision')) {
50 50
     /**
51 51
      * Get the revisioned asset path.
52 52
      *
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     }
64 64
 }
65 65
 
66
-if (! function_exists('asset_url')) {
66
+if (!function_exists('asset_url')) {
67 67
     /**
68 68
      * Generate an asset URL.
69 69
      *
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 }
82 82
 
83
-if (! function_exists('cdn_url')) {
83
+if (!function_exists('cdn_url')) {
84 84
     /**
85 85
      * Generate an asset CDN URL.
86 86
      *
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 }
95 95
 
96
-if (! function_exists('gravatar')) {
96
+if (!function_exists('gravatar')) {
97 97
     /**
98 98
      * Generate a Gravatar url.
99 99
      *
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 }
125 125
 
126
-if (! function_exists('random_uuid')) {
126
+if (!function_exists('random_uuid')) {
127 127
     /**
128 128
      * Generate a version 4 (random) UUID.
129 129
      *
Please login to merge, or discard this patch.
src/Services/Optimus/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('optimus_encode')) {
3
+if (!function_exists('optimus_encode')) {
4 4
     /**
5 5
      * Encode a number with Optimus.
6 6
      *
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     }
14 14
 }
15 15
 
16
-if (! function_exists('optimus_decode')) {
16
+if (!function_exists('optimus_decode')) {
17 17
     /**
18 18
      * Decode a number with Optimus.
19 19
      *
Please login to merge, or discard this patch.