@@ -34,14 +34,14 @@ class PullsModel extends ListModel
3434 * @since 2.0
3535 */
3636 protected $ context ;
37- /**
37+ /**
3838 * Array of fields the list can be sorted on
3939 *
4040 * @var array
4141 * @since 2.0
4242 */
4343 protected $ sortFields = array ('pulls.pull_id ' , 'pulls.title ' );
44- /**
44+ /**
4545 * Constructor.
4646 *
4747 * @param array $config An optional associative array of configuration settings.
@@ -155,9 +155,9 @@ protected function getListQueryCache()
155155 {
156156 // Capture the last store id used.
157157 static $ lastStoreId ;
158- // Compute the current store id.
158+ // Compute the current store id.
159159 $ currentStoreId = $ this ->getStoreId ();
160- // If the last store id is different from the current, refresh the query.
160+ // If the last store id is different from the current, refresh the query.
161161 if ($ lastStoreId != $ currentStoreId || empty ($ this ->query )) {
162162 $ lastStoreId = $ currentStoreId ;
163163 $ this ->query = $ this ->getListQuery ();
@@ -293,7 +293,7 @@ public function requestFromGithub($page)
293293 }
294294
295295 try {
296- // TODO - Option to configure the batch size
296+ // TODO - Option to configure the batch size
297297 $ batchSize = 100 ;
298298 $ pullsResponse = Helper::initializeGithub ()->getOpenPulls ($ this ->getState ()->get ('github_user ' ), $ this ->getState ()->get ('github_repo ' ), $ page , $ batchSize );
299299 $ pulls = json_decode ($ pullsResponse ->body );
@@ -303,11 +303,11 @@ public function requestFromGithub($page)
303303
304304 // If this is page 1, let's check to see if we need to paginate
305305 if ($ page === 1 ) {
306- // Default this to being a single page of results
306+ // Default this to being a single page of results
307307 $ lastPage = 1 ;
308308 if (isset ($ pullsResponse ->headers ['link ' ])) {
309309 $ linkHeader = $ pullsResponse ->headers ['link ' ];
310- // The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
310+ // The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
311311 if (is_array ($ linkHeader )) {
312312 $ linkHeader = $ linkHeader [0 ];
313313 }
@@ -339,7 +339,7 @@ public function requestFromGithub($page)
339339 $ data = [];
340340 $ labels = [];
341341 foreach ($ pulls as $ pull ) {
342- // Check if this PR is RTC and has a `PR-` branch label
342+ // Check if this PR is RTC and has a `PR-` branch label
343343 $ isRTC = false ;
344344 $ isNPM = false ;
345345 $ branch = $ pull ->base ->ref ;
0 commit comments