Passed
Branch develop (905d13)
by Mariano
09:27
created
src/PowerRoute.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     /**
70 70
      * @param string                             $routeName
71
-     * @param \PowerRoute\Common\TransactionData $transactionData
71
+     * @param TransactionData $transactionData
72 72
      */
73 73
     public function execute($routeName, TransactionData $transactionData)
74 74
     {
@@ -87,6 +87,9 @@  discard block
 block discarded – undo
87 87
         }
88 88
     }
89 89
 
90
+    /**
91
+     * @param ServerRequestInterface $request
92
+     */
90 93
     private function evaluateConditions($route, $request)
91 94
     {
92 95
         if (!$route[ConfigOptions::CONFIG_NODE_CONDITION]) {
@@ -108,6 +111,9 @@  discard block
 block discarded – undo
108 111
         throw new \RuntimeException('Invalid exception');
109 112
     }
110 113
 
114
+    /**
115
+     * @param string $matcher
116
+     */
111 117
     private function getConditionsMatcher($matcher)
112 118
     {
113 119
         if (!isset($this->conditionMatchers[$matcher])) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Psr\Http\Message\ResponseInterface;
5 5
 use Psr\Http\Message\ServerRequestInterface;
6
-use Mcustiel\PowerRoute\Common\Factories\MatcherFactory;
7
-use Mcustiel\PowerRoute\Common\Factories\InputSourceFactory;
8 6
 use Mcustiel\PowerRoute\Common\Factories\ActionFactory;
9 7
 use Mcustiel\PowerRoute\Common\TransactionData;
10 8
 use JMS\Serializer\Exception\RuntimeException;
Please login to merge, or discard this patch.
src/Common/Conditions/AllConditionsMatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         foreach ($conditions as $condition) {
17 17
             $inputSource = $this->getInputSource($condition);
18 18
             $matcher = $this->getMatcher($condition);
19
-            if (! $matcher->match($inputSource->getValue($request))) {
19
+            if (!$matcher->match($inputSource->getValue($request))) {
20 20
                 return false;
21 21
             }
22 22
         }
Please login to merge, or discard this patch.