@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * Returns a new instance of the requested builder object |
| 41 | 41 | * |
| 42 | - * @return EmmetBlue\Core\Database\Builder\BuildableInterface |
|
| 42 | + * @return BuildableInterface |
|
| 43 | 43 | */ |
| 44 | 44 | public function getBuilder() : BuildableInterface |
| 45 | 45 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Chukwuma Nwali <[email protected]> |
@@ -23,7 +23,6 @@ discard block |
||
| 23 | 23 | protected $queryBuilder; |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @param string|null $tableName |
|
| 27 | 26 | */ |
| 28 | 27 | public function __construct() |
| 29 | 28 | { |
@@ -36,7 +35,7 @@ discard block |
||
| 36 | 35 | * |
| 37 | 36 | * @param string $tableName |
| 38 | 37 | * |
| 39 | - * @return \EmmetBlue\Core\Builder\DeleteQueryBuilder |
|
| 38 | + * @return DeleteQueryBuilder |
|
| 40 | 39 | */ |
| 41 | 40 | public function from(string $tableName) |
| 42 | 41 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param string[] $tableColumns Optional, provide this to specify the |
| 39 | 39 | * columns that should be acted on |
| 40 | 40 | * |
| 41 | - * @return \EmmetBlue\Core\Abstraction\InsertQueryBuilder |
|
| 41 | + * @return InsertQueryBuilder |
|
| 42 | 42 | */ |
| 43 | 43 | public function into(string $tableName, array $tableColumns = []) |
| 44 | 44 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @param string[] $inputValues |
| 60 | 60 | * |
| 61 | - * @return \EmmetBlue\Core\Abstraction\InsertQueryBuilder |
|
| 61 | + * @return InsertQueryBuilder |
|
| 62 | 62 | */ |
| 63 | 63 | public function values(array $inputValues) |
| 64 | 64 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | /** |
| 108 | 108 | * Implodes an array into a string while keeping track of the keys. |
| 109 | 109 | * |
| 110 | - * @param array $arrayToImplode |
|
| 110 | + * @param string[] $arrayToImplode |
|
| 111 | 111 | * @param string $delimiter Optional. |
| 112 | 112 | * |
| 113 | 113 | * @return string |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * @license MIT |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * |
| 113 | 113 | * @return string |
| 114 | 114 | */ |
| 115 | - protected function getImplodedStringWithKeys(array $arrayToImplode, string $keyDelimiter='=', string $delimiter = ',') : string |
|
| 115 | + protected function getImplodedStringWithKeys(array $arrayToImplode, string $keyDelimiter = '=', string $delimiter = ',') : string |
|
| 116 | 116 | { |
| 117 | 117 | $implodedStrings = []; |
| 118 | 118 | |
@@ -23,7 +23,6 @@ discard block |
||
| 23 | 23 | protected $queryBuilder; |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @param string|null $tableName |
|
| 27 | 26 | */ |
| 28 | 27 | public function __construct() |
| 29 | 28 | { |
@@ -36,7 +35,7 @@ discard block |
||
| 36 | 35 | * |
| 37 | 36 | * @param int $topValue |
| 38 | 37 | * |
| 39 | - * @return \EmmetBlue\Core\Builder\SelectQueryBuilder |
|
| 38 | + * @return SelectQueryBuilder |
|
| 40 | 39 | */ |
| 41 | 40 | public function top(int $topValue) |
| 42 | 41 | { |
@@ -48,9 +47,9 @@ discard block |
||
| 48 | 47 | /** |
| 49 | 48 | * {@inheritdoc} |
| 50 | 49 | * |
| 51 | - * @param string $columns |
|
| 50 | + * @param string[] $columns |
|
| 52 | 51 | * |
| 53 | - * @return \EmmetBlue\Core\Builder\SelectQueryBuilder |
|
| 52 | + * @return SelectQueryBuilder |
|
| 54 | 53 | */ |
| 55 | 54 | public function columns(string ...$columns) |
| 56 | 55 | { |
@@ -64,7 +63,7 @@ discard block |
||
| 64 | 63 | * |
| 65 | 64 | * @param string $tableName |
| 66 | 65 | * |
| 67 | - * @return \EmmetBlue\Core\Builder\SelectQueryBuilder |
|
| 66 | + * @return SelectQueryBuilder |
|
| 68 | 67 | */ |
| 69 | 68 | public function from(string $tableName) |
| 70 | 69 | { |
@@ -79,7 +78,7 @@ discard block |
||
| 79 | 78 | * @param string $tableName |
| 80 | 79 | * @param string $condition |
| 81 | 80 | * |
| 82 | - * @return \EmmetBlue\Core\Builder\SelectQueryBuilder |
|
| 81 | + * @return SelectQueryBuilder |
|
| 83 | 82 | */ |
| 84 | 83 | public function innerJoin(string $tableName, string $condition) |
| 85 | 84 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @param string $tableName |
| 38 | 38 | * |
| 39 | - * @return \EmmetBlue\Core\Builder\UpdateQueryBuilder |
|
| 39 | + * @return UpdateQueryBuilder |
|
| 40 | 40 | */ |
| 41 | 41 | public function table(string $tableName) |
| 42 | 42 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @param string[] $inputValues |
| 52 | 52 | * |
| 53 | - * @return \EmmetBlue\Core\Builder\UpdateQueryBuilder |
|
| 53 | + * @return UpdateQueryBuilder |
|
| 54 | 54 | */ |
| 55 | 55 | public function set(array $inputValues) |
| 56 | 56 | { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @throws \EmmetBlue\Core\Exception\SQLException |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - public function connect(string $username, string $password="") |
|
| 63 | + public function connect(string $username, string $password = "") |
|
| 64 | 64 | { |
| 65 | 65 | $server = $this->dsn[0]; |
| 66 | 66 | $database = $this->dsn[1]; |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @throws [@todo get exceptions] |
| 35 | 35 | * @return void |
| 36 | 36 | */ |
| 37 | - public function connect(string $username, string $password=""); |
|
| 37 | + public function connect(string $username, string $password = ""); |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Returns an instance a pdo intance of the connection object |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected](clent, data)om> |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | public $connection; |
| 22 | 22 | |
| 23 | - public function __construct(string $adapter, array $dsnArray, string $username=null, string $password=null) |
|
| 23 | + public function __construct(string $adapter, array $dsnArray, string $username = null, string $password = null) |
|
| 24 | 24 | { |
| 25 | 25 | $class = __NAMESPACE__."\\Adapters\\$adapter"; |
| 26 | 26 | $adapterObject = new $class; |