Skip to content

Commit

Permalink
ReturnTypeHintSpacingSniff applied on the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz committed Jul 26, 2019
1 parent db7eb0e commit dc0ce9e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/Migrations/Version20180724060204.php
Expand Up @@ -10,7 +10,7 @@ class Version20180724060204 extends AbstractMigration
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function up(Schema $schema) : void
public function up(Schema $schema): void
{
$this->sql('
CREATE OR REPLACE FUNCTION set_product_catnum_tsvector() RETURNS trigger AS $$
Expand Down Expand Up @@ -156,7 +156,7 @@ public function up(Schema $schema) : void
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function down(Schema $schema) : void
public function down(Schema $schema): void
{
}
}
4 changes: 2 additions & 2 deletions packages/framework/src/Migrations/Version20181114102106.php
Expand Up @@ -12,15 +12,15 @@ final class Version20181114102106 extends AbstractMigration
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function up(Schema $schema) : void
public function up(Schema $schema): void
{
$this->sql('ALTER TABLE pricing_groups ALTER COLUMN coefficient DROP NOT NULL');
}

/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function down(Schema $schema) : void
public function down(Schema $schema): void
{
}
}
4 changes: 2 additions & 2 deletions packages/framework/src/Migrations/Version20181114120915.php
Expand Up @@ -12,15 +12,15 @@ final class Version20181114120915 extends AbstractMigration
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function up(Schema $schema) : void
public function up(Schema $schema): void
{
$this->sql('ALTER TABLE products ALTER COLUMN price_calculation_type DROP NOT NULL');
}

/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function down(Schema $schema) : void
public function down(Schema $schema): void
{
}
}
4 changes: 2 additions & 2 deletions packages/framework/src/Migrations/Version20181114134959.php
Expand Up @@ -12,7 +12,7 @@ final class Version20181114134959 extends AbstractMigration
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function up(Schema $schema) : void
public function up(Schema $schema): void
{
/**
* for each price group find matching currency on price group domain
Expand Down Expand Up @@ -41,7 +41,7 @@ public function up(Schema $schema) : void
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
*/
public function down(Schema $schema) : void
public function down(Schema $schema): void
{
}
}
2 changes: 1 addition & 1 deletion packages/framework/src/Twig/FormThemeExtension.php
Expand Up @@ -52,7 +52,7 @@ public function getDefaultFormTheme()
* @param string $controller
* @return bool
*/
protected function isAdmin(string $controller) : bool
protected function isAdmin(string $controller): bool
{
return strpos($controller, 'Shopsys\FrameworkBundle\Controller\Admin') === 0 ||
strpos($controller, 'Shopsys\ShopBundle\Controller\Admin') === 0;
Expand Down
Expand Up @@ -42,7 +42,7 @@ final class OrderFacadeEditTest extends TransactionFunctionalTestCase
*/
private $orderItemDataFactory;

protected function setUp():void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit dc0ce9e

Please sign in to comment.