Skip to content

Commit

Permalink
remove Illuminate
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSuddenJoy authored Jun 17, 2024
1 parent 0740457 commit 0177af9
Show file tree
Hide file tree
Showing 97 changed files with 268 additions and 270 deletions.
4 changes: 2 additions & 2 deletions app/Models/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

class Activity extends Model
class Activity extends \Tests\Legacy\Services\Model
{
/**
* @var bool
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Actkey.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

class Actkey extends Model
class Actkey extends \Tests\Legacy\Services\Model
{
/**
* The attributes that are mass assignable.
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Coyote\Models;

use Coyote\Services\Media\Url;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
Expand All @@ -15,7 +15,7 @@
* @property int $count
* @property mixed $content
*/
class Asset extends Model
class Asset extends \Tests\Legacy\Services\Model
{
const UPDATED_AT = null;

Expand Down
4 changes: 2 additions & 2 deletions app/Models/Banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property string $filename
Expand All @@ -11,7 +11,7 @@
* @property int $impressions
* @property int $clicks
*/
class Banner extends Model
class Banner extends \Tests\Legacy\Services\Model
{
/**
* @var bool
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
Expand All @@ -13,7 +13,7 @@
* @property int $max_reputation
* @property bool $enable_sponsor
*/
class Block extends Model
class Block extends \Tests\Legacy\Services\Model
{
/**
* The attributes that are mass assignable.
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

class Campaign extends Model
class Campaign extends \Tests\Legacy\Services\Model
{
/**
* @var bool
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
Expand All @@ -19,7 +19,7 @@
* @property string $resource_type
* @property int $resource_id
*/
class Comment extends Model
class Comment extends \Tests\Legacy\Services\Model
{
use SoftDeletes;

Expand Down
4 changes: 2 additions & 2 deletions app/Models/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property string $name
* @property string $code
* @property float $vat_rate
*/
class Country extends Model
class Country extends \Tests\Legacy\Services\Model
{
/**
* The attributes that are mass assignable.
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
Expand All @@ -11,7 +11,7 @@
* @property int $amount
* @property int $user_id
*/
class Coupon extends Model
class Coupon extends \Tests\Legacy\Services\Model
{
use SoftDeletes;

Expand Down
4 changes: 2 additions & 2 deletions app/Models/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
* @property string $name
* @property string $symbol
*/
class Currency extends Model
class Currency extends \Tests\Legacy\Services\Model
{
const PLN = 1;
const EUR = 2;
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $currency_id
* @property string $date
* @property float $value
*/
class Exchange extends Model
class Exchange extends \Tests\Legacy\Services\Model
{
/**
* @var bool
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
* @property string $name
* @property string $default
* @property \Illuminate\Database\Eloquent\Relations\Pivot $pivot
*/
class Feature extends Model
class Feature extends \Tests\Legacy\Services\Model
{
/**
* @var bool
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coyote;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
Expand All @@ -16,7 +16,7 @@
* @property string $fingerprint
* @property \Coyote\User $user
*/
class Firewall extends Model
class Firewall extends \Tests\Legacy\Services\Model
{
protected $table = 'firewall';

Expand Down
6 changes: 3 additions & 3 deletions app/Models/Firm.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Coyote\Services\Media\Factory as MediaFactory;
use Coyote\Services\Media\Logo;
use Coyote\Services\Media\SerializeClass;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
Expand All @@ -29,7 +29,7 @@
* @property Logo $logo
* @property \Coyote\Country $country
*/
class Firm extends Model
class Firm extends \Tests\Legacy\Services\Model
{
use SoftDeletes, SerializeClass;

Expand Down Expand Up @@ -192,7 +192,7 @@ public function setCountryAttribute(?string $country)

/**
* @param array $attributes
* @return $this|Model
* @return $this|\Tests\Legacy\Services\Model
*/
public function fill(array $attributes)
{
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Firm/Benefit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Coyote\Firm;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

class Benefit extends Model
class Benefit extends \Tests\Legacy\Services\Model
{
/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Firm/Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Coyote\Firm;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @deprecated
* @property string $file
* @property string $url
*/
class Gallery extends Model
class Gallery extends \Tests\Legacy\Services\Model
{
/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Firm/Industry.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class Industry extends \Tests\Legacy\Services\Model
{
/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Flag.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Coyote;

use Coyote\Models\Flag\Resource;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
Expand All @@ -24,7 +24,7 @@
* @property Job[] $jobs
* @property Microblog[] $microblogs
*/
class Flag extends Model
class Flag extends \Tests\Legacy\Services\Model
{
use SoftDeletes;

Expand Down
6 changes: 2 additions & 4 deletions app/Models/Flag/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace Coyote\Models\Flag;

use Illuminate\Database\Eloquent\Model;

class Resource extends Model
class Resource extends \Tests\Legacy\Services\Model
{
/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Flag/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace Coyote\Flag;

use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property string $name
* @property string $description
*/
class Type extends Model
class Type extends \Tests\Legacy\Services\Model
{
/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
10 changes: 5 additions & 5 deletions app/Models/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Coyote\Forum\Access;
use Coyote\Models\Scopes\TrackForum;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
Expand Down Expand Up @@ -35,7 +35,7 @@
* @property Group[]|\Illuminate\Support\Collection $groups
* @property Tag[] $tags
*/
class Forum extends Model
class Forum extends \Tests\Legacy\Services\Model
{
use TrackForum;

Expand Down Expand Up @@ -89,9 +89,9 @@ public static function boot()
{
parent::boot();

static::saving(function (Forum $model) {
if (empty($model->parent_id)) {
$model->parent_id = null;
static::saving(function (Forum $\Tests\Legacy\Services\Model) {
if (empty($\Tests\Legacy\Services\Model->parent_id)) {
$\Tests\Legacy\Services\Model->parent_id = null;
}
});
}
Expand Down
8 changes: 4 additions & 4 deletions app/Models/Forum/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Coyote\Forum;

use Coyote\Group;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Model;

class Access extends Model
class Access extends \Tests\Legacy\Services\Model
{
/**
* The attributes that are mass assignable.
Expand All @@ -15,7 +15,7 @@ class Access extends Model
protected $fillable = ['forum_id', 'group_id'];

/**
* The database table used by the model.
* The database table used by the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand All @@ -27,7 +27,7 @@ class Access extends Model
public $timestamps = false;

/**
* The primary key for the model.
* The primary key for the \Tests\Legacy\Services\Model.
*
* @var string
*/
Expand Down
Loading

0 comments on commit 0177af9

Please sign in to comment.