Skip to content

Commit

Permalink
Merge pull request #46 from spatie/analysis-bQOZNM
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Rias authored Feb 18, 2020
2 parents a7c84d3 + 01c59b7 commit 6d4a379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function flush()
static::$values = [];
}

protected static function objectHash($object) : string
protected static function objectHash($object): string
{
return is_string($object) ? $object : spl_object_hash($object);
}
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Spatie\Once\Cache;
use Spatie\Once\Backtrace;
use Spatie\Once\Cache;

function once($callback)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/OnceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Spatie\Once\Test;

use Spatie\Once\Cache;
use PHPUnit\Framework\TestCase;
use Spatie\Once\Cache;

class OnceTest extends TestCase
{
Expand Down

0 comments on commit 6d4a379

Please sign in to comment.