Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/datatable.directory/src/commit/fabc3ad24e0bdaf9663185a587e2a590b624c905/app/Tables/RowNumerator.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
datatable.directory codebase https://datatable.directory/
 
 
 
 
 
 
datatable.directory/app/Tables/RowNumerator.php

32 lines
597 B

<?php
namespace App\Tables;
use App\Models\Row;
class RowNumerator
{
/** @var int */
private $next;
/** @var int */
private $last;
/**
* Create a numerator for the given number of rows.
*
* @param int $capacity
*/
public function __construct($capacity)
{
list($this->next, $this->last) = Row::allocateRowIDs($capacity);
}
public function next()
{
if ($this->next > $this->last)
throw new \OutOfBoundsException("Row numerator has run out of allocated GRID slots");
return $this->next++;
}
}