-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3460627
commit bda5f8d
Showing
66 changed files
with
507 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
FROM php:8-cli | ||
FROM php:8.1-cli | ||
|
||
# install dependencies | ||
RUN apt update \ | ||
&& apt install -y \ | ||
libicu-dev \ | ||
git \ | ||
zip \ | ||
&& pecl install xdebug \ | ||
&& docker-php-ext-enable \ | ||
xdebug \ | ||
&& docker-php-ext-install \ | ||
intl \ | ||
&& apt-get clean | ||
|
||
# install composer | ||
# | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Intervention"> | ||
<file>src/</file> | ||
<file>tests/</file> | ||
<arg name="colors"/> | ||
<arg value="p"/> | ||
|
||
<rule ref="PSR12"/> | ||
<rule ref="Generic.Arrays.ArrayIndent"/> | ||
<rule ref="Generic.ControlStructures.InlineControlStructure"/> | ||
<rule ref="Generic.Formatting.SpaceAfterCast"/> | ||
<rule ref="Generic.Formatting.SpaceAfterNot"> | ||
<properties> | ||
<property name="spacing" value="0" /> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.Metrics.NestingLevel"/> | ||
<rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/> | ||
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation"/> | ||
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/> | ||
<rule ref="SlevomatCodingStandard.Classes.ClassMemberSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Classes.ConstantSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Classes.MethodSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> | ||
<rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/> | ||
<rule ref="SlevomatCodingStandard.Classes.RequireSelfReference"/> | ||
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/> | ||
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> | ||
<properties> | ||
<property name="rootNamespaces" type="array"> | ||
<element key="src" value="Intervention\MimeSniffer"/> | ||
<element key="tests" value="Intervention\MimeSniffer\Tests"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> | ||
<properties> | ||
<property name="searchAnnotations" value="true" /> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/> | ||
<rule ref="SlevomatCodingStandard.Strings.DisallowVariableParsing"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"> | ||
<properties> | ||
<property name="spacesCountAroundEqualsSign" value="0" /> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> | ||
<properties> | ||
<property name="withSpaces" value="no" /> | ||
<property name="nullPosition" value="first" /> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/> | ||
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/> | ||
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable"/> | ||
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
parameters: | ||
level: 6 | ||
paths: | ||
- src | ||
exceptions: | ||
check: | ||
missingCheckedExceptionInThrows: true | ||
uncheckedExceptionClasses: | ||
- Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Intervention\MimeSniffer\Exceptions; | ||
|
||
use RuntimeException; | ||
|
||
class NotMatchingException extends RuntimeException | ||
{ | ||
# nothing to override | ||
} |
Oops, something went wrong.