Completed
Push — master ( d8dace...c65c33 )
by Greg
02:20
created
src/Hooks/HookManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function addValidator(ValidatorInterface $validator, $name = '*', $stage = self::PRIMARY_STAGE)
53 53
     {
54 54
         $this->checkValidStage($stage);
55
-        $this->hooks[$name][$stage . self::ARGUMENT_VALIDATOR][] = $validator;
55
+        $this->hooks[$name][$stage.self::ARGUMENT_VALIDATOR][] = $validator;
56 56
     }
57 57
 
58 58
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function addResultProcessor(ProcessResultInterface $resultProcessor, $name = '*', $stage = self::PRIMARY_STAGE)
66 66
     {
67 67
         $this->checkValidStage($stage);
68
-        $this->hooks[$name][$stage . self::PROCESS_RESULT][] = $resultProcessor;
68
+        $this->hooks[$name][$stage.self::PROCESS_RESULT][] = $resultProcessor;
69 69
     }
70 70
 
71 71
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function addAlterResult(AlterResultInterface $resultAlterer, $name = '*', $stage = self::PRIMARY_STAGE)
81 81
     {
82 82
         $this->checkValidStage($stage);
83
-        $this->hooks[$name][$stage . self::ALTER_RESULT][] = $resultAlterer;
83
+        $this->hooks[$name][$stage.self::ALTER_RESULT][] = $resultAlterer;
84 84
     }
85 85
 
86 86
     /**
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     {
333 333
         $validStages = [self::PRE_STAGE, self::PRIMARY_STAGE, self::POST_STAGE];
334 334
         if (!in_array($stage, $validStages)) {
335
-            throw new \Exception("Invalid stage '$stage' specified; must be one of " . implode(',', $validStages));
335
+            throw new \Exception("Invalid stage '$stage' specified; must be one of ".implode(',', $validStages));
336 336
         }
337 337
     }
338 338
 }
Please login to merge, or discard this patch.