Skip to content

Commit

Permalink
Add license + copyright to all files (#2891)
Browse files Browse the repository at this point in the history
* add license + copyright to all files
* fix delete_legacy script
  • Loading branch information
ildyria authored Jan 14, 2025
1 parent c896672 commit a56206f
Show file tree
Hide file tree
Showing 1,688 changed files with 10,106 additions and 43 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function (PhpCsFixer\Finder $finder, $dir) {
'only_booleans' => true,
'position' => 'end',
],
// 'header_comment' => ['header' => "SPDX-License-Identifier: MIT\nCopyright (c) 2017-2018 Tobias Reich\nCopyright (c) 2018-2025 LycheeOrg", 'comment_type' => 'PHPDoc', 'location' => 'after_open', 'separate' => 'bottom'],
];
$config = new PhpCsFixer\Config();

Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Action.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Factories\AlbumFactory;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Archive.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Contracts\Models\AbstractAlbum;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Create.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Constants\AccessPermissionConstants as APC;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/CreateTagAlbum.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Exceptions\ModelDBException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Delete.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Actions\Photo\Delete as PhotoDelete;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/ListAlbums.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\DTO\AlbumSortingCriterion;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Merge.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Exceptions\Internal\QueryBuilderException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Move.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Exceptions\ModelDBException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/PositionData.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Contracts\Models\AbstractAlbum;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/SetHeader.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Http\Controllers\Gallery\AlbumController;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/SetProtectionPolicy.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Exceptions\Internal\FrameworkException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/SetSmartProtectionPolicy.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\SmartAlbums\BaseSmartAlbum;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Transfer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Models\AccessPermission;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Album/Unlock.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Album;

use App\Constants\AccessPermissionConstants as APC;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Albums/PositionData.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Albums;

use App\Contracts\Exceptions\InternalLycheeException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Albums/Top.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Albums;

use App\Contracts\Exceptions\InternalLycheeException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Db/BaseOptimizer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Db;

use App\Enum\DbDriverType;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Db/OptimizeDb.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Db;

use App\Enum\DbDriverType;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Db/OptimizeTables.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Db;

use App\Enum\DbDriverType;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics;

use App\Exceptions\Internal\QueryBuilderException;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Diagnostics.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics;

class Diagnostics
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Errors.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics;

use App\Actions\Diagnostics\Pipes\Checks\AdminUserExistsCheck;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Info.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics;

use App\Actions\Diagnostics\Pipes\Infos\CountForeignKeyInfo;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/AdminUserExistsCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/AppUrlMatchCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/BasicPermissionCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/ConfigSanityCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/DBIntegrityCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/DBSupportCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/ForeignKeyListInfo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
6 changes: 6 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

namespace App\Actions\Diagnostics\Pipes\Checks;

use App\Contracts\DiagnosticPipe;
Expand Down
Loading

0 comments on commit a56206f

Please sign in to comment.