-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] psr-2 code formatting, MEQP2 code adjustments
- Loading branch information
Derrick Heesbeen
authored and
Derrick Heesbeen
committed
Nov 15, 2017
1 parent
e021309
commit 36b95ac
Showing
21 changed files
with
255 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
<?php | ||
<?php | ||
/** | ||
* A Magento 2 module named Experius/EmailCatcher | ||
* Copyright (C) 2016 Derrick Heesbeen | ||
* | ||
* | ||
* This file included in Experius/EmailCatcher is licensed under OSL 3.0 | ||
* | ||
* | ||
* http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* Please see LICENSE.txt for the full text of the OSL 3.0 license | ||
*/ | ||
|
||
namespace Experius\EmailCatcher\Controller\Adminhtml\Emailcatcher; | ||
|
||
|
||
class Index extends \Magento\Backend\App\Action { | ||
|
||
protected $resultPageFactory; | ||
class Index extends \Magento\Backend\App\Action | ||
{ | ||
|
||
|
||
public function __construct( | ||
\Magento\Backend\App\Action\Context $context, | ||
\Magento\Framework\View\Result\PageFactory $resultPageFactory | ||
){ | ||
$this->resultPageFactory = $resultPageFactory; | ||
parent::__construct($context); | ||
} | ||
protected $resultPageFactory; | ||
|
||
|
||
public function execute(){ | ||
|
||
$result = $this->resultPageFactory->create(); | ||
$result->getConfig()->getTitle()->prepend(__('Email Catcher')); | ||
return $result; | ||
} | ||
public function __construct( | ||
\Magento\Backend\App\Action\Context $context, | ||
\Magento\Framework\View\Result\PageFactory $resultPageFactory | ||
) { | ||
$this->resultPageFactory = $resultPageFactory; | ||
parent::__construct($context); | ||
} | ||
|
||
public function execute() | ||
{ | ||
$result = $this->resultPageFactory->create(); | ||
$result->getConfig()->getTitle()->prepend(__('Email Catcher')); | ||
return $result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,43 @@ | ||
<?php | ||
<?php | ||
/** | ||
* A Magento 2 module named Experius/EmailCatcher | ||
* Copyright (C) 2016 Derrick Heesbeen | ||
* | ||
* | ||
* This file included in Experius/EmailCatcher is licensed under OSL 3.0 | ||
* | ||
* | ||
* http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* Please see LICENSE.txt for the full text of the OSL 3.0 license | ||
*/ | ||
|
||
namespace Experius\EmailCatcher\Controller\Adminhtml\Preview; | ||
|
||
|
||
class Index extends \Magento\Backend\App\Action { | ||
|
||
protected $resultPageFactory; | ||
class Index extends \Magento\Backend\App\Action | ||
{ | ||
|
||
protected $_emailCatcher; | ||
|
||
public function __construct( | ||
protected $resultRawFactory; | ||
|
||
protected $emailCatcher; | ||
|
||
public function __construct( | ||
\Magento\Backend\App\Action\Context $context, | ||
\Magento\Framework\View\Result\PageFactory $resultPageFactory, | ||
\Experius\EmailCatcher\Model\EmailcatcherFactory $emailCatcher | ||
){ | ||
|
||
$this->resultPageFactory = $resultPageFactory; | ||
|
||
$this->_emailCatcher = $emailCatcher; | ||
|
||
parent::__construct($context); | ||
} | ||
|
||
|
||
public function execute(){ | ||
|
||
$id = $this->getRequest()->getParam('emailcatcher_id'); | ||
if($id){ | ||
|
||
$model = $this->_emailCatcher->create(); | ||
\Magento\Framework\Controller\Result\RawFactory $resultRawFactory, | ||
\Experius\EmailCatcher\Model\EmailcatcherFactory $emailCatcher | ||
) { | ||
|
||
$this->resultRawFactory = $resultRawFactory; | ||
$this->emailCatcher = $emailCatcher; | ||
|
||
parent::__construct($context); | ||
} | ||
|
||
public function execute() | ||
{ | ||
$id = $this->getRequest()->getParam('emailcatcher_id'); | ||
if ($id) { | ||
$model = $this->emailCatcher->create(); | ||
$email = $model->load($id); | ||
echo $email->getBody(); | ||
} | ||
} | ||
$resultRaw = $this->resultRawFactory->create(); | ||
return $resultRaw->setContents($email->getBody()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.