Skip to content

Commit b2fab66

Browse files
authored
Merge pull request #16 from samwilson/update-deps
Update coding standards etc.
2 parents 915dbb6 + 2056e16 commit b2fab66

16 files changed

+892
-609
lines changed

.phpcs.xml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
<?xml version="1.0"?>
2-
<ruleset name="PHPCS">
2+
<ruleset name="PhpFlickr">
33
<file>.</file>
44
<exclude-pattern>vendor/</exclude-pattern>
5-
<!-- Slevomat standards; see https://github.com/slevomat/coding-standard -->
6-
<config name="installed_paths" value="../../slevomat/coding-standard" /><!-- relative path from PHPCS source location -->
7-
<rule ref="SlevomatCodingStandard">
8-
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
9-
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
10-
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation" />
11-
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions" />
12-
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses" />
13-
<exclude name="SlevomatCodingStandard.ControlStructures.ControlStructureSpacing" />
14-
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions" />
15-
<exclude name="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment" />
16-
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison" />
17-
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants" />
18-
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators" />
19-
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter" />
20-
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment" />
21-
</rule>
22-
<arg name="tab-width" value="4" />
23-
<rule ref="Generic.WhiteSpace.ScopeIndent">
24-
<properties>
25-
<property name="tabIndent" value="true" />
26-
</properties>
5+
<rule ref="OpsWayStrictPSR12CodingStandard">
6+
<exclude name="WebimpressCodingStandard.NamingConventions.AbstractClass.Prefix" />
7+
<exclude name="WebimpressCodingStandard.PHP.ImportInternalFunction.Import" />
8+
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing.IncorrectWhitespaceBeforeColon" />
9+
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame" />
10+
<exclude name="WebimpressCodingStandard.Arrays.DoubleArrow.SpacesBefore" />
11+
<exclude name="Generic.Formatting.SpaceAfterNot.Incorrect" />
12+
<exclude name="WebimpressCodingStandard.PHP.ImportInternalConstant.Import" />
2713
</rule>
2814
</ruleset>

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22

33
php:
44
- '7.2'
5+
- '7.3'
56

67
install:
78
- composer install

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ This is a command-line interface (CLI) to Flickr, written in PHP.
77

88
Features:
99

10-
* Internationalization.
10+
* Upload photos.
11+
* Download photos by album or user.
1112
* Add checksum machine tags (MD5 or SHA1).
13+
* Internationalization.
1214

1315
## Installation
1416

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
}
1616
},
1717
"require": {
18-
"krinkle/intuition": "^1.2",
18+
"krinkle/intuition": "^2.1",
1919
"samwilson/phpflickr": "^4.7",
2020
"symfony/console": "^4.2|^5.0",
2121
"symfony/yaml": "^4.2|^5.0",
2222
"symfony/filesystem": "^4.2|^5.0",
23-
"twig/twig": "^2.6"
23+
"twig/twig": "^3.0"
2424
},
2525
"require-dev": {
26-
"mediawiki/minus-x": "^0.3",
27-
"phpunit/phpunit": "^6.5",
28-
"slevomat/coding-standard": "^4.8",
29-
"symfony/var-dumper": "^5.0"
26+
"mediawiki/minus-x": "^1.0",
27+
"phpunit/phpunit": "^7.0|^8.0",
28+
"symfony/var-dumper": "^5.0",
29+
"opsway/psr12-strict-coding-standard": "^0.3.0"
3030
}
3131
}

0 commit comments

Comments
 (0)