GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( c5b945...ad9544 )
by Florian
02:32
created
Controller/SearchController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	private $searchService;
56 56
 
57 57
 	public function searchAction(Request $request) {
58
-		if($request->query->get('term', false) !== false) {
58
+		if ($request->query->get('term', false) !== false) {
59 59
 			$this->setSearchTerm($request->getSession(), $request->query->get('term'));
60 60
 			return $this->redirectToRoute('stinger_soft_entity_search_search');
61 61
 		}
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
 			'used_facets' => $query->getUsedFacets() 
70 70
 		));
71 71
 		
72
-		if($request->isMethod('POST')) {
72
+		if ($request->isMethod('POST')) {
73 73
 			$facetForm->handleRequest($request);
74 74
 			
75
-			if($facetForm->get('clear')->isClicked()) {
75
+			if ($facetForm->get('clear')->isClicked()) {
76 76
 				$query->setFacets($this->getDefaultFacets());
77 77
 			}
78 78
 			$this->setSearchTerm($request->getSession(), $query->getSearchTerm());
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		
89 89
 		$page = $request->query->get('page', 1);
90 90
 		$results = array();
91
-		if($result instanceof PaginatableResultSet) {
91
+		if ($result instanceof PaginatableResultSet) {
92 92
 			$results = $result->paginate($page, self::RESULTS_PER_PAGE);
93 93
 		} else {
94 94
 			$results = $result->getResults(($page - 1) * self::RESULTS_PER_PAGE, self::RESULTS_PER_PAGE);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 * @return string[string][]
138 138
 	 */
139 139
 	protected function getSearchFacets(SessionInterface $session) {
140
-		$facets = $session()->get(self::SESSION_PREFIX . '_facets', false);
140
+		$facets = $session()->get(self::SESSION_PREFIX.'_facets', false);
141 141
 		return $facets ? json_decode($facets, true) : $this->getDefaultFacets();
142 142
 	}
143 143
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 * @return mixed
152 152
 	 */
153 153
 	protected function getSearchTerm(SessionInterface $session) {
154
-		return $session->get(self::SESSION_PREFIX . '_term', false);
154
+		return $session->get(self::SESSION_PREFIX.'_term', false);
155 155
 	}
156 156
 
157 157
 	/**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * @param string $term        	
162 162
 	 */
163 163
 	protected function setSearchTerm(SessionInterface $session, $term) {
164
-		$session->set(self::SESSION_PREFIX . '_term', $term);
164
+		$session->set(self::SESSION_PREFIX.'_term', $term);
165 165
 	}
166 166
 
167 167
 	/**
Please login to merge, or discard this patch.