Skip to content

Commit aae333c

Browse files
committed
[TASK] Add license to each file
1 parent d545130 commit aae333c

File tree

378 files changed

+3415
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+3415
-5
lines changed

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ code-style:
99
$(PHP_BIN) vendor/bin/phpcs
1010

1111
.PHONY: fix-code-style
12-
fix-code-style:
12+
fix-code-style: add-license
1313
$(PHP_BIN) vendor/bin/phpcbf
1414

1515
.PHONY: static-code-analysis
@@ -79,3 +79,18 @@ rector: ## Refactor code using rector
7979

8080
.PHONY: pre-commit-test
8181
pre-commit-test: fix-code-style test code-style static-code-analysis
82+
83+
add-license:
84+
find ./packages/ -name "*.php" -exec tools/license.sh {} \;
85+
find ./tests/ -name "*.php" -exec tools/license.sh {} \;
86+
87+
.PHONY: docs
88+
docs: ## Render documentation
89+
$(PHP_BIN) tools/phpDocumentor.phar
90+
91+
.PHONY: docs-watch
92+
docs-watch: ## Render documentation and watch for changes
93+
while true; do \
94+
$(MAKE) docs; \
95+
inotifywait -qre close_write docs; \
96+
done

packages/guides-cli/src/Application.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli;
615

716
use Symfony\Component\Console\Application as BaseApplication;

packages/guides-cli/src/Command/Run.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Command;
615

716
use Flyfinder\Finder;

packages/guides-cli/src/Command/WorkingDirectorySwitcher.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Command;
615

716
use RuntimeException;

packages/guides-cli/src/Config/Configuration.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Config;
615

716
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;

packages/guides-cli/src/Config/XmlFileLoader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Config;
615

716
use Symfony\Component\Config\Loader\FileLoader;

packages/guides-cli/src/DependencyInjection/ApplicationExtension.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\DependencyInjection;
615

716
use InvalidArgumentException;

packages/guides-cli/src/DependencyInjection/ContainerFactory.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\DependencyInjection;
615

716
use LogicException;

packages/guides-cli/src/Logger/SpyProcessor.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Logger;
615

716
use Monolog\LogRecord;

packages/guides-cli/tests/unit/Logger/SpyProcessorTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
514
namespace phpDocumentor\Guides\Cli\Logger;
615

716
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)