Skip to content

Commit

Permalink
Merge pull request #8 from Laragear/analysis-dj4gG9
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
DarkGhostHunter authored Mar 13, 2023
2 parents 3d24774 + 91601a0 commit 1f97261
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/Compiler/Pipes/UpdateListingFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Closure;
use Laragear\Preload\Listing;

use const PHP_EOL;

class UpdateListingFiles
Expand Down
1 change: 1 addition & 0 deletions src/Compiler/Pipes/UpdateListingStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Support\Facades\File;
use Laragear\Preload\Exceptions\PreloadException;
use Laragear\Preload\Listing;

use function now;
use function realpath;

Expand Down
1 change: 1 addition & 0 deletions src/Compiler/Pipes/UpdateOpcacheConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Closure;
use Laragear\Preload\Listing;

use function number_format;

class UpdateOpcacheConfig
Expand Down
3 changes: 2 additions & 1 deletion src/Http/Middleware/PreloadMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
use Laragear\Preload\Condition;
use Laragear\Preload\Facades\Preload;
use Laragear\Preload\Jobs\StorePreloadScript;
use function resolve;
use Symfony\Component\HttpFoundation\Response;

use function resolve;

class PreloadMiddleware
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Lister/Pipes/CutListByMemoryLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Closure;
use Laragear\Preload\Listing;

use function round;

class CutListByMemoryLimit
Expand Down
1 change: 1 addition & 0 deletions src/Lister/Pipes/MayAppendExternalFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Closure;
use Laragear\Preload\Listing;
use Laragear\Preload\Preloader;

use function max;

class MayAppendExternalFiles
Expand Down
3 changes: 2 additions & 1 deletion src/Opcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace Laragear\Preload;

use function function_exists;
use RuntimeException;

use function function_exists;

/**
* Class Opcache.
*
Expand Down
9 changes: 5 additions & 4 deletions src/Preloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
use Closure;
use Illuminate\Contracts\Config\Repository as ConfigContract;
use Illuminate\Support\Collection;
use function is_string;
use function resolve;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;

use function is_string;
use function resolve;

class Preloader
{
/**
Expand Down Expand Up @@ -53,7 +54,7 @@ public function __construct(
* @param \Closure|string ...$exclude
* @return void
*/
public function exclude(Closure|string ...$exclude): void
public function exclude(Closure | string ...$exclude): void
{
$this->exclude = $this->normalizeListing($exclude);
}
Expand All @@ -64,7 +65,7 @@ public function exclude(Closure|string ...$exclude): void
* @param \Closure|string ...$append
* @return void
*/
public function append(Closure|string ...$append): void
public function append(Closure | string ...$append): void
{
$this->append = $this->normalizeListing($append);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Compiler/CompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function test_generates_script_in_path(): void
SCRIPT
, $script);
, $script);

return true;
})
Expand Down

0 comments on commit 1f97261

Please sign in to comment.