Completed
Push — master ( 1992c5...803738 )
by Emad
02:25
created
src/LaravelUuidServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 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
     /**
Please login to merge, or discard this patch.
src/Uuids.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * Scope  by uuid 
29 29
      * @param  string  uuid of the model.
30 30
      * 
31
-    */
31
+     */
32 32
     public function scopeUuid($query, $uuid, $first = true)
33 33
     {
34 34
         $match = preg_match('/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/', $uuid);
Please login to merge, or discard this 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.