@@ -47,7 +47,7 @@ |
||
| 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 | |
@@ -60,7 +60,7 @@ |
||
| 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]; |
@@ -79,8 +79,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |