@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $value = $this->validateDate($value); |
52 | 52 | if(method_exists($ob,$setter)){ |
53 | 53 | call_user_func(array($ob,$setter),$value); |
54 | - }elseif(isset($propertiesMap[$name])){ |
|
54 | + } elseif(isset($propertiesMap[$name])){ |
|
55 | 55 | $this->handleMappedProperty($propertiesMap[$name],$ob,$value); |
56 | 56 | } |
57 | 57 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $check = $date && ($date->format(Manager::SOLR_DATE_FORMAT) === $value); |
91 | 91 | if($check){ |
92 | 92 | return $date; |
93 | - }else{ |
|
93 | + } else{ |
|
94 | 94 | return $value; |
95 | 95 | } |
96 | 96 | } |
@@ -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 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $solrDoc = $this->generateInputDocument($document, new \SolrInputDocument()); |
53 | 53 | try{ |
54 | 54 | $this->solrManager->addDocument($solrDoc,'/solr/YawikJobs'); |
55 | - }catch (\Exception $e){ |
|
55 | + } catch (\Exception $e){ |
|
56 | 56 | // @TODO: What to do when the process failed? |
57 | 57 | } |
58 | 58 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $solrDoc = $this->generateInputDocument($document,new \SolrInputDocument()); |
68 | 68 | try{ |
69 | 69 | $this->solrManager->addDocument($solrDoc,'/solr/YawikJobs'); |
70 | - }catch (\Exception $e){ |
|
70 | + } catch (\Exception $e){ |
|
71 | 71 | // @TODO: What to do when the process failed? |
72 | 72 | } |
73 | 73 | } |