@kitsunet brought up the question on our rules regarding copyright doc blocks in our classes.
We agreed to the positioning of such block: If we follow PSR-12 it would be the first thing in every class, even before any declare directives.
we want to keep our "This file is part of the [...] package" version
introduce a reduced version without any dynamic parts
get rid of the per-file copyright doc blocks (legally they aren't required)
That means a php file would start with
<?php
/*
* (c) Contributors of the Neos Project - www.neos.io
* Please see the LICENSE file which was distributed with this source code.
*/
declare(strict_types=1);
namespace Neos\ContentRepository\Core;
use Neos\Utility\Arrays;
Not only do we want to use this pattern for new files, but the goal would be to adjust all current files as well lint against these rules in ci.
Subtask of https://github.com/neos/neos-development-collection/issues/4478
@kitsunet brought up the question on our rules regarding copyright doc blocks in our classes. We agreed to the positioning of such block: If we follow PSR-12 it would be the first thing in every class, even before any
declare
directives.On slack we voted for option 2:
That means a php file would start with
Not only do we want to use this pattern for new files, but the goal would be to adjust all current files as well lint against these rules in ci.