Skip to content

Commit d09424b

Browse files
Add strict types declaration
* Add declare(strict_types=1) to all files * Fix file header DocBlock spacing of all files
1 parent 16abe2b commit d09424b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+153
-0
lines changed

src/Client.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent;
1013

1114
use MAKS\AmqpAgent\Config;

src/Config.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent;
1013

1114
use Exception;

src/Config/AbstractParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use MAKS\AmqpAgent\Exception\ConstantDoesNotExistException;

src/Config/AbstractWorkerParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use MAKS\AmqpAgent\Config\AbstractParameters;

src/Config/AmqpAgentParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use PhpAmqpLib\Message\AMQPMessage;

src/Config/ConsumerParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use MAKS\AmqpAgent\Config\AbstractParameters;

src/Config/PublisherParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use MAKS\AmqpAgent\Config\AbstractParameters;

src/Config/RPCEndpointParameters.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Config;
1013

1114
use MAKS\AmqpAgent\Config\AbstractParameters;

src/Exception/AmqpAgentException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use Exception as CoreException;

src/Exception/CallbackDoesNotExistException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/ConfigFileNotFoundException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/ConstantDoesNotExistException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/MagicMethodsExceptionsTrait.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Helper\ArrayProxy;

src/Exception/MethodDoesNotExistException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/PropertyDoesNotExistException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/RPCEndpointException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/SerializerViolationException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Exception/SingletonViolationException.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Exception;
1013

1114
use MAKS\AmqpAgent\Exception\AmqpAgentException;

src/Helper/ArrayProxy.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use MAKS\AmqpAgent\Helper\ArrayProxyTrait;

src/Helper/ArrayProxyTrait.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use stdClass;

src/Helper/ClassProxy.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use MAKS\AmqpAgent\Helper\ClassProxyTrait;

src/Helper/ClassProxyTrait.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use Closure;

src/Helper/Event.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use MAKS\AmqpAgent\Helper\EventTrait;

src/Helper/EventTrait.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use Closure;

src/Helper/Example.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
use Exception;

src/Helper/IDGenerator.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?php
2+
23
/**
34
* @author Marwan Al-Soltany <[email protected]>
45
* @copyright Marwan Al-Soltany 2020
56
* For the full copyright and license information, please view
67
* the LICENSE file that was distributed with this source code.
78
*/
89

10+
declare(strict_types=1);
11+
912
namespace MAKS\AmqpAgent\Helper;
1013

1114
/**

0 commit comments

Comments
 (0)