Skip to content

Commit

Permalink
Merge pull request #8 from dachcom-digital/coding-standard/refactor-m…
Browse files Browse the repository at this point in the history
…aster

[CS] Refactor
  • Loading branch information
solverat authored Dec 5, 2024
2 parents f342c60 + ee691f3 commit 0be5885
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Builder/SocialPostBuilder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Builder;

use Carbon\Carbon;
Expand Down Expand Up @@ -79,7 +90,6 @@ public function fetch(FetchData $data): void
}

if (isset($userTimelineItems['errors'])) {

$errorMessage = implode(', ', array_map(static function ($error) {
return $error['message'] ?? '';
}, $userTimelineItems['errors']));
Expand Down
11 changes: 11 additions & 0 deletions src/Client/TwitterClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Client;

use Abraham\TwitterOAuth\TwitterOAuth;
Expand Down
11 changes: 11 additions & 0 deletions src/Definition/ConnectorDefinition.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Definition;

use SocialData\Connector\Twitter\Model\EngineConfiguration;
Expand Down
11 changes: 11 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
11 changes: 11 additions & 0 deletions src/DependencyInjection/SocialDataTwitterConnectorExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\DependencyInjection;

use Symfony\Component\Config\FileLocator;
Expand Down
11 changes: 11 additions & 0 deletions src/EventListener/Admin/AssetListener.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\EventListener\Admin;

use Pimcore\Event\BundleManager\PathsEvent;
Expand Down
11 changes: 11 additions & 0 deletions src/Form/Admin/Type/TwitterEngineType.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Form\Admin\Type;

use SocialData\Connector\Twitter\Model\EngineConfiguration;
Expand Down
11 changes: 11 additions & 0 deletions src/Form/Admin/Type/TwitterFeedType.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Form\Admin\Type;

use SocialData\Connector\Twitter\Model\FeedConfiguration;
Expand Down
11 changes: 11 additions & 0 deletions src/Model/EngineConfiguration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Model;

use SocialData\Connector\Twitter\Form\Admin\Type\TwitterEngineType;
Expand Down
11 changes: 11 additions & 0 deletions src/Model/FeedConfiguration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter\Model;

use SocialData\Connector\Twitter\Form\Admin\Type\TwitterFeedType;
Expand Down
11 changes: 11 additions & 0 deletions src/SocialDataTwitterConnectorBundle.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace SocialData\Connector\Twitter;

use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
Expand Down

0 comments on commit 0be5885

Please sign in to comment.