Skip to content

Remove forbidden @author tag from framework (part 3) #37020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: 2.4-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form field renderer interface
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Element\Renderer;

Expand Down
6 changes: 2 additions & 4 deletions lib/internal/Magento/Framework/Data/Form/Element/Reset.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form relset element
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Element;

Expand Down
5 changes: 2 additions & 3 deletions lib/internal/Magento/Framework/Data/Form/Element/Select.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Framework\Data\Form\Element;

Expand All @@ -14,7 +14,6 @@
* Form select element
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Select extends AbstractElement
Expand Down
15 changes: 8 additions & 7 deletions lib/internal/Magento/Framework/Data/Form/Element/Submit.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* Form submit element
*
* @author Magento Core Team <core@magentocommerce.com>
* Copyright 2011 Adobe
* All Rights Reserved.
*/

namespace Magento\Framework\Data\Form\Element;

use Magento\Framework\Escaper;

/**
* Form submit element
*/
class Submit extends AbstractElement
{
/**
Expand All @@ -33,6 +32,8 @@ public function __construct(
}

/**
* Get HTML
*
* @return mixed
*/
public function getHtml()
Expand Down
12 changes: 6 additions & 6 deletions lib/internal/Magento/Framework/Data/Form/Element/Textarea.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

namespace Magento\Framework\Data\Form\Element;
Expand All @@ -10,20 +11,18 @@

/**
* Form textarea element.
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Textarea extends AbstractElement
{
/**
* Default number of rows
*/
const DEFAULT_ROWS = 2;
public const DEFAULT_ROWS = 2;

/**
* Default number of columns
*/
const DEFAULT_COLS = 15;
public const DEFAULT_COLS = 15;

/**
* @param Factory $factoryElement
Expand All @@ -43,6 +42,7 @@ public function __construct(
if (!$this->getRows()) {
$this->setRows(self::DEFAULT_ROWS);
}

if (!$this->getCols()) {
$this->setCols(self::DEFAULT_COLS);
}
Expand Down
6 changes: 2 additions & 4 deletions lib/internal/Magento/Framework/Data/Form/Element/Time.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

namespace Magento\Framework\Data\Form\Element;
Expand All @@ -12,8 +12,6 @@

/**
* Form time element
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Time extends AbstractElement
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form Input/Output Escape HTML entities Filter
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Filter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form Input/Output Filter Interface
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Filter;

Expand Down
6 changes: 2 additions & 4 deletions lib/internal/Magento/Framework/Data/Form/Filter/Striptags.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form Input/Output Strip HTML tags Filter
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Filter;

Expand Down
6 changes: 2 additions & 4 deletions lib/internal/Magento/Framework/Data/Form/Filter/Trim.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

/**
* Form Input/Output Trim Filter
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Framework\Data\Form\Filter;

Expand Down
17 changes: 10 additions & 7 deletions lib/internal/Magento/Framework/Data/Helper/PostHelper.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?php

/**
* Helper to obtain post data for postData widget
*
* @author Magento Core Team <core@magentocommerce.com>
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2011 Adobe
* All Rights Reserved.
*/

namespace Magento\Framework\Data\Helper;

use Magento\Framework\App\Helper\Context;
use Magento\Framework\Url\Helper\Data as UrlHelper;

/**
* Helper to obtain post data for postData widget
*/
class PostHelper extends \Magento\Framework\App\Helper\AbstractHelper
{
/**
Expand All @@ -32,17 +33,19 @@ public function __construct(
}

/**
* get data for post by javascript in format acceptable to $.mage.dataPost widget
* Get data for post by javascript in format acceptable to $.mage.dataPost widget
*
* @param string $url
* @param array $data
*
* @return string
*/
public function getPostData($url, array $data = [])
{
if (!isset($data[\Magento\Framework\App\ActionInterface::PARAM_NAME_URL_ENCODED])) {
$data[\Magento\Framework\App\ActionInterface::PARAM_NAME_URL_ENCODED] = $this->urlHelper->getEncodedUrl();
}

return json_encode(['action' => $url, 'data' => $data]);
}
}
Loading