Passed
Push — master ( 92950f...349ab7 )
by Jan
05:07
created
src/Form/Type/CurrencyEntityType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         // This options allows you to override the currency shown for the null value
63 63
         $resolver->setDefault('base_currency', null);
64 64
 
65
-        $resolver->setDefault('empty_message', function (Options $options) {
65
+        $resolver->setDefault('empty_message', function(Options $options) {
66 66
             //By default we use the global base currency:
67 67
             $iso_code = $this->base_currency;
68 68
 
Please login to merge, or discard this patch.
src/Form/Permissions/PermissionType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
     {
60 60
         parent::configureOptions($resolver);
61 61
 
62
-        $resolver->setDefault('perm_name', function (Options $options) {
62
+        $resolver->setDefault('perm_name', function(Options $options) {
63 63
             return $options['name'];
64 64
         });
65 65
 
66
-        $resolver->setDefault('label', function (Options $options) {
66
+        $resolver->setDefault('label', function(Options $options) {
67 67
             if (!empty($this->perm_structure['perms'][$options['perm_name']]['label'])) {
68 68
                 return $this->perm_structure['perms'][$options['perm_name']]['label'];
69 69
             }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             return $options['name'];
72 72
         });
73 73
 
74
-        $resolver->setDefault('multi_checkbox', function (Options $options) {
74
+        $resolver->setDefault('multi_checkbox', function(Options $options) {
75 75
             return !$options['disabled'];
76 76
         });
77 77
 
Please login to merge, or discard this patch.
src/Form/Permissions/PermissionGroupType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,13 +81,13 @@
 block discarded – undo
81 81
     {
82 82
         parent::configureOptions($resolver);
83 83
 
84
-        $resolver->setDefault('group_name', function (Options $options) {
84
+        $resolver->setDefault('group_name', function(Options $options) {
85 85
             return trim($options['name']);
86 86
         });
87 87
 
88 88
         $resolver->setDefault('inherit', false);
89 89
 
90
-        $resolver->setDefault('label', function (Options $options) {
90
+        $resolver->setDefault('label', function(Options $options) {
91 91
             if (!empty($this->perm_structure['groups'][$options['group_name']]['label'])) {
92 92
                 return $this->perm_structure['groups'][$options['group_name']]['label'];
93 93
             }
Please login to merge, or discard this patch.
src/Form/AdminPages/AttachmentTypeAdminForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,10 +66,10 @@
 block discarded – undo
66 66
 
67 67
         //Normalize data before writing it to database
68 68
         $builder->get('filetype_filter')->addViewTransformer(new CallbackTransformer(
69
-            function ($value) {
69
+            function($value) {
70 70
                 return $value;
71 71
             },
72
-            function ($value) {
72
+            function($value) {
73 73
                 return $this->filterTools->normalizeFilterString($value);
74 74
             }
75 75
         ));
Please login to merge, or discard this patch.
src/Services/PricedetailHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             } else {
67 67
                 // We have to sort the pricedetails manually
68 68
                 $array = $pricedetails->map(
69
-                    function (Pricedetail $pricedetail) {
69
+                    function(Pricedetail $pricedetail) {
70 70
                         return $pricedetail->getMinDiscountQuantity();
71 71
                     }
72 72
                 )->toArray();
Please login to merge, or discard this patch.
src/Services/Attachments/FileTypeFilterTools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
     {
140 140
         $filter = trim($filter);
141 141
 
142
-        return $this->cache->get('filter_exts_'.md5($filter), function (ItemInterface $item) use ($filter) {
142
+        return $this->cache->get('filter_exts_'.md5($filter), function(ItemInterface $item) use ($filter) {
143 143
             $elements = explode(',', $filter);
144 144
             $extensions = [];
145 145
 
Please login to merge, or discard this patch.
src/Twig/AppExtension.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
     public function getTests()
80 80
     {
81 81
         return [
82
-            new TwigTest('instanceof', function ($var, $instance) {
82
+            new TwigTest('instanceof', function($var, $instance) {
83 83
                 return $var instanceof $instance;
84 84
             }),
85 85
         ];
Please login to merge, or discard this patch.
src/Entity/Attachments/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@
 block discarded – undo
477 477
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
478 478
             $scheme = parse_url($string, PHP_URL_SCHEME);
479 479
             if ('http' !== $scheme && 'https' !== $scheme) {
480
-                return false;   //All other schemes are not valid.
480
+                return false; //All other schemes are not valid.
481 481
             }
482 482
         }
483 483
         if ($path_required) {
Please login to merge, or discard this patch.
src/Form/Permissions/PermissionsType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $resolver->setDefaults([
47 47
             'show_legend' => true,
48
-            'constraints' => function (Options $options) {
48
+            'constraints' => function(Options $options) {
49 49
                 if (!$options['disabled']) {
50 50
                     return [new NoLockout()];
51 51
                 }
Please login to merge, or discard this patch.