Skip to content

Commit 2841ab0

Browse files
authored
Merge pull request #148 from justbetter/analysis-o7xnx5
Apply fixes from StyleCI
2 parents a5ac47e + 5defcae commit 2841ab0

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

Block/SentryScript.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ public function useSessionReplay(): bool
103103
}
104104

105105
/**
106-
* Get the session replay sample rate
106+
* Get the session replay sample rate.
107107
*/
108108
public function getReplaySessionSampleRate(): float
109109
{
110110
return $this->dataHelper->getReplaySessionSampleRate();
111111
}
112112

113113
/**
114-
* Get the session replay error sample rate
114+
* Get the session replay error sample rate.
115115
*/
116116
public function getReplayErrorSampleRate(): float
117117
{
@@ -185,7 +185,7 @@ public function stripStoreCode()
185185
}
186186

187187
/**
188-
* Get Store code
188+
* Get Store code.
189189
*
190190
* @return string
191191
*/
@@ -195,15 +195,15 @@ public function getStoreCode()
195195
}
196196

197197
/**
198-
* Whether tracing is enabled
198+
* Whether tracing is enabled.
199199
*/
200200
public function isTracingEnabled(): bool
201201
{
202202
return $this->dataHelper->isTracingEnabled();
203203
}
204204

205205
/**
206-
* Get sample rate for tracing
206+
* Get sample rate for tracing.
207207
*/
208208
public function getTracingSampleRate(): float
209209
{

Helper/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ public function useSessionReplay(): bool
332332
}
333333

334334
/**
335-
* Get the session replay sample rate
335+
* Get the session replay sample rate.
336336
*/
337337
public function getReplaySessionSampleRate(): float
338338
{
339339
return $this->getConfigValue(static::XML_PATH_SRS.'replay_session_sample_rate') ?? 0.1;
340340
}
341341

342342
/**
343-
* Get the session replay error sample rate
343+
* Get the session replay error sample rate.
344344
*/
345345
public function getReplayErrorSampleRate(): float
346346
{

Model/Config/Source/LogLevel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class LogLevel implements ArrayInterface
99
{
1010
/**
11-
* Mapping of Monolog values to Strings
11+
* Mapping of Monolog values to Strings.
1212
*
1313
* @return array
1414
*/

Model/Config/Source/ScriptTagPlacement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class ScriptTagPlacement implements ArrayInterface
88
{
99
/**
10-
* Mapping of script include positions to strings
10+
* Mapping of script include positions to strings.
1111
*
1212
* @return array
1313
*/

Model/SentryInteraction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function initialize($config)
2424
}
2525

2626
/**
27-
* Capture passed exception
27+
* Capture passed exception.
2828
*
2929
* @param \Throwable $ex
3030
*

Model/SentryLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
}
4141

4242
/**
43-
* Check and send log information to Sentry
43+
* Check and send log information to Sentry.
4444
*
4545
* @param \Throwable|string $message
4646
* @param int $logLevel

Plugin/GlobalExceptionCatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
* Wrap launch, start watching for exceptions.
3838
*
3939
* @param AppInterface $subject
40-
* @param callable $proceed
40+
* @param callable $proceed
4141
*
4242
* @return \Magento\Framework\App\ResponseInterface
4343
*/

Plugin/LogrocketCustomerInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class LogrocketCustomerInfo
1212
* LogrocketCustomerInfo construct.
1313
*
1414
* @param CurrentCustomer $currentCustomer
15-
* @param Session $customerSession
15+
* @param Session $customerSession
1616
*/
1717
public function __construct(
1818
protected CurrentCustomer $currentCustomer,
@@ -24,7 +24,7 @@ public function __construct(
2424
* Add customer info to the section.
2525
*
2626
* @param Customer $subject
27-
* @param array $result
27+
* @param array $result
2828
*
2929
* @return array $result
3030
*/
@@ -33,7 +33,7 @@ public function afterGetSectionData(Customer $subject, $result)
3333
if (!$this->customerSession->isLoggedIn()) {
3434
return $result;
3535
}
36-
36+
3737
$customer = $this->currentCustomer->getCustomer();
3838

3939
$result['email'] = $customer->getEmail();

Plugin/MonologPlugin.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class MonologPlugin extends Monolog
1313
/**
1414
* @psalm-param array<callable(array): array> $processors
1515
*
16-
* @param string $name The logging channel, a simple descriptive name that is attached to all log records
17-
* @param Data $sentryHelper
18-
* @param SentryLog $sentryLog
19-
* @param DeploymentConfig $deploymentConfig
20-
* @param \Monolog\Handler\HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc.
21-
* @param callable[] $processors Optional array of processors
16+
* @param string $name The logging channel, a simple descriptive name that is attached to all log records
17+
* @param Data $sentryHelper
18+
* @param SentryLog $sentryLog
19+
* @param DeploymentConfig $deploymentConfig
20+
* @param \Monolog\Handler\HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc.
21+
* @param callable[] $processors Optional array of processors
2222
*/
2323
public function __construct(
2424
$name,
@@ -34,10 +34,10 @@ public function __construct(
3434
/**
3535
* Adds a log record to Sentry.
3636
*
37-
* @param int $level The logging level
38-
* @param string $message The log message
39-
* @param array $context The log context
40-
* @param DateTimeImmutable $datetime Datetime of log
37+
* @param int $level The logging level
38+
* @param string $message The log message
39+
* @param array $context The log context
40+
* @param DateTimeImmutable $datetime Datetime of log
4141
*
4242
* @return bool Whether the record has been processed
4343
*/

0 commit comments

Comments
 (0)