Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit d615a44

Browse files
committed
Add copyright notice as requested
1 parent 40b71ac commit d615a44

28 files changed

+445
-9
lines changed

src/_videos/fundamentals/add-a-javascript-module.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ Now create two files:
4747

4848
```php
4949
<?php
50+
/**
51+
* Copyright © Magento, Inc. All rights reserved.
52+
* See COPYING.txt for license details.
53+
*/
54+
5055
use Magento\Framework\Component\ComponentRegistrar;
56+
5157
ComponentRegistrar::register(
5258
ComponentRegistrar::MODULE,
5359
'Learning_Js',

src/_videos/fundamentals/add-new-product-attribute.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ And finally, we create a frontend model to make our value bold:
309309

310310
```php
311311
<?php
312+
/**
313+
* Copyright © Magento, Inc. All rights reserved.
314+
* See COPYING.txt for license details.
315+
*/
316+
312317
namespace Learning\ClothingMaterial\Model\Attribute\Frontend;
313318

314319
use Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend;

src/_videos/fundamentals/create-a-new-module.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ Each module must have this file, which tells Magento how to locate the module. C
8787

8888
```php
8989
<?php
90+
/**
91+
* Copyright © Magento, Inc. All rights reserved.
92+
* See COPYING.txt for license details.
93+
*/
94+
9095
use Magento\Framework\Component\ComponentRegistrar;
9196

9297
ComponentRegistrar::register(

src/contributor-guide/backward-compatible-development/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ Prefix the type name with a question mark when declaring a parameter with a `nul
136136
{% collapsible Example Code %}
137137

138138
```php
139+
<?php
140+
/**
141+
* Copyright © Magento, Inc. All rights reserved.
142+
* See COPYING.txt for license details.
143+
*/
139144

140145
use Magento\Framework\App\ObjectManager;
141146

src/guides/v2.3/coding-standards/docblock-standard-general.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ There are two solutions possible:
203203
**DocBlock with Included Script File:**
204204

205205
```php
206+
<?php
207+
/**
208+
* Copyright © Magento, Inc. All rights reserved.
209+
* See COPYING.txt for license details.
210+
*/
211+
206212
/**
207213
* Magento integration Magento test framework (MTF) bootstrap
208214
*
@@ -223,6 +229,12 @@ class Bootstrap
223229
**DocBlock with Included Class File:**
224230

225231
```php
232+
<?php
233+
/**
234+
* Copyright © Magento, Inc. All rights reserved.
235+
* See COPYING.txt for license details.
236+
*/
237+
226238
namespace Magento\Framework\Profiler\Adapter;
227239

228240
use Magento\Framework\Profiler\AdapterAbstract;
@@ -302,7 +314,12 @@ Class attributes must have a type declaration using `@var` tag.
302314
**Example of Class Attribute:**
303315

304316
```php
305-
// ...
317+
<?php
318+
/**
319+
* Copyright © Magento, Inc. All rights reserved.
320+
* See COPYING.txt for license details.
321+
*/
322+
306323
namespace Magento;
307324

308325
class Profiler
@@ -576,6 +593,12 @@ In general, such method overrides are a [code smell](https://en.wikipedia.org/wi
576593
**DocBlock for the Interface:**
577594

578595
```php
596+
<?php
597+
/**
598+
* Copyright © Magento, Inc. All rights reserved.
599+
* See COPYING.txt for license details.
600+
*/
601+
579602
/**
580603
* Interface for mutable value object for integer values
581604
*/
@@ -598,6 +621,12 @@ interface MutableInterface
598621
**DocBlock for the implementation:**
599622

600623
```php
624+
<?php
625+
/**
626+
* Copyright © Magento, Inc. All rights reserved.
627+
* See COPYING.txt for license details.
628+
*/
629+
601630
/**
602631
* Limited mutable value object for integer values
603632
*/
@@ -731,6 +760,11 @@ Syntax:
731760
See [PHP documentation](https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.method.pkg.html) for more information about the `@method` tag.
732761

733762
```php
763+
<?php
764+
/**
765+
* Copyright © Magento, Inc. All rights reserved.
766+
* See COPYING.txt for license details.
767+
*/
734768

735769
use Magento\Framework\Model\AbstractModel;
736770

src/guides/v2.3/coding-standards/technical-guidelines.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ Use [RFC2119] to interpret keywords like:
5555
__Not recommended:__
5656

5757
```php
58+
<?php
59+
/**
60+
* Copyright © Magento, Inc. All rights reserved.
61+
* See COPYING.txt for license details.
62+
*/
63+
5864
class Config
5965
{
6066
private $data;
@@ -74,6 +80,12 @@ class Config
7480
__Recommended:__
7581

7682
```php
83+
<?php
84+
/**
85+
* Copyright © Magento, Inc. All rights reserved.
86+
* See COPYING.txt for license details.
87+
*/
88+
7789
class Config
7890
{
7991
private $data;
@@ -141,6 +153,12 @@ class Composite
141153
__Not recommended:__
142154

143155
```php
156+
<?php
157+
/**
158+
* Copyright © Magento, Inc. All rights reserved.
159+
* See COPYING.txt for license details.
160+
*/
161+
144162
class Config
145163
{
146164
private $data;
@@ -156,6 +174,12 @@ class Config
156174
__Recommended:__
157175

158176
```php
177+
<?php
178+
/**
179+
* Copyright © Magento, Inc. All rights reserved.
180+
* See COPYING.txt for license details.
181+
*/
182+
159183
class Config
160184
{
161185
private $fileReader;
@@ -233,6 +257,12 @@ class SessionManager
233257
__Not recommended:__
234258

235259
```php
260+
<?php
261+
/**
262+
* Copyright © Magento, Inc. All rights reserved.
263+
* See COPYING.txt for license details.
264+
*/
265+
236266
class AbstractController extends Action
237267
{
238268
// ...
@@ -268,6 +298,12 @@ class Edit extends AbstractController
268298
__Recommended:__
269299

270300
```php
301+
<?php
302+
/**
303+
* Copyright © Magento, Inc. All rights reserved.
304+
* See COPYING.txt for license details.
305+
*/
306+
271307
class Edit extends Action
272308
{
273309
public function __constructor(
@@ -341,6 +377,12 @@ echo $url->get($baseUrl, 'custom/path');
341377
__Not recommended:__
342378

343379
```php
380+
<?php
381+
/**
382+
* Copyright © Magento, Inc. All rights reserved.
383+
* See COPYING.txt for license details.
384+
*/
385+
344386
class Edit extends Action
345387
{
346388
public function execute()
@@ -364,6 +406,12 @@ class View extends Template
364406
__Recommended:__
365407

366408
```php
409+
<?php
410+
/**
411+
* Copyright © Magento, Inc. All rights reserved.
412+
* See COPYING.txt for license details.
413+
*/
414+
367415
class Edit extends Action
368416
{
369417
public function execute()

src/guides/v2.3/config-guide/bootstrap/mage-dirs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ You can set `MAGE_DIRS` in any of the following ways:
2121
* Use a custom entry point script such as the following:
2222

2323
```php
24+
<?php
25+
/**
26+
* Copyright © Magento, Inc. All rights reserved.
27+
* See COPYING.txt for license details.
28+
*/
29+
2430
use Magento\Framework\App\Bootstrap;
2531
use Magento\Framework\App\Filesystem\DirectoryList;
2632
use Magento\Framework\App\Http;

src/guides/v2.3/config-guide/bootstrap/magento-bootstrap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Sample entry point script that modifies the bootstrap object:
4040

4141
```php
4242
<?php
43+
/**
44+
* Copyright © Magento, Inc. All rights reserved.
45+
* See COPYING.txt for license details.
46+
*/
47+
4348
use Magento\Framework\App\Bootstrap;
4449
use Magento\Framework\App\Http;
4550

src/guides/v2.3/config-guide/cli/config-cli-subcommands-i18n.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ Similar to the preceding example, generate a `.csv` file, but instead of specify
298298
*/
299299

300300
use Magento\Framework\Component\ComponentRegistrar;
301+
301302
ComponentRegistrar::register(
302303
ComponentRegistrar::LANGUAGE,
303304
'magento_xx_yy',

src/guides/v2.3/config-guide/config/config-create.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ To create a new configuration type:
8484
**Example:**
8585

8686
```php
87+
<?php
88+
/**
89+
* Copyright © Magento, Inc. All rights reserved.
90+
* See COPYING.txt for license details.
91+
*/
92+
8793
namespace Vendor\ModuleName\Model\Config;
8894

8995
use Magento\Framework\Config\Reader\Filesystem;

0 commit comments

Comments
 (0)