Skip to content

Commit

Permalink
Merge pull request #331 from commerce-docs/ds_upd-copy
Browse files Browse the repository at this point in the history
Update the copyright in code samples
  • Loading branch information
dshevtsov authored Nov 22, 2024
2 parents 27a26e0 + 216ad7d commit ad03f1d
Show file tree
Hide file tree
Showing 25 changed files with 157 additions and 155 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ local-test.yml

# yalc
.yalc
yalc.lock
yalc.lock

tmp/
4 changes: 2 additions & 2 deletions src/pages/best-practices/phpstorm/add-code-inspections.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ Implement `InvalidDependencyInjectionTypeInspection` inspection that extends `Xm

```java
/*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

package com.magento.idea.magento2plugin.inspections.xml;
Expand Down
36 changes: 18 additions & 18 deletions src/pages/coding-standards/docblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ Use the following templates for the license notice and copyright blocks:
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Magento\Framework\Api;
Expand All @@ -153,8 +153,8 @@ interface MetadataObjectInterface
<?xml version="1.0"?>
<!--
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/
-->
```
Expand All @@ -163,8 +163,8 @@ interface MetadataObjectInterface

```javascript
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/
```

Expand Down Expand Up @@ -207,8 +207,8 @@ There are two solutions possible:
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

/**
Expand All @@ -233,8 +233,8 @@ class Bootstrap
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Magento\Framework\Profiler\Adapter;
Expand Down Expand Up @@ -318,8 +318,8 @@ Class attributes must have a type declaration using `@var` tag.
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Magento;
Expand Down Expand Up @@ -597,8 +597,8 @@ In general, such method overrides are a [code smell](https://en.wikipedia.org/wi
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

/**
Expand All @@ -625,8 +625,8 @@ interface MutableInterface
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

/**
Expand Down Expand Up @@ -764,8 +764,8 @@ See [PHP documentation](https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDoc
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Magento\Catalog\Model\Product;
Expand Down
32 changes: 16 additions & 16 deletions src/pages/coding-standards/technical-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ __Not recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Config
Expand All @@ -79,8 +79,8 @@ __Recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Config
Expand Down Expand Up @@ -144,8 +144,8 @@ __Not recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Config
Expand All @@ -165,8 +165,8 @@ __Recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Config
Expand Down Expand Up @@ -241,8 +241,8 @@ __Not recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class AbstractController extends Action
Expand Down Expand Up @@ -282,8 +282,8 @@ __Recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Edit extends Action
Expand Down Expand Up @@ -354,8 +354,8 @@ __Not recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Edit extends Action
Expand Down Expand Up @@ -383,8 +383,8 @@ __Recommended:__
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

class Edit extends Action
Expand Down
4 changes: 2 additions & 2 deletions src/pages/development/build/dependency-injection-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ The example below overrides the `isVisible` method from the `Magento\Checkout\Bl
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace ExampleCorp\OverrideExample\Block\Onepage;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/development/cache/page/private-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ The following example adds comments to [app/code/Magento/Catalog/etc/frontend/se
<?xml version="1.0"?>
<!--
/**
* Copyright &copy; 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
16 changes: 8 additions & 8 deletions src/pages/development/cache/page/public-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ You can use the Admin to define caching policies or you can define them programm
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

use Magento\Framework\App\Action\Action;
Expand Down Expand Up @@ -101,8 +101,8 @@ For example, let's declare a context variable that shows a drinks catalog and ad
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

use Magento\Customer\Model\Session;
Expand Down Expand Up @@ -160,8 +160,8 @@ First, your entity module must implement [`Magento/Framework/DataObject/Identity
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

use Magento\Framework\DataObject\IdentityInterface;
Expand Down Expand Up @@ -189,8 +189,8 @@ Second, the block object must also implement `Magento/Framework/DataObject/Ident
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

use Magento\Framework\DataObject\IdentityInterface;
Expand Down
8 changes: 4 additions & 4 deletions src/pages/development/cache/partial/cache-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ You may declare multiple cache types.
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace VendorName\ModuleName\Model\Cache\Type;
Expand Down Expand Up @@ -189,8 +189,8 @@ Translate cache type model class is defined in `Magento\Framework\App\Cache\Type
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Magento\Framework\App\Cache\Type;
Expand Down
32 changes: 16 additions & 16 deletions src/pages/development/components/add-admin-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Here are the required files to get started:
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

use Magento\Framework\Component\ComponentRegistrar;
Expand Down Expand Up @@ -243,8 +243,8 @@ The corresponding file is `app/code/Dev/Grid/Ui/DataProvider/Category/ListingDat
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Ui\DataProvider\Category;
Expand Down Expand Up @@ -288,8 +288,8 @@ The plugin then gets a `name` attribute:
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Plugin;
Expand Down Expand Up @@ -381,8 +381,8 @@ The collection class translates to `app/code/Dev/Grid/Ui/DataProvider/Category/L
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Ui\DataProvider\Category\Listing;
Expand Down Expand Up @@ -412,8 +412,8 @@ The resource model class translates to `app/code/Dev/Grid/Model/ResourceModel/Ca
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Model\ResourceModel;
Expand All @@ -434,8 +434,8 @@ The UI grid file defines a column actions class `Dev\Grid\Ui\Component\Category\
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Ui\Component\Category\Listing\Column;
Expand Down Expand Up @@ -514,8 +514,8 @@ The main route defined in `app/code/Dev/Grid/etc/adminhtml/menu.xml` as `dev_gri
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Controller\Adminhtml\Index;
Expand Down Expand Up @@ -569,8 +569,8 @@ The Ui grid file defines the custom route `dev_grid/category/massDelete` (mass d
```php
<?php
/**
* Copyright &copy; Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright Adobe
* All rights reserved.
*/

namespace Dev\Grid\Controller\Adminhtml\Category;
Expand Down
Loading

0 comments on commit ad03f1d

Please sign in to comment.