Skip to content

Commit

Permalink
Updated dependencies and align with renamed namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Sep 26, 2019
1 parent 822df52 commit b0482b9
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 38 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"ext-pdo": "*",
"setbased/exception": "^1.0.0",
"setbased/helper-code-store-php": "^2.2.0",
"setbased/php-stratum-backend": "^4.0.0",
"setbased/php-stratum-common": "^4.0.0",
"setbased/php-stratum-middle": "^4.0.0",
"setbased/php-stratum-backend": "^5.0.0",
"setbased/php-stratum-common": "^5.0.0",
"setbased/php-stratum-middle": "^5.0.0",
"zendframework/zend-code": "^3.0.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0.0 || ^8.0.0",
"phing/phing": "^2.0.0",
"setbased/php-stratum": "^4.0.0"
"setbased/php-stratum": "^5.0.0"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 5 additions & 5 deletions src/Backend/SqlitePdoBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace SetBased\Stratum\SqlitePdo\Backend;

use SetBased\Stratum\Backend;
use SetBased\Stratum\Config;
use SetBased\Stratum\RoutineLoaderWorker;
use SetBased\Stratum\RoutineWrapperGeneratorWorker;
use SetBased\Stratum\StratumStyle;
use SetBased\Stratum\Backend\Backend;
use SetBased\Stratum\Backend\Config;
use SetBased\Stratum\Backend\RoutineLoaderWorker;
use SetBased\Stratum\Backend\RoutineWrapperGeneratorWorker;
use SetBased\Stratum\Backend\StratumStyle;

/**
* The PhpStratum's backend for SQLite using PDO.
Expand Down
8 changes: 4 additions & 4 deletions src/Backend/SqlitePdoRoutineLoaderWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
namespace SetBased\Stratum\SqlitePdo\Backend;

use SetBased\Exception\RuntimeException;
use SetBased\Stratum\Exception\RoutineLoaderException;
use SetBased\Stratum\Helper\SourceFinderHelper;
use SetBased\Stratum\NameMangler\NameMangler;
use SetBased\Stratum\RoutineLoaderWorker;
use SetBased\Stratum\Backend\RoutineLoaderWorker;
use SetBased\Stratum\Common\Exception\RoutineLoaderException;
use SetBased\Stratum\Common\Helper\SourceFinderHelper;
use SetBased\Stratum\Middle\NameMangler\NameMangler;
use SetBased\Stratum\SqlitePdo\Helper\RoutineLoaderHelper;

/**
Expand Down
5 changes: 2 additions & 3 deletions src/Backend/SqlitePdoRoutineWrapperGeneratorPdoWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

use SetBased\Exception\RuntimeException;
use SetBased\Helper\CodeStore\PhpCodeStore;
use SetBased\Stratum\NameMangler\NameMangler;
use SetBased\Stratum\RoutineWrapperGeneratorWorker;
use SetBased\Stratum\Backend\RoutineWrapperGeneratorWorker;
use SetBased\Stratum\Middle\NameMangler\NameMangler;
use SetBased\Stratum\SqlitePdo\Wrapper\Wrapper;

/**
Expand Down Expand Up @@ -72,7 +72,6 @@ class SqlitePdoRoutineWrapperGeneratorPdoWorker extends SqlitePdoWorker implemen
private $wrapperFilename;

//--------------------------------------------------------------------------------------------------------------------

/**
* @inheritdoc
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Backend/SqlitePdoWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace SetBased\Stratum\SqlitePdo\Backend;

use SetBased\Stratum\Config;
use SetBased\Stratum\StratumStyle;
use SetBased\Stratum\Backend\Config;
use SetBased\Stratum\Backend\StratumStyle;
use Symfony\Component\Console\Formatter\OutputFormatter;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/SqlitePdoDataLayerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Exception;

use SetBased\Stratum\Exception\DataLayerException;
use SetBased\Stratum\Middle\Exception\DataLayerException;

/**
* Exception for situations where the execution of a SQL query has failed.
Expand Down Expand Up @@ -41,7 +41,7 @@ class SqlitePdoDataLayerException extends \RuntimeException implements DataLayer
* @param string|null $method The name of the executed method.
* @param string|null $query The executed query.
*/
public function __construct(string $code, string $error, ?string $method, ?string $query=null)
public function __construct(string $code, string $error, ?string $method, ?string $query = null)
{
parent::__construct(self::message($code, $error, $method, $query));

Expand Down
8 changes: 4 additions & 4 deletions src/Exception/SqlitePdoQueryErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Exception;

use SetBased\Stratum\Exception\QueryErrorException;
use SetBased\Stratum\Middle\Exception\QueryErrorException;
use Symfony\Component\Console\Formatter\OutputFormatter;

/**
Expand All @@ -23,10 +23,10 @@ class SqlitePdoQueryErrorException extends SqlitePdoDataLayerException implement
/**
* Object constructor.
*
* @param int $errno The error code value of the error ($mysqli->errno).
* @param string $error Description of the last error ($mysqli->error).
* @param int $errno The error code value of the error ($mysqli->errno).
* @param string $error Description of the last error ($mysqli->error).
* @param string $method The name of the executed method.
* @param string $query The failed query.
* @param string $query The failed query.
*/
public function __construct(int $errno, string $error, string $method, string $query)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Helper/RoutineLoaderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace SetBased\Stratum\SqlitePdo\Helper;

use SetBased\Stratum\Exception\RoutineLoaderException;
use SetBased\Stratum\Helper\RowSetHelper;
use SetBased\Stratum\Backend\StratumStyle;
use SetBased\Stratum\Common\Exception\RoutineLoaderException;
use SetBased\Stratum\Middle\Helper\RowSetHelper;
use SetBased\Stratum\SqlitePdo\Reflection\ParamTag;
use SetBased\Stratum\SqlitePdo\SqlitePdoDataLayer;
use SetBased\Stratum\StratumStyle;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Zend\Code\Reflection\DocBlock\Tag\GenericTag;
use Zend\Code\Reflection\DocBlock\Tag\ReturnTag;
Expand Down Expand Up @@ -140,7 +140,6 @@ class RoutineLoaderHelper
private $sourceFilename;

//--------------------------------------------------------------------------------------------------------------------

/**
* Object constructor.
*
Expand Down Expand Up @@ -450,6 +449,7 @@ private function parameterDescription(string $name): ?string
private function parameterType(string $name): string
{
$key = RowSetHelper::findInRowSet($this->docBlockPartsSource['parameters'], 'name', $name);

return $this->docBlockPartsSource['parameters'][$key]['type'];
}

Expand Down
2 changes: 1 addition & 1 deletion src/SqlitePdoDataLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use SetBased\Abc\Helper\Cast;
use SetBased\Exception\FallenException;
use SetBased\Exception\LogicException;
use SetBased\Stratum\Exception\ResultException;
use SetBased\Stratum\Middle\Exception\ResultException;
use SetBased\Stratum\SqlitePdo\Exception\SqlitePdoDataLayerException;

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Wrapper/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use SetBased\Exception\FallenException;
use SetBased\Helper\CodeStore\PhpCodeStore;
use SetBased\Stratum\NameMangler\NameMangler;
use SetBased\Stratum\Middle\NameMangler\NameMangler;
use SetBased\Stratum\SqlitePdo\Helper\DataTypeHelper;

/**
Expand Down Expand Up @@ -43,7 +43,6 @@ abstract class Wrapper
protected $routine;

//--------------------------------------------------------------------------------------------------------------------

/**
* Object constructor.
*
Expand Down
2 changes: 1 addition & 1 deletion test/Application/StratumApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace SetBased\Stratum\SqlitePdo\Test\Application;

use PHPUnit\Framework\TestCase;
use SetBased\Stratum\Application\Stratum;
use SetBased\Stratum\Frontend\Application\Stratum;
use Symfony\Component\Console\Tester\ApplicationTester;

/**
Expand Down
2 changes: 1 addition & 1 deletion test/QuoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ public function testValid()
}

//--------------------------------------------------------------------------------------------------------------------

}

//----------------------------------------------------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion test/Row0Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Test;

use SetBased\Stratum\Exception\ResultException;
use SetBased\Stratum\Middle\Exception\ResultException;

/**
* Test cases for stored routines with designation type row0.
Expand Down
2 changes: 1 addition & 1 deletion test/Row1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Test;

use SetBased\Stratum\Exception\ResultException;
use SetBased\Stratum\Middle\Exception\ResultException;

/**
* Test cases for stored routines with designation type row1.
Expand Down
2 changes: 1 addition & 1 deletion test/Singleton0Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Test;

use SetBased\Stratum\Exception\ResultException;
use SetBased\Stratum\Middle\Exception\ResultException;

/**
* Test cases for stored routines with designation type singleton0.
Expand Down
2 changes: 1 addition & 1 deletion test/Singleton1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace SetBased\Stratum\SqlitePdo\Test;

use SetBased\Stratum\Exception\ResultException;
use SetBased\Stratum\Middle\Exception\ResultException;

/**
* Test cases for stored routines with designation type singleton1.
Expand Down
2 changes: 1 addition & 1 deletion test/etc/stratum.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ metadata = test/etc/routines.json

[wrapper]
parent_class = SetBased\Stratum\SqlitePdo\SqlitePdoDataLayer
mangler_class = SetBased\Stratum\NameMangler\PsrNameMangler
mangler_class = SetBased\Stratum\Middle\NameMangler\PsrNameMangler
wrapper_class = SetBased\Stratum\SqlitePdo\Test\TestDataLayer
wrapper_file = test/TestDataLayer.php

0 comments on commit b0482b9

Please sign in to comment.