Completed
Push — master ( 5d5b03...4c05ee )
by Kamil
01:34 queued 12s
created
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
104 104
     {
105
-        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable {
105
+        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable {
106 106
             if (null === $previousValues || [] === $previousValues) {
107 107
                 return $previousValues;
108 108
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 168
     {
169
-        return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
169
+        return function (Options $options, array $couponDefinitions) use ($couponFactory) : array {
170 170
             if (null === $couponFactory) {
171 171
                 throw new \RuntimeException('You must configure a $couponFactory');
172 172
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ];
73 73
 
74 74
             if ($zone->getType() === ZoneInterface::TYPE_ZONE) {
75
-                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool {
75
+                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone) : bool {
76 76
                     return $subZone !== null && $zone->getId() !== $subZone->getId();
77 77
                 };
78 78
             }
Please login to merge, or discard this patch.
src/Sylius/Behat/Service/Helper/JavaScriptTestHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         string $message,
43 43
         ?int $timeout = null
44 44
     ): void {
45
-        $callable = function () use ($notificationChecker, $message, $type): void {
45
+        $callable = function () use ($notificationChecker, $message, $type) : void {
46 46
             $notificationChecker->checkNotification($message, $type);
47 47
         };
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function waitUntilPageOpens(PageInterface $page, ?array $options = [], ?int $timeout = null): void
53 53
     {
54
-        $callable = function () use ($page, $options): void {
54
+        $callable = function () use ($page, $options) : void {
55 55
             $page->open($options);
56 56
         };
57 57
 
Please login to merge, or discard this patch.
etc/psalm/LaminasPriorityQueueStub.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * with keys "data" and "priority".
52 52
      * @var array
53 53
      */
54
-    protected $items      = [];
54
+    protected $items = [];
55 55
 
56 56
     /**
57 57
      * Inner queue object
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             unset($this->items[$key]);
114 114
             $this->queue = null;
115 115
 
116
-            if (! $this->isEmpty()) {
116
+            if (!$this->isEmpty()) {
117 117
                 $queue = $this->getQueue();
118 118
                 foreach ($this->items as $item) {
119 119
                     $queue->insert($item['data'], $item['priority']);
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     {
325 325
         if (null === $this->queue) {
326 326
             $this->queue = new $this->queueClass();
327
-            if (! $this->queue instanceof \SplPriorityQueue) {
327
+            if (!$this->queue instanceof \SplPriorityQueue) {
328 328
                 throw new Exception\DomainException(sprintf(
329 329
                     'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"',
330 330
                     get_class($this->queue)
Please login to merge, or discard this patch.
ApiBundle/ApiPlatform/Factory/MergingExtractorResourceMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             ;
77 77
         }
78 78
 
79
-        if ($resource['attributes'] ==! null || !empty($this->defaults['attributes'])) {
79
+        if ($resource['attributes'] == !null || !empty($this->defaults['attributes'])) {
80 80
             $resource['attributes'] = (array) $resource['attributes'];
81 81
             foreach ($this->defaults['attributes'] as $key => $value) {
82 82
                 if (!isset($resource['attributes'][$key])) {
Please login to merge, or discard this patch.