Test Failed
Push — feature/paths-loader ( ca8af4 )
by Patrick
04:40
created
src/Extensions/Gedmo/TreeSelfReference.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@
 block discarded – undo
76 76
      */
77 77
     protected static function addMacro($method, $key)
78 78
     {
79
-        Field::macro($method, function (Field $field) use ($key) {
79
+        Field::macro($method, function(Field $field) use ($key) {
80 80
             $field->nullable();
81 81
 
82 82
             return new static($field->getClassMetadata(), $field->getName(), $key);
83 83
         });
84 84
 
85
-        ManyToOne::macro($method, function (ManyToOne $relation) use ($key) {
85
+        ManyToOne::macro($method, function(ManyToOne $relation) use ($key) {
86 86
             $relation->nullable();
87 87
 
88 88
             return new static($relation->getClassMetadata(), $relation->getRelation(), $key);
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 = 'deletedAt', $type = 'dateTime') {
71
+        Builder::macro(static::MACRO_METHOD, function(Builder $builder, $fieldName = 'deletedAt', $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/Locale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public static function enable()
41 41
     {
42
-        Builder::macro(self::MACRO_METHOD, function (Builder $builder, $fieldName) {
42
+        Builder::macro(self::MACRO_METHOD, function(Builder $builder, $fieldName) {
43 43
             return new static($builder->getClassMetadata(), $fieldName);
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Mappings/Translatable/AbstractTranslationMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function map(Fluent $builder)
24 24
     {
25
-        $builder->integer('id')->unsigned()->primary()->generatedValue(function (GeneratedValue $builder) {
25
+        $builder->integer('id')->unsigned()->primary()->generatedValue(function(GeneratedValue $builder) {
26 26
             $builder->identity();
27 27
         });
28 28
         $builder->string('locale')->length(8);
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Uploadable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public static function enable()
81 81
     {
82
-        Builder::macro(self::MACRO_METHOD, function (Builder $builder) {
82
+        Builder::macro(self::MACRO_METHOD, function(Builder $builder) {
83 83
             return new static($builder->getClassMetadata());
84 84
         });
85 85
 
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Timestampable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 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
 
Please login to merge, or discard this patch.
src/Extensions/Gedmo/Translatable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public static function enable()
49 49
     {
50
-        Field::macro(static::MACRO_METHOD, function (Field $builder) {
50
+        Field::macro(static::MACRO_METHOD, function(Field $builder) {
51 51
             return new static($builder->getClassMetadata(), $builder->getName());
52 52
         });
53 53
 
Please login to merge, or discard this patch.
src/FluentDriver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      * Gets the names of all mapped classes known to this driver.
83 83
      *
84 84
      * @throws MappingException
85
-     * @return string[] The names of all mapped classes known to this driver.
85
+     * @return integer[] The names of all mapped classes known to this driver.
86 86
      */
87 87
     public function getAllClassNames()
88 88
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function __construct(array $mappings = [], array $paths = [])
48 48
     {
49
-        $this->fluentFactory = function (ClassMetadata $metadata) {
49
+        $this->fluentFactory = function(ClassMetadata $metadata) {
50 50
             return new Builder(new ClassMetadataBuilder($metadata));
51 51
         };
52 52
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS),
125 125
                     RecursiveIteratorIterator::LEAVES_ONLY
126 126
                 ),
127
-                '/^.+' . preg_quote($this->fileExtension) . '$/i',
127
+                '/^.+'.preg_quote($this->fileExtension).'$/i',
128 128
                 RecursiveRegexIterator::GET_MATCH
129 129
             );
130 130
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $mapping = new $class();
185 185
 
186 186
             if (!$mapping instanceof Mapping) {
187
-                throw new InvalidArgumentException("Mapping class [{$class}] should implement " . Mapping::class);
187
+                throw new InvalidArgumentException("Mapping class [{$class}] should implement ".Mapping::class);
188 188
             }
189 189
 
190 190
             $this->addMapping($mapping);
Please login to merge, or discard this patch.