~fkooman/www.tuxed.net

722a9b6a395bfdd266b5466c509299ae0251c946 — François Kooman 3 years ago d0e082f
reduce train logo size
4 files changed, 36 insertions(+), 29 deletions(-)

M .php_cs.dist
M composer.lock
M generate.php
M img/train.jpg
M .php_cs.dist => .php_cs.dist +17 -13
@@ 1,16 1,20 @@
<?php

$finder = PhpCsFixer\Finder::create()
    ->in(__DIR__)
;

return PhpCsFixer\Config::create()
    ->setRules([
        '@PSR2' => true,
        '@Symfony' => true,
        'ordered_imports' => true,
        'array_syntax' => ['syntax' => 'short'],
        'ordered_class_elements' => true,
    ])
    ->setFinder($finder)
;
    ->setRiskyAllowed(true)
    ->setRules(
        [
            '@Symfony' => true,
            '@Symfony:risky' => true,
            'ordered_imports' => true,
            'ordered_class_elements' => true,
            'array_syntax' => ['syntax' => 'short'],
            'phpdoc_order' => true,
            'phpdoc_no_empty_return' => false,
            'phpdoc_add_missing_param_annotation' => true,
            'strict_comparison' => true,
            'strict_param' => true,
            'php_unit_strict' => true,
        ]
    )
    ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__));

M composer.lock => composer.lock +17 -14
@@ 59,16 59,16 @@
        },
        {
            "name": "suin/php-rss-writer",
            "version": "1.5.0",
            "version": "1.6.0",
            "source": {
                "type": "git",
                "url": "https://github.com/suin/php-rss-writer.git",
                "reference": "938b067ba0f3a4d494edbdb1241d054e7d15b633"
                "reference": "78f45e44a2a7cb0d82e4b9efb6f7b7a075b9051c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/suin/php-rss-writer/zipball/938b067ba0f3a4d494edbdb1241d054e7d15b633",
                "reference": "938b067ba0f3a4d494edbdb1241d054e7d15b633",
                "url": "https://api.github.com/repos/suin/php-rss-writer/zipball/78f45e44a2a7cb0d82e4b9efb6f7b7a075b9051c",
                "reference": "78f45e44a2a7cb0d82e4b9efb6f7b7a075b9051c",
                "shasum": ""
            },
            "require": {


@@ 91,7 91,7 @@
            ],
            "authors": [
                {
                    "name": "Hidehito Nozawa aka Suin",
                    "name": "suin",
                    "email": "suinyeze@gmail.com"
                }
            ],


@@ 104,39 104,42 @@
                "rss",
                "writer"
            ],
            "time": "2016-07-21T14:05:32+00:00"
            "time": "2017-07-13T10:47:50+00:00"
        },
        {
            "name": "twig/twig",
            "version": "v1.32.0",
            "version": "v1.35.0",
            "source": {
                "type": "git",
                "url": "https://github.com/twigphp/Twig.git",
                "reference": "9935b662e24d6e634da88901ab534cc12e8c728f"
                "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/twigphp/Twig/zipball/9935b662e24d6e634da88901ab534cc12e8c728f",
                "reference": "9935b662e24d6e634da88901ab534cc12e8c728f",
                "url": "https://api.github.com/repos/twigphp/Twig/zipball/daa657073e55b0a78cce8fdd22682fddecc6385f",
                "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f",
                "shasum": ""
            },
            "require": {
                "php": ">=5.2.7"
                "php": ">=5.3.3"
            },
            "require-dev": {
                "psr/container": "^1.0",
                "symfony/debug": "~2.7",
                "symfony/phpunit-bridge": "~3.2"
                "symfony/phpunit-bridge": "~3.3@dev"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.32-dev"
                    "dev-master": "1.35-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Twig_": "lib/"
                },
                "psr-4": {
                    "Twig\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",


@@ 166,7 169,7 @@
            "keywords": [
                "templating"
            ],
            "time": "2017-02-27T00:07:03+00:00"
            "time": "2017-09-27T18:06:46+00:00"
        }
    ],
    "packages-dev": [],

M generate.php => generate.php +2 -2
@@ 51,7 51,7 @@ foreach (glob(sprintf('%s/*.md', $pageDir)) as $pageFile) {
    $f = fopen($pageFile, 'r');
    $line = fgets($f);
    if (0 !== strpos($line, '---')) {
        throw new Exception('invalid file!');
        throw new Exception(sprintf('invalid file "%s"!', $pageFile));
    }
    $line = fgets($f);
    do {


@@ 86,7 86,7 @@ foreach (glob(sprintf('%s/*.md', $postDir)) as $postFile) {
    $f = fopen($postFile, 'r');
    $line = fgets($f);
    if (0 !== strpos($line, '---')) {
        throw new Exception('invalid file!');
        throw new Exception(sprintf('invalid file! "%s"', $postFile));
    }
    $line = fgets($f);
    do {

M img/train.jpg => img/train.jpg +0 -0