Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from PHP-CS-Fixer #1725

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
__DIR__ . '/resources/',
__DIR__ . '/routes/',
__DIR__ . '/tests/',
__DIR__ . '/scripts/',
],
function (PhpCsFixer\Finder $finder, $dir) {
return $finder->in($dir);
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Sync extends Command
'lychee:sync ' .
'{dir* : directory to sync} ' . // string[]
'{--album_id= : Album ID to import to} ' . // string or null
'{--owner_id=0 : Owner ID of imported photos} ' . // string
'{--owner_id=1 : Owner ID of imported photos} ' . // string
'{--resync_metadata : Re-sync metadata of existing files} ' . // bool
'{--delete_imported=%s : Delete the original files} ' . // string
'{--import_via_symlink=%s : Imports photos from via a symlink instead of copying the files} ' . // string
Expand Down
1 change: 0 additions & 1 deletion app/Http/Livewire/Components/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Livewire\Components;

use App\Contracts\Models\AbstractAlbum;
use App\Enum\Livewire\GalleryMode;
use App\Enum\Livewire\PageMode;
use App\Http\Livewire\Traits\AlbumProperty;
Expand Down
8 changes: 3 additions & 5 deletions scripts/gen_release.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ function new_version(array $curr_version, string $kind): array
{
$new_version = $curr_version;
if ($kind === 'major') {
$new_version[1] += 1;
$new_version[1]++;
$new_version[2] = 0;
}
else
{
$new_version[2] += 1;
} else {
$new_version[2]++;
}

if ($curr_version[1] === 100 || $curr_version[2] === 100) {
Expand Down