Completed
Push — master ( 00145b...4b63da )
by Maik
05:55
created
src/Mvc/Util/RequestParser.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @return array Parsed parts for later usage
52 52
      */
53 53
     private static function parseUri(Request &$request,
54
-    		$uri, $defaultController, $defaultAction)
54
+            $uri, $defaultController, $defaultAction)
55 55
     {
56 56
         // All beyond the context prefix is our application request uri
57 57
         $contextUri = $uri;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *            The destination parameter name
103 103
      */
104 104
     private static function parseElement(Request &$req,
105
-    		$serverVars, $elementName, $paramName)
105
+            $serverVars, $elementName, $paramName)
106 106
     {
107 107
         if (isset($serverVars[$elementName])) {
108 108
             $req->params[$paramName] = $serverVars[$elementName];
Please login to merge, or discard this patch.
src/Mvc/View/AbstractView.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
     final public function matchController($controller)
121 121
     {
122 122
         return (in_array($controller, $this->controllers) ||
123
-				in_array('any', $this->controllers) ||
124
-				count($this->controllers) == 0);
123
+                in_array('any', $this->controllers) ||
124
+                count($this->controllers) == 0);
125 125
     }
126 126
 
127 127
     /**
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
     final public function matchAction($action)
133 133
     {
134 134
         return (in_array($action, $this->actions) ||
135
-        		in_array('any', $this->actions) ||
136
-        		count($this->actions) == 0);
135
+                in_array('any', $this->actions) ||
136
+                count($this->actions) == 0);
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.
src/Mvc/View/Controls/Form.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             $class = isset($field['class']) ? $field['class'] : $field['name'];
36 36
             
37 37
             $rendered .= sprintf('<input type="%s" id="%s" class="%s" name="%s"/>',
38
-            		$fieldType, $id, $class, $field['name']);
38
+                    $fieldType, $id, $class, $field['name']);
39 39
         }
40 40
         
41 41
         return $rendered;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $label = isset($button['label']) ? $button['label'] : $button['name'];
65 65
             
66 66
             $rendered .= sprintf('<button type="%s" id="%s" class="%s" name="%s">%s</button>',
67
-            		$buttonType, $id, $class, $button['name'], $label);
67
+                    $buttonType, $id, $class, $button['name'], $label);
68 68
         }
69 69
         
70 70
         return $rendered;
@@ -83,16 +83,16 @@  discard block
 block discarded – undo
83 83
         }
84 84
         
85 85
         $formAction = sprintf("%s%s/%s", $contentPrefix, isset($parameters['controller']) ?
86
-        		$parameters['controller'] : lcfirst($request->getController()), isset($parameters['action']) ?
87
-        			$parameters['action'] : lcfirst($request->getAction()));
86
+                $parameters['controller'] : lcfirst($request->getController()), isset($parameters['action']) ?
87
+                    $parameters['action'] : lcfirst($request->getAction()));
88 88
         
89 89
         if (isset($parameters['formAction'])) {
90 90
             $formAction = $parameters['formAction'];
91 91
         }
92 92
         
93 93
         $rendered = sprintf('<form action="%s" method="%s"%s>', $formAction, isset($parameters['formMethod']) ?
94
-        		$parameters['formMethod'] : "POST", isset($parameters['formClass']) ?
95
-        		(sprintf(' class="%s"', $parameters['formClass'])) : "");
94
+                $parameters['formMethod'] : "POST", isset($parameters['formClass']) ?
95
+                (sprintf(' class="%s"', $parameters['formClass'])) : "");
96 96
         
97 97
         $rendered = $this->renderFields($rendered, $parameters['fields']);
98 98
         
Please login to merge, or discard this patch.
src/Mvc/Controller/AbstractController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
             $currentBody = $response->getBody();
216 216
             
217 217
             if (! isset($this->viewParams[$controlIdentifier][$controlName])
218
-				|| ! $view->hasControl($controlIdentifier)) {
218
+                || ! $view->hasControl($controlIdentifier)) {
219 219
                 $response->setBody(str_replace($matches[0], '', $currentBody));
220 220
                 continue;
221 221
             }
Please login to merge, or discard this patch.