Completed
Push — master ( 082f5b...3c6fd9 )
by Adam
06:38
created
src/IPub/Application/UI/TRedirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
 		if ($presenter->isAjax()) {
49 49
 			if ($destination === 'this') {
50
-				foreach($snippets as $snippet) {
50
+				foreach ($snippets as $snippet) {
51 51
 					$this->redrawControl($snippet);
52 52
 				}
53 53
 
Please login to merge, or discard this patch.
src/IPub/Application/UI/TEntityState.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 				$type = gettype($meta['def']);
61 61
 
62 62
 				if (!$reflection->convertType($params[$name], $type)) {
63
-					throw new Application\BadRequestException("Invalid value for persistent parameter '$name' in '{$this->getName()}', expected " . ($type === 'NULL' ? 'scalar' : $type) . ".");
63
+					throw new Application\BadRequestException("Invalid value for persistent parameter '$name' in '{$this->getName()}', expected ".($type === 'NULL' ? 'scalar' : $type).".");
64 64
 				}
65 65
 
66 66
 				$this->$name = $params[$name];
Please login to merge, or discard this patch.
src/IPub/Application/UI/TRestPresenter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	protected function returnResponse($data = array())
81 81
 	{
82
-		$this->response->status	= 'success';
83
-		$this->response->data	= $data;
82
+		$this->response->status = 'success';
83
+		$this->response->data = $data;
84 84
 	}
85 85
 
86 86
 	/**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 */
89 89
 	protected function checkMethodRequest()
90 90
 	{
91
-		$methodName = 'action' . Utils\Strings::firstUpper($this->action);
91
+		$methodName = 'action'.Utils\Strings::firstUpper($this->action);
92 92
 		$rc = $this->getReflection();
93 93
 
94 94
 		if ($rc->hasMethod($methodName) && $method = $rc->getMethod($methodName)) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 				$request = $this->getHttpRequest();
97 97
 
98 98
 				if (Utils\Strings::lower($annotation) !== Utils\Strings::lower($request->getMethod())) {
99
-					throw new Nette\InvalidStateException('Bad method for this request. ' . __CLASS__ . '::' . $methodName);
99
+					throw new Nette\InvalidStateException('Bad method for this request. '.__CLASS__.'::'.$methodName);
100 100
 				}
101 101
 			}
102 102
 		}
Please login to merge, or discard this patch.