Browse Source

Code style fixes

tags/1.5.0
Anton Smirnov 1 month ago
parent
commit
eff43e7e30
4 changed files with 7 additions and 5 deletions
  1. +1
    -1
      src/Common/Metadata.php
  2. +0
    -1
      src/Containers/StaticMap/StaticMapIterator.php
  3. +1
    -1
      src/Containers/Zend/ServiceManagerIterator.php
  4. +5
    -2
      src/Integration/Slim/ContainerExportMiddleware.php

+ 1
- 1
src/Common/Metadata.php View File

@@ -36,7 +36,7 @@ class Metadata
foreach ($map as $key => $value) {
$key = str_replace('\\', '\\\\', $key);
$key = str_replace('\'', '\\\'', $key);
$mapStrings []= "'{$key}' => {$value},";
$mapStrings[] = "'{$key}' => {$value},";
}

$mapString = implode("\n ", $mapStrings);

+ 0
- 1
src/Containers/StaticMap/StaticMapIterator.php View File

@@ -1,6 +1,5 @@
<?php


namespace SandFox\PhpStorm\Metadata\Containers\StaticMap;

use SandFox\PhpStorm\Metadata\Common\Helpers\TypeStrings;

+ 1
- 1
src/Containers/Zend/ServiceManagerIterator.php View File

@@ -1,4 +1,4 @@
<?php
<?php // phpcs:disable PSR1.Files.SideEffects.FoundWithSymbols

namespace SandFox\PhpStorm\Metadata\Containers\Zend;


+ 5
- 2
src/Integration/Slim/ContainerExportMiddleware.php View File

@@ -17,8 +17,11 @@ class ContainerExportMiddleware
$this->options = $options;
}

public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next): ResponseInterface
{
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
callable $next
): ResponseInterface {
try {
return $next($request, $response);
} finally {

Loading…
Cancel
Save