Skip to content

Commit

Permalink
chore: Add SPDX header
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Jun 2, 2024
1 parent 64200fd commit d95aa6f
Show file tree
Hide file tree
Showing 45 changed files with 339 additions and 273 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2021 Robin Appelman <[email protected]>
# SPDX-License-Identifier: MIT
on: [push, pull_request]

name: CI
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
# SPDX-License-Identifier: MIT
.idea
vendor
composer.lock
Expand Down
6 changes: 6 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php

/**
* SPDX-FileCopyrightText: 2021 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
Expand Down
4 changes: 1 addition & 3 deletions LICENCE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
The MIT License (MIT)

Copyright (c) 2015 Robin Appelman
Copyright (c) 2015 Robin Appelman <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
- SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
- SPDX-License-Identifier: MIT
-->
# Streams #

[![CI](https://github.com/icewind1991/Streams/actions/workflows/ci.yaml/badge.svg)](https://github.com/icewind1991/Streams/actions/workflows/ci.yaml)
Expand Down
2 changes: 2 additions & 0 deletions composer.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
SPDX-License-Identifier: MIT
6 changes: 2 additions & 4 deletions src/CallbackWrapper.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;

/**
Expand Down
19 changes: 2 additions & 17 deletions src/CountWrapper.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2018 Robin Appelman <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2018 Robin Appelman <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/Directory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/DirectoryFilter.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2015 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2015 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/DirectoryWrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2015 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2015 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/File.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
21 changes: 2 additions & 19 deletions src/HashWrapper.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2019, Roeland Jago Douma <[email protected]>
*
* @author Roeland Jago Douma <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2019 Roeland Jago Douma <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/IteratorDirectory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/NullWrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/Path.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/PathWrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2016 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2016 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
21 changes: 2 additions & 19 deletions src/ReadHashWrapper.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2019, Roeland Jago Douma <[email protected]>
*
* @author Roeland Jago Douma <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2019 Roeland Jago Douma <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/RetryWrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2016 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2016 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/SeekableWrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/Url.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/UrlCallback.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
5 changes: 2 additions & 3 deletions src/Wrapper.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams;
Expand Down
19 changes: 2 additions & 17 deletions src/WrapperHandler.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2019 Robin Appelman <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2019 Robin Appelman <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams;
Expand Down
19 changes: 2 additions & 17 deletions src/WriteHashWrapper.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2019 Robin Appelman <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2019 Robin Appelman <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams;
Expand Down
7 changes: 3 additions & 4 deletions tests/CallbackWrapperTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
/**
* Copyright (c) 2014 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2014 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams\Tests;

class CallbackWrapperTest extends WrapperTest {
Expand Down
19 changes: 2 additions & 17 deletions tests/CountWrapperTest.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2018 Robin Appelman <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2018 Robin Appelman <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace Icewind\Streams\Tests;
Expand Down
5 changes: 2 additions & 3 deletions tests/DirectoryFilterTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2015 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2015 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams\Tests;
Expand Down
5 changes: 2 additions & 3 deletions tests/DirectoryTestWrapperTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Copyright (c) 2015 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
* SPDX-FileCopyrightText: 2015 Robin Appelman <[email protected]>
* SPDX-License-Identifier: MIT
*/

namespace Icewind\Streams\Tests;
Expand Down
Loading

0 comments on commit d95aa6f

Please sign in to comment.