@@ -16,7 +16,7 @@ |
||
16 | 16 | public function register(Container $container) |
17 | 17 | { |
18 | 18 | $container->register(array( |
19 | - 'Darya\Http\Request' => function ($container) { |
|
19 | + 'Darya\Http\Request' => function($container) { |
|
20 | 20 | return Request::createFromGlobals($container->resolve('Darya\Http\Session')); |
21 | 21 | }, |
22 | 22 | 'Darya\Http\Session' => new PhpSession |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function register(Container $container) |
16 | 16 | { |
17 | 17 | $container->register(array( |
18 | - 'Darya\Smarty\ViewResolver' => function ($container) { |
|
18 | + 'Darya\Smarty\ViewResolver' => function($container) { |
|
19 | 19 | $config = $container->config; |
20 | 20 | $basePath = $config['project.base_path']; |
21 | 21 | $realBasePath = realpath("{$basePath}/views/smarty"); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function register(Container $container) |
18 | 18 | { |
19 | 19 | $container->register(array( |
20 | - 'Darya\Database\Connection' => function ($container) { |
|
20 | + 'Darya\Database\Connection' => function($container) { |
|
21 | 21 | $config = $container->config; |
22 | 22 | |
23 | 23 | $connection = new MySql( |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function register(Container $container) |
16 | 16 | { |
17 | 17 | $container->register(array( |
18 | - 'Darya\Routing\Router' => function ($container) { |
|
18 | + 'Darya\Routing\Router' => function($container) { |
|
19 | 19 | $config = $container->config; |
20 | 20 | |
21 | 21 | $routes = $config['routes'] ?: array( |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function register(Container $container) |
25 | 25 | { |
26 | 26 | $container->register(array( |
27 | - 'Darya\Foundation\Configuration' => function (Application $application) { |
|
27 | + 'Darya\Foundation\Configuration' => function(Application $application) { |
|
28 | 28 | $basePath = $application->basePath(); |
29 | 29 | |
30 | 30 | // Load the application's configuration |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | ini_set('display_errors', 1); |
34 | 34 | |
35 | - $listener = function ($result) { |
|
35 | + $listener = function($result) { |
|
36 | 36 | Chrome::log(array($result->query->string, json_encode($result->query->parameters))); |
37 | 37 | |
38 | 38 | if ($result->error) { |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | /** |
484 | 484 | * Prepare table joins. |
485 | 485 | * |
486 | - * @param array $joins |
|
486 | + * @param Join[] $joins |
|
487 | 487 | * @return string |
488 | 488 | */ |
489 | 489 | protected function prepareJoins(array $joins) { |
@@ -639,7 +639,7 @@ discard block |
||
639 | 639 | * translateRead(). |
640 | 640 | * |
641 | 641 | * @param string $table |
642 | - * @param array|string $columns |
|
642 | + * @param string $columns |
|
643 | 643 | * @param string $joins [optional] |
644 | 644 | * @param string $where [optional] |
645 | 645 | * @param string $order [optional] |
@@ -823,8 +823,9 @@ |
||
823 | 823 | |
824 | 824 | $joinParameters = array(); |
825 | 825 | |
826 | - if ($storageQuery instanceof Database\Storage\Query) |
|
827 | - $joinParameters = $this->joinParameters($storageQuery->joins); |
|
826 | + if ($storageQuery instanceof Database\Storage\Query) { |
|
827 | + $joinParameters = $this->joinParameters($storageQuery->joins); |
|
828 | + } |
|
828 | 829 | |
829 | 830 | $parameters = array_merge( |
830 | 831 | $parameters, |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * Instantiate a new join. |
54 | 54 | * |
55 | 55 | * @param string $type |
56 | - * @param string $to |
|
56 | + * @param string $resource |
|
57 | 57 | */ |
58 | 58 | public function __construct($type, $resource) |
59 | 59 | { |