@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @param string $dbName Database name |
| 52 | 52 | * |
| 53 | - * @return boolean |
|
| 53 | + * @return boolean|null |
|
| 54 | 54 | * @throws \InvalidArgumentException |
| 55 | 55 | */ |
| 56 | 56 | public function switchDatabase($dbName) |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * @param string $path path to redirect |
| 89 | 89 | * @param integer $status status for redirect |
| 90 | 90 | * |
| 91 | - * @return false|ResponseInterface |
|
| 91 | + * @return string|false |
|
| 92 | 92 | * @throws Exception|\InvalidArgumentException |
| 93 | 93 | */ |
| 94 | 94 | public function redirect($path, $status = 301) |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return bool|int |
|
| 56 | + * @return integer |
|
| 57 | 57 | * @throws Exception |
| 58 | 58 | */ |
| 59 | 59 | public function getID() |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public static function finder(IQuery $query = null, $single = false) |
| 108 | 108 | { |
| 109 | 109 | $query = ($query instanceof Query) ? $query : new Query((new ConnectionInjector)->build()); |
| 110 | - $query->table = static::$tableName . ' m'; |
|
| 110 | + $query->table = static::$tableName.' m'; |
|
| 111 | 111 | $query->objectName = get_called_class(); |
| 112 | 112 | $query->single = $single; |
| 113 | 113 | |
@@ -165,9 +165,9 @@ discard block |
||
| 165 | 165 | $sql = new Query((new ConnectionInjector)->build()); |
| 166 | 166 | |
| 167 | 167 | if ((new ConnectionInjector)->build()->getDriverType() === 'pgsql') { |
| 168 | - $sql->addWhere('"m"."' . $relation['On'][1] . '"=:' . $relation['On'][0]); |
|
| 168 | + $sql->addWhere('"m"."'.$relation['On'][1].'"=:'.$relation['On'][0]); |
|
| 169 | 169 | } else { |
| 170 | - $sql->addWhere('`m`.`' . $relation['On'][1] . '`=:' . $relation['On'][0]); |
|
| 170 | + $sql->addWhere('`m`.`'.$relation['On'][1].'`=:'.$relation['On'][0]); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | if ($relation['Where']) { |
@@ -380,9 +380,9 @@ discard block |
||
| 380 | 380 | if (!$where) { |
| 381 | 381 | if (self::$primaryKey) { |
| 382 | 382 | if ((new ConnectionInjector)->build()->getDriverType() === 'pgsql') { |
| 383 | - $where .= '"' . self::$primaryKey . '" = :' . self::$primaryKey; |
|
| 383 | + $where .= '"'.self::$primaryKey.'" = :'.self::$primaryKey; |
|
| 384 | 384 | } else { |
| 385 | - $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
|
| 385 | + $where .= '`'.self::$primaryKey.'` = :'.self::$primaryKey; |
|
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | } else { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | protected function doException(\Exception $e) |
| 31 | 31 | { |
| 32 | 32 | $command = new DefaultConsoleCommand(); |
| 33 | - $command->data = '"Error #' . $e->getCode() . ' - ' . $e->getMessage() . '"'; |
|
| 33 | + $command->data = '"Error #'.$e->getCode().' - '.$e->getMessage().'"'; |
|
| 34 | 34 | $command->execute(); |
| 35 | 35 | |
| 36 | 36 | $response = (new ResponseInjector)->build(); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | $this->hash = md5($this->sourcePath); |
| 69 | 69 | |
| 70 | - $this->publishPath = '/' . (($dir = (new Injector)->param('assetsDirName')) ? $dir : 'assets') . '/' . $this->hash; |
|
| 70 | + $this->publishPath = '/'.(($dir = (new Injector)->param('assetsDirName')) ? $dir : 'assets').'/'.$this->hash; |
|
| 71 | 71 | |
| 72 | 72 | $web = (new KernelInjector)->get()->getWebDir(); |
| 73 | 73 | |