@@ -55,7 +55,7 @@ |
||
55 | 55 | $client->addDocument($document); |
56 | 56 | $client->commit(); |
57 | 57 | $client->optimize(); |
58 | - }catch (\Exception $e){ |
|
58 | + } catch (\Exception $e){ |
|
59 | 59 | throw new ServerException('Can not add document to server!',$e->getCode(),$e); |
60 | 60 | } |
61 | 61 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $query->setRows($itemCountPerPage); |
109 | 109 | try{ |
110 | 110 | $this->response = $this->client->query($query); |
111 | - }catch (\Exception $e){ |
|
111 | + } catch (\Exception $e){ |
|
112 | 112 | $message = 'Failed to process query'; |
113 | 113 | throw new ServerException($message,$e->getCode(),$e); |
114 | 114 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | if ($this->value['params']['status'] != 'all'){ |
63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
64 | 64 | } |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
67 | 67 | } |
68 | 68 |
@@ -109,8 +109,7 @@ |
||
109 | 109 | if ('file-uri' === $params->fromPost('return')) { |
110 | 110 | $content = $viewHelperManager->get('basepath') |
111 | 111 | ->__invoke($form->getHydrator()->getLastUploadedFile()->getUri()); |
112 | - } |
|
113 | - else { |
|
112 | + } else { |
|
114 | 113 | if ($form instanceof SummaryFormInterface) { |
115 | 114 | $form->setRenderMode(SummaryFormInterface::RENDER_SUMMARY); |
116 | 115 | $viewHelper = 'summaryform'; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $solrDoc = $this->generateInputDocument($document, new \SolrInputDocument()); |
98 | 98 | try{ |
99 | 99 | $this->solrManager->addDocument($solrDoc,$this->solrManager->getOptions()->getJobsPath()); |
100 | - }catch (\Exception $e){ |
|
100 | + } catch (\Exception $e){ |
|
101 | 101 | // @TODO: What to do when the process failed? |
102 | 102 | } |
103 | 103 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | if(!is_null($job->getOrganization())){ |
141 | 141 | try { |
142 | 142 | $this->processOrganization($job,$document); |
143 | - }catch (\Exception $e){ |
|
143 | + } catch (\Exception $e){ |
|
144 | 144 | // @TODO: What to do when the process failed? |
145 | 145 | } |
146 | 146 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | if ($this->value['params']['status'] != 'all'){ |
63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
64 | 64 | } |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
67 | 67 | } |
68 | 68 |