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

AT-716: Update Inpsyde in code to Syde (license, copyright, text) #57

Merged
merged 1 commit into from
Jan 20, 2025
Merged
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

one line to give the program's name and an idea of what it does.
Copyright (C) 2020 Inpsyde GmbH
Copyright (C) 2020 Syde GmbH

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ When installed for development, via Composer, Inpsyde Assets also requires:

Please refer to [/docs](./docs) or https://inpsyde.github.io/assets for information.

## License and Copyright
## Copyright and License

This repository is a free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See [LICENSE](./LICENSE) for complete license.
This package is [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see [LICENSE](./LICENSE).
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Inpsyde",
"email": "hello@inpsyde.com",
"homepage": "https://inpsyde.com",
"name": "Syde GmbH",
"homepage": "https://syde.com/",
"email": "hello@syde.com",
"role": "Company"
},
{
Expand Down
6 changes: 2 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ When installed for development, via Composer, Inpsyde Assets also requires:
* brain/monkey (MIT)
* inpsyde/php-coding-standards

## License and Copyright
## Copyright and License

Copyright (c) Inpsyde GmbH.

The team at [Inpsyde](https://inpsyde.com) is engineering the Web since 2006.
This package is [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see [LICENSE](./LICENSE).
9 changes: 0 additions & 9 deletions inc/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets;
Expand Down
8 changes: 0 additions & 8 deletions inc/functions.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<?php # -*- coding: utf-8 -*-
/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets;

Expand Down
9 changes: 0 additions & 9 deletions src/Asset.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets;

use Inpsyde\Assets\Handler\AssetHandler;
Expand Down
9 changes: 0 additions & 9 deletions src/AssetFactory.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets;
Expand Down Expand Up @@ -90,7 +81,7 @@
}

$inFooter = $config['inFooter'] ?? true;
$inFooter

Check failure on line 84 in src/AssetFactory.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/AssetFactory.php:84:13: RiskyTruthyFalsyComparison: Operand of type mixed|true contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
? $asset->isInFooter()
: $asset->isInHeader();

Expand Down
9 changes: 0 additions & 9 deletions src/AssetManager.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets;
Expand Down Expand Up @@ -252,7 +243,7 @@

/** @var int|null $locationId */
$locationId = Asset::HOOK_TO_LOCATION[$currentHook] ?? null;
if (!$locationId) {

Check failure on line 246 in src/AssetManager.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/AssetManager.php:246:13: RiskyTruthyFalsyComparison: Operand of type int|null contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return [];
}

Expand Down Expand Up @@ -308,7 +299,7 @@
*
* @psalm-suppress PossiblyNullArgument
*/
if (!$lastHook && did_action($lastHook) && !doing_action($lastHook)) {

Check failure on line 302 in src/AssetManager.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/AssetManager.php:302:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
$this->assets = new \SplObjectStorage();

return;
Expand Down
9 changes: 0 additions & 9 deletions src/BaseAsset.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets;
Expand Down
9 changes: 0 additions & 9 deletions src/ConfigureAutodiscoverVersionTrait.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets;
Expand Down
9 changes: 0 additions & 9 deletions src/Exception/FileNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Exception;
Expand Down
9 changes: 0 additions & 9 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Exception;
Expand Down
9 changes: 0 additions & 9 deletions src/Exception/InvalidResourceException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Exception;
Expand Down
9 changes: 0 additions & 9 deletions src/Exception/MissingArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Exception;
Expand Down
9 changes: 0 additions & 9 deletions src/Handler/AssetHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets\Handler;

use Inpsyde\Assets\Asset;
Expand Down
9 changes: 0 additions & 9 deletions src/Handler/OutputFilterAwareAssetHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets\Handler;

use Inpsyde\Assets\Asset;
Expand Down
9 changes: 0 additions & 9 deletions src/Handler/OutputFilterAwareAssetHandlerTrait.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Handler;
Expand Down
9 changes: 0 additions & 9 deletions src/Handler/ScriptHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Handler;
Expand Down
9 changes: 0 additions & 9 deletions src/Handler/StyleHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Handler;
Expand Down
9 changes: 0 additions & 9 deletions src/Loader/AbstractWebpackLoader.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Loader;
Expand Down Expand Up @@ -69,7 +60,7 @@
);
}

$data = @file_get_contents($resource)

Check failure on line 63 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:63:17: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
?: ''; // phpcs:ignore
$data = json_decode($data, true);
$errorCode = json_last_error();
Expand Down Expand Up @@ -183,23 +174,23 @@
*/
protected function resolveLocation(string $fileName): int
{
if (stristr($fileName, '-backend')) {

Check failure on line 177 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:177:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return Asset::BACKEND;
}

if (stristr($fileName, '-block')) {

Check failure on line 181 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:181:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return Asset::BLOCK_EDITOR_ASSETS;
}

if (stristr($fileName, '-login')) {

Check failure on line 185 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:185:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return Asset::LOGIN;
}

if (stristr($fileName, '-customizer-preview')) {

Check failure on line 189 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:189:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return Asset::CUSTOMIZER_PREVIEW;
}

if (stristr($fileName, '-customizer')) {

Check failure on line 193 in src/Loader/AbstractWebpackLoader.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

RiskyTruthyFalsyComparison

src/Loader/AbstractWebpackLoader.php:193:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
return Asset::CUSTOMIZER;
}

Expand Down
9 changes: 0 additions & 9 deletions src/Loader/ArrayLoader.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Loader;
Expand Down
9 changes: 0 additions & 9 deletions src/Loader/EncoreEntrypointsLoader.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Loader;
Expand Down
9 changes: 0 additions & 9 deletions src/Loader/LoaderInterface.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets\Loader;

interface LoaderInterface
Expand Down
9 changes: 0 additions & 9 deletions src/Loader/PhpFileLoader.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Loader;
Expand Down
9 changes: 0 additions & 9 deletions src/Loader/WebpackManifestLoader.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\Loader;
Expand Down
9 changes: 0 additions & 9 deletions src/OutputFilter/AssetOutputFilter.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Inpsyde\Assets\OutputFilter;

use Inpsyde\Assets\Asset;
Expand Down
9 changes: 0 additions & 9 deletions src/OutputFilter/AsyncScriptOutputFilter.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the Assets package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Inpsyde\Assets\OutputFilter;
Expand Down
Loading
Loading