aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
commit722a9b6a395bfdd266b5466c509299ae0251c946 (patch)
treefa1f5397ef41fb11232b945415163bda87b06786
parentd0e082f0ce7afad0f5dd4daf44bfe801a8d2b32b (diff)
downloadwww.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.zip
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.gz
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.xz
reduce train logo size
-rw-r--r--.php_cs.dist30
-rw-r--r--composer.lock31
-rw-r--r--generate.php4
-rw-r--r--img/train.jpgbin56161 -> 12295 bytes
4 files changed, 36 insertions, 29 deletions
diff --git a/.php_cs.dist b/.php_cs.dist
index 7caac44..19652c7 100644
--- a/.php_cs.dist
+++ b/.php_cs.dist
@@ -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__));
diff --git a/composer.lock b/composer.lock
index e491699..2bee25c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -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": [],
diff --git a/generate.php b/generate.php
index e4a2ed8..9180790 100644
--- a/generate.php
+++ b/generate.php
@@ -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 {
diff --git a/img/train.jpg b/img/train.jpg
index fcb3e8e..03b5c27 100644
--- a/img/train.jpg
+++ b/img/train.jpg
Binary files differ