Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 23, 2023
1 parent 65df5a3 commit 02564e4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Model/IPInfoRelationship.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of fof/geoip.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FoF\GeoIP\Model;

use Flarum\Post\Post;
Expand All @@ -9,12 +18,12 @@
class IPInfoRelationship
{
protected $geoIP;

public function __construct(GeoIPRepository $geoIP)
{
$this->geoIP = $geoIP;
}

public function __invoke(Post $post): HasOne
{
return $post->hasOne(IPInfo::class, 'address', 'ip_address')
Expand Down

0 comments on commit 02564e4

Please sign in to comment.