Skip to content

Commit f21f966

Browse files
committed
Merge remote-tracking branch 'origin/analytics-sprint-3' into analytics-sprint-3
2 parents 4278a30 + 6c10000 commit f21f966

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

app/code/Magento/Analytics/Cron/CollectData.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class CollectData
2929

3030
/**
3131
* @param ExportDataHandler $exportDataHandler
32+
* @param SubscriptionStatusProvider $subscriptionStatus
3233
*/
3334
public function __construct(
3435
ExportDataHandler $exportDataHandler,

app/code/Magento/Analytics/Model/StoreConfigurationProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,23 @@ public function getReport()
7777

7878
/**
7979
* Creates report from config for scope type and scope id.
80+
*
8081
* @param string $scope
81-
* @param int $scope_id
82+
* @param int $scopeId
8283
* @return array
8384
*/
84-
private function generateReportForScope($scope, $scope_id)
85+
private function generateReportForScope($scope, $scopeId)
8586
{
8687
$report = [];
8788
foreach ($this->configPaths as $configPath) {
8889
$report[] = [
8990
"config_path" => $configPath,
9091
"scope" => $scope,
91-
"scope_id" => $scope_id,
92+
"scope_id" => $scopeId,
9293
"value" => $this->scopeConfig->getValue(
9394
$configPath,
9495
$scope,
95-
$scope_id
96+
$scopeId
9697
)
9798
];
9899
}

app/code/Magento/Analytics/ReportXml/ReportProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ class ReportProvider
3232

3333
/**
3434
* ReportProvider constructor.
35+
*
3536
* @param QueryFactory $queryFactory
3637
* @param ConnectionFactory $connectionFactory
38+
* @param IteratorFactory $iteratorFactory
3739
*/
3840
public function __construct(
3941
QueryFactory $queryFactory,

app/code/Magento/Analytics/Test/Unit/Model/Connector/UpdateCommandTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class UpdateCommandTest extends \PHPUnit_Framework_TestCase
2929
*/
3030
private $analyticsTokenMock;
3131

32-
3332
/**
3433
* @var ClientInterface|\PHPUnit_Framework_MockObject_MockObject
3534
*/
@@ -93,8 +92,6 @@ protected function setUp()
9392
public function testExecuteSuccess()
9493
{
9594
$url = "old.localhost.com";
96-
$newurl = "new.localhost.com";
97-
$updateUrl = "update.localhost.com";
9895
$configVal = "Config val";
9996
$token = "Secret token!";
10097
$requestJson = sprintf('{"url":"%s","new-url":"%s","access-token":"%s"}', $url, $configVal, $token);
@@ -111,7 +108,6 @@ public function testExecuteSuccess()
111108
->with(BaseUrlConfigPlugin::OLD_BASE_URL_FLAG_CODE)
112109
->willReturn($url);
113110

114-
115111
$this->analyticsTokenMock->expects($this->once())
116112
->method('getToken')
117113
->willReturn($token);

app/code/Magento/Analytics/Test/Unit/Model/FileRecorderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ function ($parameters) {
192192
);
193193
}
194194

195-
196195
$this->assertTrue($this->fileRecorder->recordNewFile($this->encodedContextMock));
197196
}
198197

app/code/Magento/Analytics/Test/Unit/Model/Plugin/BaseUrlConfigPluginTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public function testPluginForAfterSave(
104104
$this->subscriptionStatusProvider->expects($this->any())->method('getStatus')
105105
->willReturn($testData['subscriptionStatus']);
106106

107-
108107
$oldUrl = 'mage.dev';
109108
$this->configValueMock->expects($oldValueInvokeMatcher)
110109
->method('getOldValue')
@@ -118,8 +117,7 @@ public function testPluginForAfterSave(
118117
BaseUrlConfigPlugin::UPDATE_CRON_STRING_PATH,
119118
'0 * * * *'
120119
);
121-
122-
120+
123121
$this->assertEquals(
124122
$this->configValueMock,
125123
$this->plugin->afterAfterSave($this->configValueMock, $this->configValueMock)

app/code/Magento/Analytics/Test/Unit/ReportXml/IteratorFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class IteratorFactoryTest extends \PHPUnit_Framework_TestCase
1717
* @var \Magento\Framework\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
1818
*/
1919
private $objectManagerMock;
20+
2021
/**
2122
* @var \IteratorIterator|\PHPUnit_Framework_MockObject_MockObject
2223
*/

app/code/Magento/Analytics/etc/webapi.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © 2016 Magento. All rights reserved.
4+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
77
-->

0 commit comments

Comments
 (0)