Commit e5204794 authored by Emma's avatar Emma 🏳🌈

php-cs-fixer/minor cleanup/update dependencies

parent f14bf9b7
Pipeline #48614340 passed with stages
in 7 minutes and 20 seconds
......@@ -2312,16 +2312,16 @@
},
{
"name": "ocramius/package-versions",
"version": "1.3.0",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/Ocramius/PackageVersions.git",
"reference": "4489d5002c49d55576fa0ba786f42dbb009be46f"
"reference": "a4d4b60d0e60da2487bd21a2c6ac089f85570dbb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/4489d5002c49d55576fa0ba786f42dbb009be46f",
"reference": "4489d5002c49d55576fa0ba786f42dbb009be46f",
"url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/a4d4b60d0e60da2487bd21a2c6ac089f85570dbb",
"reference": "a4d4b60d0e60da2487bd21a2c6ac089f85570dbb",
"shasum": ""
},
"require": {
......@@ -2330,6 +2330,7 @@
},
"require-dev": {
"composer/composer": "^1.6.3",
"doctrine/coding-standard": "^5.0.1",
"ext-zip": "*",
"infection/infection": "^0.7.1",
"phpunit/phpunit": "^7.0.0"
......@@ -2357,7 +2358,7 @@
}
],
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
"time": "2018-02-05T13:05:30+00:00"
"time": "2019-02-21T12:16:21+00:00"
},
{
"name": "ocramius/proxy-manager",
......@@ -4410,16 +4411,16 @@
},
{
"name": "symfony/flex",
"version": "v1.1.8",
"version": "v1.2.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/flex.git",
"reference": "955774ecf07b10230bb5b44e150ba078b45f68fa"
"reference": "7f04fb50c5da6d020e4df743b4c764c188bb24bf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/flex/zipball/955774ecf07b10230bb5b44e150ba078b45f68fa",
"reference": "955774ecf07b10230bb5b44e150ba078b45f68fa",
"url": "https://api.github.com/repos/symfony/flex/zipball/7f04fb50c5da6d020e4df743b4c764c188bb24bf",
"reference": "7f04fb50c5da6d020e4df743b4c764c188bb24bf",
"shasum": ""
},
"require": {
......@@ -4428,12 +4429,14 @@
},
"require-dev": {
"composer/composer": "^1.0.2",
"symfony/phpunit-bridge": "^3.2.8"
"symfony/dotenv": "^3.4|^4.0",
"symfony/phpunit-bridge": "^3.4.19|^4.1.8",
"symfony/process": "^2.7|^3.0|^4.0"
},
"type": "composer-plugin",
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.2-dev"
},
"class": "Symfony\\Flex\\Flex"
},
......@@ -4453,7 +4456,7 @@
}
],
"description": "Composer plugin for Symfony",
"time": "2018-11-15T06:11:38+00:00"
"time": "2019-02-21T11:31:25+00:00"
},
{
"name": "symfony/form",
......@@ -7609,16 +7612,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
"version": "v2.14.1",
"version": "v2.14.2",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
"reference": "2e82abd1322897eb8aacb861e5ff551af3888349"
"reference": "ff401e58261ffc5934a58f795b3f95b355e276cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/2e82abd1322897eb8aacb861e5ff551af3888349",
"reference": "2e82abd1322897eb8aacb861e5ff551af3888349",
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ff401e58261ffc5934a58f795b3f95b355e276cb",
"reference": "ff401e58261ffc5934a58f795b3f95b355e276cb",
"shasum": ""
},
"require": {
......@@ -7639,9 +7642,6 @@
"symfony/process": "^3.0 || ^4.0",
"symfony/stopwatch": "^3.0 || ^4.0"
},
"conflict": {
"hhvm": "*"
},
"require-dev": {
"johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0",
"justinrainbow/json-schema": "^5.0",
......@@ -7696,20 +7696,20 @@
}
],
"description": "A tool to automatically fix PHP code style",
"time": "2019-02-10T22:52:33+00:00"
"time": "2019-02-17T17:44:13+00:00"
},
{
"name": "nikic/php-parser",
"version": "v4.2.0",
"version": "v4.2.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a"
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
"reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/5221f49a608808c1e4d436df32884cbc1b821ac0",
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0",
"shasum": ""
},
"require": {
......@@ -7747,7 +7747,7 @@
"parser",
"php"
],
"time": "2019-01-12T16:31:37+00:00"
"time": "2019-02-16T20:54:15+00:00"
},
{
"name": "php-cs-fixer/diff",
......
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
/**
* Seized from <https://symfony.com/doc/current/routing/redirect_trailing_slash.html>.
*/
class RedirectingController {
public function removeTrailingSlash(Request $request) {
$pathInfo = $request->getPathInfo();
$requestUri = $request->getRequestUri();
$url = str_replace($pathInfo, rtrim($pathInfo, ' /'), $requestUri);
return new RedirectResponse($url, 301);
}
}
......@@ -32,7 +32,7 @@ final class SearchController extends AbstractController {
$finalQuery = urlencode("$site $userQuery");
$url = "https://duckduckgo.com/?q=".$finalQuery;
$url = 'https://duckduckgo.com/?q='.$finalQuery;
return $this->redirect($url);
}
......
......@@ -452,10 +452,10 @@ final class UserController extends AbstractController {
/**
* @IsGranted("edit_user", subject="user")
*
* @param EntityManager $em
* @param Request $request
* @param User $user
* @param Forum $forum
* @param EntityManager $em
* @param Request $request
* @param User $user
* @param Forum $forum
*
* @return Response
*/
......
......@@ -173,8 +173,7 @@ final class SubmissionImageListener implements EventSubscriberInterface {
if ($success) {
return $filename;
}
}
catch (GuzzleException $e) {
} catch (GuzzleException $e) {
$this->logger->notice('Failed to download submission image', [
'exception' => $e,
]);
......
......@@ -12,5 +12,6 @@ final class Events {
public const MARKDOWN_CACHE = 'postmill.markdown_cache';
public const MARKDOWN_INIT = 'postmill.markdown_init';
private function __construct() {}
private function __construct() {
}
}
......@@ -4,8 +4,8 @@ namespace App\Form;
use App\Form\Model\ForumCategoryData;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20161229113003 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170102011412 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170103055453 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170226175041 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170319141400 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170409222227 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170410224921 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170418114308 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170428155119 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170504065107 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170505192754 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170506134048 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170506221902 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170507113459 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170508085242 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170508120624 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170512235044 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170517231923 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170520190400 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170527122847 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170601203249 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170605021921 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170610014902 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170612033717 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170612063609 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170612080404 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170623143851 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170629131825 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170712232516 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170802214902 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170803184749 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170811033559 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170811060252 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170818135017 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170829195424 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170830104630 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170904150528 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170910220650 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170912180315 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170918070116 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170921145930 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170923214721 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170925183836 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20170928153938 extends AbstractMigration {
/**
......
......@@ -2,8 +2,8 @@
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
class Version20171003220323 extends AbstractMigration {
/**
......