Skip to content

Commit

Permalink
Update vendors (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Dec 6, 2019
1 parent 5cbb802 commit 516d1f0
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 38 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
/.scrutinizer.yml export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/Tests export-ignore
10 changes: 5 additions & 5 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
checks:
php: true
php: true

filter:
excluded_paths:
- vendor/*
- Tests/*
excluded_paths:
- vendor/*
- Tests/*

before_commands:
- "composer install --prefer-dist"
- "composer install --prefer-dist"
16 changes: 8 additions & 8 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
preset: symfony

enabled:
- combine_consecutive_unsets
- linebreak_after_opening_tag
- ordered_class_elements
- ordered_imports
- combine_consecutive_unsets
- linebreak_after_opening_tag
- ordered_class_elements
- ordered_imports

finder:
exclude:
- "Tests"
name:
- "*.php"
exclude:
- "Tests"
name:
- "*.php"
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit

php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'

env:
- SYMFONY_VERSION=4.3.*
- SYMFONY_VERSION=4.4.*

before_install:
- composer self-update
Expand All @@ -25,10 +30,6 @@ script:
after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $COMPOSER_CACHE_DIR

notifications:
email:
- [email protected]
1 change: 1 addition & 0 deletions Command/GenerateDocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/
class GenerateDocsCommand extends Command
{
/** @var Generator */
private $generator;

/**
Expand Down
1 change: 1 addition & 0 deletions Config/ConfigParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/
class ConfigParser
{
/** @var string */
private $configFolder;

/**
Expand Down
12 changes: 9 additions & 3 deletions Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
*/
class Generator
{
/** @var Environment */
private $twig;

/** @var ConfigParser */
private $configParser;

/** @var string */
private $docsFolder;

/**
Expand All @@ -46,9 +49,12 @@ public function generate(): void
{
$swaggerConfig = $this->configParser->parse();

$docs = $this->twig->render('@Swagger/SwaggerUi/index.html.twig', [
'swagger_data' => $swaggerConfig,
]);
$docs = $this->twig->render(
'@Swagger/SwaggerUi/index.html.twig',
[
'swagger_data' => $swaggerConfig,
]
);

$filePath = $this->docsFolder.'index.html';

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Stfalcon Studio
Copyright (c) 2019 Stfalcon LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
30 changes: 15 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@
"issues": "https://github.com/stfalcon-studio/swagger-bundle/issues"
},
"require": {
"php": "^7.1",
"php": "^7.2.5",
"ext-ctype": "*",
"ext-iconv": "*",
"symfony/console": "^4.3",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "^4.3",
"symfony/twig-bundle": "^4.3",
"symfony/yaml": "^4.3",
"symfony/asset": "^4.3",
"symfony/finder": "^4.3",
"symfony/polyfill-ctype": "^1.11",
"twig/twig": "^2.11"
"symfony/console": "^4.4",
"symfony/flex": "^1.5",
"symfony/framework-bundle": "^4.4",
"symfony/twig-bundle": "^4.4",
"symfony/yaml": "^4.4",
"symfony/asset": "^4.4",
"symfony/finder": "^4.4",
"symfony/polyfill-ctype": "^1.13",
"twig/twig": "^2.12 || ^3.0"
},
"require-dev": {
"escapestudios/symfony2-coding-standard": "^3.8",
"friendsofphp/php-cs-fixer": "^2.15",
"escapestudios/symfony2-coding-standard": "^3.10",
"friendsofphp/php-cs-fixer": "^2.16",
"johnkary/phpunit-speedtrap": "^3.1",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-deprecation-rules": "^0.11",
"phpstan/phpstan-doctrine": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"thecodingmachine/phpstan-strict-rules": "^0.11",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^8.5",
"slam/phpstan-extensions": "^3.5",
"symfony/filesystem": "^4.3",
"symfony/phpunit-bridge": "^4.3"
"symfony/filesystem": "^4.4",
"symfony/phpunit-bridge": "^4.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 516d1f0

Please sign in to comment.