Completed
Push — master ( 9e9693...9e4b3d )
by Emad
02:46
created
src/UUIDManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * This function will return a UUID
30 30
      *
31
-     * @return type string
31
+     * @return string string
32 32
      */
33 33
     public static function generate()
34 34
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@
 block discarded – undo
35 35
 
36 36
             mt_srand((double)microtime()*10000);
37 37
             $charid = strtoupper(md5(uniqid(rand(), true)));
38
-            $hyphen = chr(45);// "-"
38
+            $hyphen = chr(45); // "-"
39 39
             $uuid = chr(123)// "{"
40 40
             .substr($charid, 0, 8).$hyphen
41 41
             .substr($charid, 8, 4).$hyphen
42
-            .substr($charid,12, 4).$hyphen
43
-            .substr($charid,16, 4).$hyphen
44
-            .substr($charid,20,12)
45
-            .chr(125);// "}"
42
+            .substr($charid, 12, 4).$hyphen
43
+            .substr($charid, 16, 4).$hyphen
44
+            .substr($charid, 20, 12)
45
+            .chr(125); // "}"
46 46
 
47
-            $uuid = str_replace('{', '' , $uuid);
48
-            $uuid = str_replace('}', '' , $uuid);
47
+            $uuid = str_replace('{', '', $uuid);
48
+            $uuid = str_replace('}', '', $uuid);
49 49
 
50 50
             return $uuid;
51 51
     
Please login to merge, or discard this patch.
src/Uuids.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected static function boot()
12 12
     {
13 13
         parent::boot();
14
-        static::creating(function ($model) {
14
+        static::creating(function($model) {
15 15
             $model->{$model->getKeyName()} = UUIDManager::generate();
16 16
         });
17 17
     }
Please login to merge, or discard this patch.
src/Facades/UUID.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
      */
15 15
     protected static function getFacadeAccessor()
16 16
     {
17
-      return UUIDManager::class;
17
+        return UUIDManager::class;
18 18
     }
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/LaravelUuidServiceProvider.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
 
7 7
 class LaravelUuidServiceProvider extends ServiceProvider
8 8
 {
9
-     /**
10
-     * Indicates if loading of the provider is deferred.
11
-     *
12
-     * @var bool
13
-     */
9
+        /**
10
+         * Indicates if loading of the provider is deferred.
11
+         *
12
+         * @var bool
13
+         */
14 14
     protected $defer = false;
15 15
 
16 16
     /**
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function boot()
22 22
     {
23
-  //
23
+    //
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton(UUIDManager::class, function () {
33
+        $this->app->singleton(UUIDManager::class, function() {
34 34
             return new UUIDManager();
35 35
         });
36 36
     }
Please login to merge, or discard this patch.