Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Nov 4, 2020
1 parent e3b1e06 commit 3957105
Show file tree
Hide file tree
Showing 22 changed files with 75 additions and 25 deletions.
16 changes: 12 additions & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
<?xml version="1.0"?>
<ruleset name="spryker">
<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml"/>
<file>src/</file>
<file>tests/</file>
<rule ref="vendor/spryker/code-sniffer/Spryker/ruleset.xml"/>
<file>src/</file>
<file>tests/</file>

<rule ref="PSR2.Classes.PropertyDeclaration">
<severity>0</severity>
</rule>

<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="2" />
</properties>
</rule>

<rule ref="Spryker">
<exclude name="Spryker.Formatting.MethodSignatureParametersLineBreakMethod" />
</rule>

</ruleset>
4 changes: 3 additions & 1 deletion src/FileStorage/DataTransformer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\FileStorage;

Expand Down
4 changes: 3 additions & 1 deletion src/FileStorage/DataTransformerInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\FileStorage;

Expand Down
4 changes: 3 additions & 1 deletion src/Model/Behavior/FileStorageBehavior.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Model\Behavior;

Expand Down
4 changes: 3 additions & 1 deletion src/Model/Entity/FileStorage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Model\Entity;

Expand Down
4 changes: 3 additions & 1 deletion src/Model/Entity/FileStorageEntityInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Model\Entity;

Expand Down
4 changes: 3 additions & 1 deletion src/Model/Table/FileStorageTable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Model\Table;

Expand Down
4 changes: 3 additions & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage;

Expand Down
4 changes: 3 additions & 1 deletion src/Shell/ImageVersionShell.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Shell;

Expand Down
4 changes: 3 additions & 1 deletion src/Shell/StorageShell.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Shell;

Expand Down
4 changes: 3 additions & 1 deletion src/Shell/Task/ImageTask.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Shell\Task;

Expand Down
4 changes: 3 additions & 1 deletion src/Utility/StorageUtils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Utility;

Expand Down
4 changes: 3 additions & 1 deletion src/View/Helper/ImageHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\View\Helper;

Expand Down
4 changes: 3 additions & 1 deletion tests/Fixture/FileStorageFixture.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\Fixture;

Expand Down
4 changes: 3 additions & 1 deletion tests/Fixture/ItemFixture.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\Fixture;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/FileStorageTestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/FileStorageTestTable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/Model/Behavior/FileStorageBehaviorTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase\Model\Behavior;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/Model/Entity/FileStorageTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase\Model\Entity;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/Model/Table/FileStorageTableTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase\Model\Table;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/View/Helper/ImageHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

namespace Burzum\FileStorage\Test\TestCase\View\Helper;

Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types = 1);
<?php

declare(strict_types = 1);

/**
* Bootstrap
Expand Down

0 comments on commit 3957105

Please sign in to comment.