Completed
Push — extensions-support ( 3011d4...e48f8b )
by Patrick
11:28
created
src/Builders/GeneratedValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,9 +154,9 @@
 block discarded – undo
154 154
      */
155 155
     private function customize($name, $initial, $size)
156 156
     {
157
-        $this->name    = $name    ?: $this->name;
157
+        $this->name    = $name ?: $this->name;
158 158
         $this->initial = $initial ?: $this->initial;
159
-        $this->size    = $size    ?: $this->size;
159
+        $this->size    = $size ?: $this->size;
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
src/Builders/Overrides/OverrideBuilderFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
     protected static function getFactories()
35 35
     {
36 36
         return [
37
-            AttributeOverride::class   => function (ClassMetadata $meta, $name) {
37
+            AttributeOverride::class   => function(ClassMetadata $meta, $name) {
38 38
                 return $meta->hasField($name);
39 39
             },
40
-            AssociationOverride::class => function (ClassMetadata $meta, $name) {
40
+            AssociationOverride::class => function(ClassMetadata $meta, $name) {
41 41
                 return $meta->hasAssociation($name);
42 42
             },
43 43
         ];
Please login to merge, or discard this patch.
src/FluentDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function __construct(array $mappings = [])
32 32
     {
33
-        $this->fluentFactory = function (ClassMetadata $metadata) {
33
+        $this->fluentFactory = function(ClassMetadata $metadata) {
34 34
             return new Builder(new ClassMetadataBuilder($metadata));
35 35
         };
36 36
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function isTransient($className)
74 74
     {
75 75
         return
76
-            ! $this->mappers->hasMapperFor($className) ||
76
+            !$this->mappers->hasMapperFor($className) ||
77 77
             $this->mappers->getMapperFor($className)->isTransient();
78 78
     }
79 79
 
Please login to merge, or discard this patch.
lib/FluentExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function readExtendedMetadata($meta, array &$config)
33 33
     {
34
-        if (! $meta instanceof ExtensibleClassMetadata) {
34
+        if (!$meta instanceof ExtensibleClassMetadata) {
35 35
             return;
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Blameable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
      */
19 19
     public static function enable()
20 20
     {
21
-        Field::macro(self::MACRO_METHOD, function (Field $builder) {
21
+        Field::macro(self::MACRO_METHOD, function(Field $builder) {
22 22
             return new static($builder->getClassMetadata(), $builder->getName());
23 23
         });
24 24
 
25
-        ManyToOne::macro(self::MACRO_METHOD, function (ManyToOne $builder) {
25
+        ManyToOne::macro(self::MACRO_METHOD, function(ManyToOne $builder) {
26 26
             return new static($builder->getClassMetadata(), $builder->getRelation());
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Extensions/Gedmo/IpTraceable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public static function enable()
17 17
     {
18
-        Field::macro(static::MACRO_METHOD, function (Field $builder) {
18
+        Field::macro(static::MACRO_METHOD, function(Field $builder) {
19 19
             return new static($builder->getClassMetadata(), $builder->getName());
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Timestampable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
      */
19 19
     public static function enable()
20 20
     {
21
-        Field::macro(self::MACRO_METHOD, function (Field $builder) {
21
+        Field::macro(self::MACRO_METHOD, function(Field $builder) {
22 22
             return new static($builder->getClassMetadata(), $builder->getName());
23 23
         });
24 24
 
25
-        Builder::macro('timestamps', function (\LaravelDoctrine\Fluent\Fluent $builder) {
25
+        Builder::macro('timestamps', function(\LaravelDoctrine\Fluent\Fluent $builder) {
26 26
             $builder->dateTime('createdAt')->timestampable()->onCreate();
27 27
             $builder->dateTime('updatedAt')->timestampable()->onUpdate();
28 28
         });
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Softdeleteable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,14 +68,14 @@
 block discarded – undo
68 68
      */
69 69
     public static function enable()
70 70
     {
71
-        Builder::macro(static::MACRO_METHOD, function (Builder $builder, $fieldName, $type = 'dateTime') {
71
+        Builder::macro(static::MACRO_METHOD, function(Builder $builder, $fieldName, $type = 'dateTime') {
72 72
 
73 73
             $builder->{$type}($fieldName)->nullable();
74 74
 
75 75
             return new static($builder->getClassMetadata(), $fieldName);
76 76
         });
77 77
 
78
-        Field::macro(static::MACRO_METHOD, function (Field $builder) {
78
+        Field::macro(static::MACRO_METHOD, function(Field $builder) {
79 79
             return new static($builder->getClassMetadata(), $builder->getName());
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Sluggable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public static function enable()
114 114
     {
115
-        Field::macro(static::MACRO_METHOD, function (Field $builder, $fields) {
115
+        Field::macro(static::MACRO_METHOD, function(Field $builder, $fields) {
116 116
             return new static($builder->getClassMetadata(), $builder->getName(), $fields);
117 117
         });
118 118
     }
Please login to merge, or discard this patch.