@@ -60,7 +60,7 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | public function afterException($controller, $methodName, \Exception $exception) { |
| 62 | 62 | if ($exception instanceof StatusException) { |
| 63 | - if($this->config->getSystemValue('loglevel', Util::WARN) === Util::DEBUG) { |
|
| 63 | + if ($this->config->getSystemValue('loglevel', Util::WARN) === Util::DEBUG) { |
|
| 64 | 64 | $this->logger->logException($exception); |
| 65 | 65 | } |
| 66 | 66 | return new JSONResponse([ |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | Util::addScript('deck', 'vendor/angular-markdown-it/dist/ng-markdownit.min'); |
| 38 | 38 | Util::addScript('deck', 'vendor/markdown-it-link-target/dist/markdown-it-link-target.min'); |
| 39 | 39 | |
| 40 | -if(!\OC::$server->getConfig()->getSystemValue('debug', false)) { |
|
| 40 | +if (!\OC::$server->getConfig()->getSystemValue('debug', false)) { |
|
| 41 | 41 | Util::addScript('deck', 'public/app'); |
| 42 | 42 | } else { |
| 43 | 43 | // Load seperate JS files when debug mode is enabled |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | 'filters' => ['cardFilter', 'cardSearchFilter', 'iconWhiteFilter', 'lightenColorFilter', 'orderObjectBy', 'relativeDateFilter', 'textColorFilter'], |
| 49 | 49 | 'service' => ['ApiService', 'BoardService', 'CardService', 'LabelService', 'StackService', 'StatusService'], |
| 50 | 50 | ]; |
| 51 | - foreach($js as $folder=>$files) { |
|
| 51 | + foreach ($js as $folder=>$files) { |
|
| 52 | 52 | foreach ($files as $file) { |
| 53 | - Util::addScript('deck', $folder.'/'.$file); |
|
| 53 | + Util::addScript('deck', $folder . '/' . $file); |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
@@ -56,10 +56,10 @@ |
||
| 56 | 56 | $properties = get_object_vars($this); |
| 57 | 57 | $reflection = new \ReflectionClass($this); |
| 58 | 58 | $json = []; |
| 59 | - foreach($properties as $property=>$value) { |
|
| 60 | - if(substr($property, 0, 1) !== '_' && $reflection->hasProperty($property)) { |
|
| 59 | + foreach ($properties as $property=>$value) { |
|
| 60 | + if (substr($property, 0, 1) !== '_' && $reflection->hasProperty($property)) { |
|
| 61 | 61 | $propertyReflection = $reflection->getProperty($property); |
| 62 | - if(!$propertyReflection->isPrivate()) { |
|
| 62 | + if (!$propertyReflection->isPrivate()) { |
|
| 63 | 63 | $json[$property] = $this->getter($property); |
| 64 | 64 | } |
| 65 | 65 | } |