Skip to content

Commit

Permalink
Add strict type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 18, 2024
1 parent 4ff740b commit b9612b4
Show file tree
Hide file tree
Showing 86 changed files with 172 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AbstractEntity.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif;

use Intervention\Gif\Traits\CanDecode;
Expand Down
2 changes: 2 additions & 0 deletions src/AbstractExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif;

abstract class AbstractExtension extends AbstractEntity
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/ApplicationExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/Color.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/ColorTable.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/CommentExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/DataSubBlock.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/FrameBlock.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/GraphicControlExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/Header.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/ImageData.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/ImageDescriptor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/LogicalScreenDescriptor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/NetscapeApplicationExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

class NetscapeApplicationExtension extends ApplicationExtension
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/PlainTextExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/TableBasedImage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Blocks/Trailer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Blocks;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif;

use Exception;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif;

use Intervention\Gif\Exceptions\DecoderException;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/AbstractDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

abstract class AbstractDecoder
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/AbstractPackedBitDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

abstract class AbstractPackedBitDecoder extends AbstractDecoder
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/ApplicationExtensionDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\ApplicationExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/ColorDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\Color;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/ColorTableDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\Color;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/CommentExtensionDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\CommentExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/DataSubBlockDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\DataSubBlock;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/FrameBlockDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\AbstractExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/GifDataStreamDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\ColorTable;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/GraphicControlExtensionDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\GraphicControlExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/HeaderDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Exceptions\DecoderException;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/ImageDataDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/ImageDescriptorDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\ImageDescriptor;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/LogicalScreenDescriptorDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\LogicalScreenDescriptor;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/NetscapeApplicationExtensionDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Decoders\ApplicationExtensionDecoder;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/PlainTextExtensionDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\PlainTextExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Decoders/TableBasedImageDecoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Decoders;

use Intervention\Gif\Blocks\ColorTable;
Expand Down
2 changes: 2 additions & 0 deletions src/DisposalMethod.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif;

enum DisposalMethod: int
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/AbstractEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

abstract class AbstractEncoder
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/ApplicationExtensionEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\ApplicationExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/ColorEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\Color;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/ColorTableEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\ColorTable;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/CommentExtensionEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\CommentExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/DataSubBlockEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\DataSubBlock;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/FrameBlockEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\FrameBlock;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/GifDataStreamEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\GifDataStream;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/GraphicControlExtensionEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\GraphicControlExtension;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/HeaderEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\Header;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/ImageDataEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\AbstractEntity;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/ImageDescriptorEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\ImageDescriptor;
Expand Down
2 changes: 2 additions & 0 deletions src/Encoders/LogicalScreenDescriptorEncoder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Intervention\Gif\Encoders;

use Intervention\Gif\Blocks\LogicalScreenDescriptor;
Expand Down

0 comments on commit b9612b4

Please sign in to comment.