From 258ebf30ef6e7147f2ed5074b6cb6483bcf3394e Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 13 Oct 2016 13:11:22 -0400 Subject: [PATCH] Start of PHP 7 updates --- ..._header_comment.txt => header_comment.txt} | 2 +- build/update_header_comments.php | 21 +++++++++++++------ src/ArrayWrapper.php | 4 ++-- src/Cache/CacheInterface.php | 4 ++-- src/Cache/CacheManager.php | 4 ++-- src/Cache/Driver/DriverInterface.php | 4 ++-- src/Cache/Driver/DriverTrait.php | 4 ++-- src/Cache/Driver/NullDriver.php | 4 ++-- src/Cache/Driver/RedisDriver.php | 4 ++-- src/Cache/Driver/SQLDriver.php | 4 ++-- src/Config.php | 4 ++-- src/ConfigInterface.php | 4 ++-- src/Di/Container.php | 4 ++-- src/Di/ContainerAware.php | 4 ++-- src/Di/ContainerAwareInterface.php | 4 ++-- src/Di/ContainerInterface.php | 4 ++-- src/Di/Exception/ContainerException.php | 4 ++-- src/Di/Exception/NotFoundException.php | 4 ++-- src/Enum.php | 4 ++-- src/Exception/ConfigException.php | 4 ++-- src/Exception/DoubleRenderException.php | 4 ++-- src/Friend.php | 4 ++-- src/Json.php | 4 ++-- src/JsonException.php | 4 ++-- src/Model.php | 4 ++-- src/Model/DB.php | 4 ++-- src/StaticInstance.php | 4 ++-- src/StringWrapper.php | 4 ++-- src/Transformer/AbstractTransformer.php | 4 ++-- src/Transformer/TransformerInterface.php | 4 ++-- src/Type/ArrayType.php | 4 ++-- src/Type/StringType.php | 4 ++-- src/View.php | 4 ++-- src/View/HtmlView.php | 4 ++-- src/View/HttpView.php | 4 ++-- src/View/JsonView.php | 4 ++-- src/ViewInterface.php | 4 ++-- tests/Cache/CacheManagerTest.php | 16 +++++++++++++- tests/Cache/Driver/CacheDriverBase.php | 16 +++++++++++++- tests/Cache/Driver/NullDriverTest.php | 16 +++++++++++++- tests/Cache/Driver/RedisDriver2Test.php | 16 +++++++++++++- tests/Cache/Driver/RedisDriverTest.php | 16 +++++++++++++- tests/Cache/Driver/SQLDriverTest.php | 16 +++++++++++++- tests/Di/ContainerAwareTest.php | 16 +++++++++++++- tests/Di/ContainerTest.php | 16 +++++++++++++- tests/Exception/DoubleRenderExceptionTest.php | 16 +++++++++++++- tests/Model/BaseDBModelTest.php | 16 +++++++++++++- tests/Transformer/AbstractTransformerTest.php | 16 +++++++++++++- tests/Type/ArrayTypeTest.php | 16 +++++++++++++- tests/View/HtmlViewTest.php | 16 +++++++++++++- tests/View/HttpViewTest.php | 16 +++++++++++++- tests/View/JsonViewTest.php | 16 +++++++++++++- 52 files changed, 311 insertions(+), 92 deletions(-) rename build/{ion_header_comment.txt => header_comment.txt} (94%) diff --git a/build/ion_header_comment.txt b/build/header_comment.txt similarity index 94% rename from build/ion_header_comment.txt rename to build/header_comment.txt index dd5b924..4257195 100644 --- a/build/ion_header_comment.txt +++ b/build/header_comment.txt @@ -3,7 +3,7 @@ * * Building blocks for web development * - * PHP version 5.6 + * PHP version 7 * * @package Ion * @author Timothy J. Warren diff --git a/build/update_header_comments.php b/build/update_header_comments.php index 402a972..3ae05d1 100644 --- a/build/update_header_comments.php +++ b/build/update_header_comments.php @@ -1,7 +1,9 @@ diff --git a/src/Cache/CacheInterface.php b/src/Cache/CacheInterface.php index 0b2695b..d2f8710 100644 --- a/src/Cache/CacheInterface.php +++ b/src/Cache/CacheInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/CacheManager.php b/src/Cache/CacheManager.php index 4422987..8fbf498 100644 --- a/src/Cache/CacheManager.php +++ b/src/Cache/CacheManager.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/Driver/DriverInterface.php b/src/Cache/Driver/DriverInterface.php index 71b9b9c..d6290ce 100644 --- a/src/Cache/Driver/DriverInterface.php +++ b/src/Cache/Driver/DriverInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/Driver/DriverTrait.php b/src/Cache/Driver/DriverTrait.php index 542dedd..d9f9dd7 100644 --- a/src/Cache/Driver/DriverTrait.php +++ b/src/Cache/Driver/DriverTrait.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/Driver/NullDriver.php b/src/Cache/Driver/NullDriver.php index 170020c..36216c0 100644 --- a/src/Cache/Driver/NullDriver.php +++ b/src/Cache/Driver/NullDriver.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/Driver/RedisDriver.php b/src/Cache/Driver/RedisDriver.php index 1d948af..579d0f2 100644 --- a/src/Cache/Driver/RedisDriver.php +++ b/src/Cache/Driver/RedisDriver.php @@ -1,10 +1,10 @@ - diff --git a/src/Cache/Driver/SQLDriver.php b/src/Cache/Driver/SQLDriver.php index daf4924..dd31495 100644 --- a/src/Cache/Driver/SQLDriver.php +++ b/src/Cache/Driver/SQLDriver.php @@ -1,10 +1,10 @@ - diff --git a/src/Config.php b/src/Config.php index a50d2b8..be541d5 100644 --- a/src/Config.php +++ b/src/Config.php @@ -1,10 +1,10 @@ - diff --git a/src/ConfigInterface.php b/src/ConfigInterface.php index 305e6fa..80a431f 100644 --- a/src/ConfigInterface.php +++ b/src/ConfigInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/Container.php b/src/Di/Container.php index 7495d31..10bdcaf 100644 --- a/src/Di/Container.php +++ b/src/Di/Container.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/ContainerAware.php b/src/Di/ContainerAware.php index 675d891..2c3ab20 100644 --- a/src/Di/ContainerAware.php +++ b/src/Di/ContainerAware.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/ContainerAwareInterface.php b/src/Di/ContainerAwareInterface.php index 19322d4..6d41c5e 100644 --- a/src/Di/ContainerAwareInterface.php +++ b/src/Di/ContainerAwareInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/ContainerInterface.php b/src/Di/ContainerInterface.php index 45d2228..dfe053d 100644 --- a/src/Di/ContainerInterface.php +++ b/src/Di/ContainerInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/Exception/ContainerException.php b/src/Di/Exception/ContainerException.php index 4dd8a81..9f1f6e1 100644 --- a/src/Di/Exception/ContainerException.php +++ b/src/Di/Exception/ContainerException.php @@ -1,10 +1,10 @@ - diff --git a/src/Di/Exception/NotFoundException.php b/src/Di/Exception/NotFoundException.php index 6db671e..36e3400 100644 --- a/src/Di/Exception/NotFoundException.php +++ b/src/Di/Exception/NotFoundException.php @@ -1,10 +1,10 @@ - diff --git a/src/Enum.php b/src/Enum.php index 353a281..1faac79 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -1,10 +1,10 @@ - diff --git a/src/Exception/ConfigException.php b/src/Exception/ConfigException.php index a8ddf8c..68487ac 100644 --- a/src/Exception/ConfigException.php +++ b/src/Exception/ConfigException.php @@ -1,10 +1,10 @@ - diff --git a/src/Exception/DoubleRenderException.php b/src/Exception/DoubleRenderException.php index 08236dd..1bfd45b 100644 --- a/src/Exception/DoubleRenderException.php +++ b/src/Exception/DoubleRenderException.php @@ -1,10 +1,10 @@ - diff --git a/src/Friend.php b/src/Friend.php index 941aacc..a10f54c 100644 --- a/src/Friend.php +++ b/src/Friend.php @@ -1,10 +1,10 @@ - diff --git a/src/Json.php b/src/Json.php index a7a4228..3b95f3e 100644 --- a/src/Json.php +++ b/src/Json.php @@ -1,10 +1,10 @@ - diff --git a/src/JsonException.php b/src/JsonException.php index ce3e3cf..c4d9589 100644 --- a/src/JsonException.php +++ b/src/JsonException.php @@ -1,10 +1,10 @@ - diff --git a/src/Model.php b/src/Model.php index 4fd6f33..ee49052 100644 --- a/src/Model.php +++ b/src/Model.php @@ -1,10 +1,10 @@ - diff --git a/src/Model/DB.php b/src/Model/DB.php index a63f409..b239a81 100644 --- a/src/Model/DB.php +++ b/src/Model/DB.php @@ -1,10 +1,10 @@ - diff --git a/src/StaticInstance.php b/src/StaticInstance.php index 2d7eb79..5848b0d 100644 --- a/src/StaticInstance.php +++ b/src/StaticInstance.php @@ -1,10 +1,10 @@ - diff --git a/src/StringWrapper.php b/src/StringWrapper.php index c5df19c..38e0887 100644 --- a/src/StringWrapper.php +++ b/src/StringWrapper.php @@ -1,10 +1,10 @@ - diff --git a/src/Transformer/AbstractTransformer.php b/src/Transformer/AbstractTransformer.php index 26d5c2d..70fdfac 100644 --- a/src/Transformer/AbstractTransformer.php +++ b/src/Transformer/AbstractTransformer.php @@ -1,10 +1,10 @@ - diff --git a/src/Transformer/TransformerInterface.php b/src/Transformer/TransformerInterface.php index 57e02b8..5120aac 100644 --- a/src/Transformer/TransformerInterface.php +++ b/src/Transformer/TransformerInterface.php @@ -1,10 +1,10 @@ - diff --git a/src/Type/ArrayType.php b/src/Type/ArrayType.php index a13f333..a5c6b36 100644 --- a/src/Type/ArrayType.php +++ b/src/Type/ArrayType.php @@ -1,10 +1,10 @@ - diff --git a/src/Type/StringType.php b/src/Type/StringType.php index 6326548..ae06be6 100644 --- a/src/Type/StringType.php +++ b/src/Type/StringType.php @@ -1,10 +1,10 @@ - diff --git a/src/View.php b/src/View.php index 62c10b3..bd36537 100644 --- a/src/View.php +++ b/src/View.php @@ -1,10 +1,10 @@ - diff --git a/src/View/HtmlView.php b/src/View/HtmlView.php index 91533e4..a7281f0 100644 --- a/src/View/HtmlView.php +++ b/src/View/HtmlView.php @@ -1,10 +1,10 @@ - diff --git a/src/View/HttpView.php b/src/View/HttpView.php index 1417fe5..a5f843b 100644 --- a/src/View/HttpView.php +++ b/src/View/HttpView.php @@ -1,10 +1,10 @@ - diff --git a/src/View/JsonView.php b/src/View/JsonView.php index de32167..eeb8e24 100644 --- a/src/View/JsonView.php +++ b/src/View/JsonView.php @@ -1,10 +1,10 @@ - diff --git a/src/ViewInterface.php b/src/ViewInterface.php index cb68947..4213eee 100644 --- a/src/ViewInterface.php +++ b/src/ViewInterface.php @@ -1,10 +1,10 @@ - diff --git a/tests/Cache/CacheManagerTest.php b/tests/Cache/CacheManagerTest.php index 188fb29..94ab34c 100644 --- a/tests/Cache/CacheManagerTest.php +++ b/tests/Cache/CacheManagerTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache; diff --git a/tests/Cache/Driver/CacheDriverBase.php b/tests/Cache/Driver/CacheDriverBase.php index 1cc04ba..959fb76 100644 --- a/tests/Cache/Driver/CacheDriverBase.php +++ b/tests/Cache/Driver/CacheDriverBase.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache\Driver; diff --git a/tests/Cache/Driver/NullDriverTest.php b/tests/Cache/Driver/NullDriverTest.php index 108b6c6..af8ef8d 100644 --- a/tests/Cache/Driver/NullDriverTest.php +++ b/tests/Cache/Driver/NullDriverTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache\Driver; diff --git a/tests/Cache/Driver/RedisDriver2Test.php b/tests/Cache/Driver/RedisDriver2Test.php index 2c8d03a..6ac26eb 100644 --- a/tests/Cache/Driver/RedisDriver2Test.php +++ b/tests/Cache/Driver/RedisDriver2Test.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache\Driver; diff --git a/tests/Cache/Driver/RedisDriverTest.php b/tests/Cache/Driver/RedisDriverTest.php index f0d68d4..87bc20f 100644 --- a/tests/Cache/Driver/RedisDriverTest.php +++ b/tests/Cache/Driver/RedisDriverTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache\Driver; diff --git a/tests/Cache/Driver/SQLDriverTest.php b/tests/Cache/Driver/SQLDriverTest.php index 2102d9f..228fe1b 100644 --- a/tests/Cache/Driver/SQLDriverTest.php +++ b/tests/Cache/Driver/SQLDriverTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Cache\Driver; diff --git a/tests/Di/ContainerAwareTest.php b/tests/Di/ContainerAwareTest.php index e23e202..4647a68 100644 --- a/tests/Di/ContainerAwareTest.php +++ b/tests/Di/ContainerAwareTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Di; diff --git a/tests/Di/ContainerTest.php b/tests/Di/ContainerTest.php index c826538..37647cd 100644 --- a/tests/Di/ContainerTest.php +++ b/tests/Di/ContainerTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Di; diff --git a/tests/Exception/DoubleRenderExceptionTest.php b/tests/Exception/DoubleRenderExceptionTest.php index 57598c0..a75caa0 100644 --- a/tests/Exception/DoubleRenderExceptionTest.php +++ b/tests/Exception/DoubleRenderExceptionTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Exception; diff --git a/tests/Model/BaseDBModelTest.php b/tests/Model/BaseDBModelTest.php index 7e8eecf..51fd96a 100644 --- a/tests/Model/BaseDBModelTest.php +++ b/tests/Model/BaseDBModelTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Model; diff --git a/tests/Transformer/AbstractTransformerTest.php b/tests/Transformer/AbstractTransformerTest.php index 3f17a90..5f1905e 100644 --- a/tests/Transformer/AbstractTransformerTest.php +++ b/tests/Transformer/AbstractTransformerTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Transformer; diff --git a/tests/Type/ArrayTypeTest.php b/tests/Type/ArrayTypeTest.php index a69ca9c..5b3dc90 100644 --- a/tests/Type/ArrayTypeTest.php +++ b/tests/Type/ArrayTypeTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\Type; diff --git a/tests/View/HtmlViewTest.php b/tests/View/HtmlViewTest.php index 6c6ede8..59c1422 100644 --- a/tests/View/HtmlViewTest.php +++ b/tests/View/HtmlViewTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\View; diff --git a/tests/View/HttpViewTest.php b/tests/View/HttpViewTest.php index 624a727..afe82cd 100644 --- a/tests/View/HttpViewTest.php +++ b/tests/View/HttpViewTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\View; diff --git a/tests/View/JsonViewTest.php b/tests/View/JsonViewTest.php index 19cc636..05716fc 100644 --- a/tests/View/JsonViewTest.php +++ b/tests/View/JsonViewTest.php @@ -1,4 +1,18 @@ - + * @copyright 2015 - 2016 Timothy J. Warren + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @version 1.0.0 + * @link https://git.timshomepage.net/timw4mail/ion + */ namespace Aviat\Ion\Tests\View;