Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Sep 3, 2023
1 parent 57f3fc5 commit 6e0d096
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"require": {
"php": ">=7.4.0",
"popphp/popphp": "^3.7.2",
"popphp/pop-db": "^5.3.4",
"popphp/pop-http": "^4.1.6"
"popphp/pop-db": "^5.3.8",
"popphp/pop-http": "^4.2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0.0"
"phpunit/phpunit": "^9.5.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
abstract class AbstractAdapter implements AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
interface AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class Exception extends \Exception {}
2 changes: 1 addition & 1 deletion src/Adapter/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class File extends AbstractAdapter
{
Expand Down
9 changes: 5 additions & 4 deletions src/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class Http extends AbstractAdapter
{
Expand Down Expand Up @@ -111,10 +111,11 @@ public function getFetchedResult()

if (($this->fetchStream->hasResponse()) && ($this->fetchStream->getResponse()->hasBody())) {
$resultResponse = $this->fetchStream->getResponse()->getBody()->getContent();
if ($this->fetchStream->getResponse()->hasHeader('Content-Type')) {
if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue() == 'application/json') {
if (($this->fetchStream->getResponse()->hasHeader('Content-Type')) &&
(count($this->fetchStream->getResponse()->getHeader('Content-Type')->getValues()) == 1)) {
if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue(0) == 'application/json') {
$resultResponse = json_decode($resultResponse, true);
} else if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue() == 'application/x-www-form-urlencoded') {
} else if ($this->fetchStream->getResponse()->getHeader('Content-Type')->getValue(0) == 'application/x-www-form-urlencoded') {
parse_str($resultResponse, $resultResponse);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class Table extends AbstractAdapter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Auditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class Auditor
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
class Exception extends \Exception {}
2 changes: 1 addition & 1 deletion src/Model/AuditableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
interface AuditableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Model/AuditableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Nick Sagona, III <[email protected]>
* @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)
* @license http://www.popphp.org/license New BSD License
* @version 1.3.0
* @version 1.3.2
*/
abstract class AuditableModel extends AbstractModel implements AuditableInterface
{
Expand Down

0 comments on commit 6e0d096

Please sign in to comment.