Skip to content

Commit

Permalink
[Coding Style] Enable rule PSR12.Files.FileHeader + unify file headers (
Browse files Browse the repository at this point in the history
#22132)

* [Coding Style] Enable rule PSR12.Files.FileHeader

* Apply CS

* Replace Piwik with Matomo in file headers

* Unify file headers (position, no. of lines, https links)

* Rebuild dist files

* Apply CS

* Fix system test that relies on line numbers in a file that had the file header updated

---------

Co-authored-by: Stefan Giehl <[email protected]>
  • Loading branch information
michalkleiner and sgiehl authored Apr 20, 2024
1 parent 6274865 commit 9a3ef94
Show file tree
Hide file tree
Showing 3,408 changed files with 13,246 additions and 10,825 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 4 additions & 3 deletions core/API/ApiRenderer.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/API/CORSHandler.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Piwik\Common;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DataTableGenericFilter.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DataTableManipulator.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DataTableManipulator/Flattener.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API\DataTableManipulator;

use Piwik\API\DataTableManipulator;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DataTableManipulator/LabelFilter.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API\DataTableManipulator;

use Piwik\API\DataTableManipulator;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DataTableManipulator/ReportTotalsCalculator.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API\DataTableManipulator;

use Piwik\API\DataTableManipulator;
Expand Down
5 changes: 3 additions & 2 deletions core/API/DataTablePostProcessor.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;
Expand Down
7 changes: 4 additions & 3 deletions core/API/DocumentationGenerator.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
6 changes: 4 additions & 2 deletions core/API/Inconsistencies.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

/**
Expand Down
6 changes: 3 additions & 3 deletions core/API/NoDefaultValue.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;
Expand Down
6 changes: 3 additions & 3 deletions core/API/Proxy.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;
Expand Down
7 changes: 4 additions & 3 deletions core/API/Request.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/API/ResponseBuilder.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\API;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/Access.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/Access/CapabilitiesProvider.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access;

use Exception;
Expand Down
7 changes: 4 additions & 3 deletions core/Access/Capability.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access;

abstract class Capability
Expand Down
7 changes: 4 additions & 3 deletions core/Access/Role.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access;

abstract class Role
Expand Down
7 changes: 4 additions & 3 deletions core/Access/Role/Admin.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access\Role;

use Piwik\Access\Role;
Expand Down
7 changes: 4 additions & 3 deletions core/Access/Role/View.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access\Role;

use Piwik\Access\Role;
Expand Down
7 changes: 4 additions & 3 deletions core/Access/Role/Write.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access\Role;

use Piwik\Access\Role;
Expand Down
7 changes: 4 additions & 3 deletions core/Access/RolesProvider.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Access;

use Piwik\Access\Role\Admin;
Expand Down
5 changes: 3 additions & 2 deletions core/Application/Environment.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Application;
Expand Down
5 changes: 3 additions & 2 deletions core/Application/EnvironmentManipulator.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Application;
Expand Down
5 changes: 3 additions & 2 deletions core/Application/Kernel/EnvironmentValidator.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Application\Kernel;
Expand Down
5 changes: 3 additions & 2 deletions core/Application/Kernel/GlobalSettingsProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

namespace Piwik\Application\Kernel;
Expand Down
Loading

0 comments on commit 9a3ef94

Please sign in to comment.