Completed
Pull Request — develop (#259)
by ANTHONIUS
09:01
created
module/Solr/src/Solr/Bridge/Manager.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Solr/src/Solr/Paginator/Adapter/SolrAdapter.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
module/Solr/src/Solr/Filter/JobBoardPaginationQuery.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Cv/src/Cv/Controller/ManageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
module/Solr/src/Solr/Listener/JobEventSubscriber.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
module/Solr/src/Solr/Bridge/Util.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.