Completed
Push — master ( 803738...51d502 )
by Emad
03:15
created
src/UUIDManager.php 1 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/LaravelUuidServiceProvider.php 1 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.
src/Uuids.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
     protected static function boot()
14 14
     {
15 15
         parent::boot();
16
-        static::creating(function ($model) {
16
+        static::creating(function($model) {
17 17
             $model->{config('uuid.default_uuid_column')} = UUIDManager::generate();
18 18
         });
19
-        static::saving(function ($model) {
19
+        static::saving(function($model) {
20 20
             $original_uuid = $model->getOriginal(config('uuid.default_uuid_column'));
21 21
             if ($original_uuid !== $model->{config('uuid.default_uuid_column')}) {
22 22
                 $model->{config('uuid.default_uuid_column')} = $original_uuid;
Please login to merge, or discard this patch.