Completed
Pull Request — master (#446)
by
unknown
05:15 queued 01:59
created
src/Offer/OfferCommandHandler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use CultuurNet\UDB3\Offer\Commands\AbstractAddLabel;
13 13
 use CultuurNet\UDB3\Offer\Commands\AbstractDeleteCurrentOrganizer;
14 14
 use CultuurNet\UDB3\Offer\Commands\AbstractImportLabels;
15
-use CultuurNet\UDB3\Offer\Commands\AbstractLabelCommand;
16 15
 use CultuurNet\UDB3\Offer\Commands\AbstractRemoveLabel;
17 16
 use CultuurNet\UDB3\Offer\Commands\AbstractDeleteOffer;
18 17
 use CultuurNet\UDB3\Offer\Commands\AbstractDeleteOrganizer;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $matches = [];
110 110
             if (preg_match('/^handle(.+)$/', $method, $matches)) {
111 111
                 $command = $matches[1];
112
-                $classNameMethod = 'get' . $command . 'ClassName';
112
+                $classNameMethod = 'get'.$command.'ClassName';
113 113
 
114 114
                 if (method_exists($this, $classNameMethod)) {
115 115
                     $commandFullClassName = call_user_func(array($this, $classNameMethod));
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     {
305 305
         $offer = $this->load($addLabel->getItemId());
306 306
 
307
-        $labelName = (string) $addLabel->getLabel();
307
+        $labelName = (string)$addLabel->getLabel();
308 308
         $labelVisibility = $addLabel->getLabel()->isVisible();
309 309
 
310 310
         // Load the label read model so we can determine the correct visibility.
Please login to merge, or discard this patch.