Completed
Push — master ( db82cc...74ffa0 )
by Mariano
63:48
created
src/PowerRoute.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     /**
69 69
      * @param string                             $routeName
70
-     * @param \PowerRoute\Common\TransactionData $transactionData
70
+     * @param TransactionData $transactionData
71 71
      */
72 72
     public function execute($routeName, TransactionData $transactionData)
73 73
     {
@@ -83,6 +83,9 @@  discard block
 block discarded – undo
83 83
         }
84 84
     }
85 85
 
86
+    /**
87
+     * @param ServerRequestInterface $request
88
+     */
86 89
     private function evaluateCondition($route, $request)
87 90
     {
88 91
         if ($route[static::CONFIG_NODE_CONDITION]) {
@@ -101,6 +104,9 @@  discard block
 block discarded – undo
101 104
         return true;
102 105
     }
103 106
 
107
+    /**
108
+     * @param boolean $matched
109
+     */
104 110
     private function getActionsToRun($route, $matched)
105 111
     {
106 112
         if ($matched) {
Please login to merge, or discard this patch.
src/Actions/PlaceholderEvaluator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         return preg_replace_callback(
22 22
             '/\{\{\s*(var|uri|get|post|header|cookie|method)(?:\.([a-z0-9-_]+))?\s*\}\}/i',
23
-            function ($matches) use ($transactiondata) {
23
+            function($matches) use ($transactiondata) {
24 24
                 return $this->getValueFromPlaceholder(
25 25
                     $matches[1],
26 26
                     isset($matches[2]) ? $matches[2] : null,
Please login to merge, or discard this patch.
src/InputSources/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
     public function getValue(ServerRequestInterface $request)
10 10
     {
11 11
         $array = $request->getCookieParams();
12
-        return isset($array[$this->argument])? $array[$this->argument] : null;
12
+        return isset($array[$this->argument]) ? $array[$this->argument] : null;
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/InputSources/QueryStringParam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
     public function getValue(ServerRequestInterface $request)
10 10
     {
11 11
         $array = $request->getQueryParams();
12
-        return isset($array[$this->argument])? $array[$this->argument] : null;
12
+        return isset($array[$this->argument]) ? $array[$this->argument] : null;
13 13
     }
14 14
 }
Please login to merge, or discard this patch.