Skip to content

Commit def9376

Browse files
committed
Fix code style issues
1 parent 47d423d commit def9376

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

Annotations/AnnotationGenerator.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ protected function buildAnnotationForMethod(array $rules, string $pluginName, \R
9292
{
9393
$existing = $reflectionMethod->getDocComment();
9494
// Skip methods which have been marked as internal or auto annotations disabled
95-
if ($existing !== false && (stripos($existing, 'OA-AUTO:OFF') !== false
96-
|| stripos($existing, '@internal') !== false)) {
95+
if (
96+
$existing !== false && (stripos($existing, 'OA-AUTO:OFF') !== false
97+
|| stripos($existing, '@internal') !== false)
98+
) {
9799
return [];
98100
}
99101

@@ -114,7 +116,8 @@ protected function buildAnnotationForMethod(array $rules, string $pluginName, \R
114116
return $this->compileOperationLines($path, $opId, $pluginName, $methodName, $params, $responses, $isPost);
115117
}
116118

117-
protected function getParamInfoFromDocBlock(string $docBlock): array {
119+
protected function getParamInfoFromDocBlock(string $docBlock): array
120+
{
118121
$lexer = new Lexer();
119122
$tokens = $lexer->tokenize($docBlock);
120123
$expressionParser = new ConstExprParser();

Annotations/GlobalApiComponents.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,4 @@
345345
*/
346346
class GlobalApiComponents
347347
{
348-
349-
}
348+
}

Renderer/Yaml.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use Piwik\API\ApiRenderer;
1313
use Piwik\Common;
14-
use Piwik\DataTable\Renderer;
1514
use Symfony\Component\Yaml\Yaml as SymfonyYaml;
1615

1716
class Yaml extends ApiRenderer
@@ -45,4 +44,4 @@ public function renderDataTable($dataTable)
4544
{
4645
return $dataTable->getFirstRow()->getColumn(0);
4746
}
48-
}
47+
}

Specs/SpecGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SpecGenerator
2323
public function __construct()
2424
{
2525
// Set the constant for the current instance's URL
26-
if(!defined('LOCAL_MATOMO_SERVER_URL')) {
26+
if (!defined('LOCAL_MATOMO_SERVER_URL')) {
2727
define('LOCAL_MATOMO_SERVER_URL', SettingsPiwik::getPiwikUrl());
2828
}
2929
}

0 commit comments

Comments
 (0)