@@ -187,7 +187,6 @@ protected function getListQueryCache()
187
187
*/
188
188
protected function getListQuery ()
189
189
{
190
- // Create a new query object.
191
190
$ db = $ this ->getDbo ();
192
191
$ query = $ db ->getQuery (true );
193
192
$ labelQuery = $ db ->getQuery (true );
@@ -201,7 +200,6 @@ protected function getListQuery()
201
200
. $ db ->quoteName ('pulls.pull_id ' )
202
201
);
203
202
204
- // Filter by search
205
203
$ search = $ this ->getState ()->get ('filter.search ' );
206
204
207
205
if (!empty ($ search ))
@@ -230,7 +228,6 @@ protected function getListQuery()
230
228
}
231
229
}
232
230
233
- // Filter for applied patches
234
231
$ applied = $ this ->getState ()->get ('filter.applied ' );
235
232
236
233
if (!empty ($ applied ))
@@ -241,7 +238,6 @@ protected function getListQuery()
241
238
$ query ->where ($ db ->quoteName ('applied ' ) . $ value );
242
239
}
243
240
244
- // Filter for branch
245
241
$ branch = $ this ->getState ()->get ('filter.branch ' );
246
242
247
243
if (!empty ($ branch ))
@@ -251,7 +247,6 @@ protected function getListQuery()
251
247
);
252
248
}
253
249
254
- // Filter for RTC patches
255
250
$ applied = $ this ->getState ()->get ('filter.rtc ' );
256
251
257
252
if (!empty ($ applied ))
@@ -262,7 +257,6 @@ protected function getListQuery()
262
257
$ query ->where ($ db ->quoteName ('pulls.is_rtc ' ) . ' = ' . $ value );
263
258
}
264
259
265
- // Filter for NPM patches
266
260
$ npm = $ this ->getState ()->get ('filter.npm ' );
267
261
268
262
if (!empty ($ npm ))
@@ -346,7 +340,6 @@ public function getSortFields()
346
340
*/
347
341
public function requestFromGithub ($ page )
348
342
{
349
- // If on page 1, dump the old data
350
343
if ($ page === 1 )
351
344
{
352
345
$ this ->getDbo ()->truncateTable ('#__patchtester_pulls ' );
@@ -385,9 +378,9 @@ public function requestFromGithub($page)
385
378
// Default this to being a single page of results
386
379
$ lastPage = 1 ;
387
380
388
- if (isset ($ pullsResponse ->headers ['Link ' ]))
381
+ if (isset ($ pullsResponse ->headers ['link ' ]))
389
382
{
390
- $ linkHeader = $ pullsResponse ->headers ['Link ' ];
383
+ $ linkHeader = $ pullsResponse ->headers ['link ' ];
391
384
392
385
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
393
386
if (is_array ($ linkHeader ))
0 commit comments