@@ -157,7 +157,7 @@ |
||
| 157 | 157 | $names = [$parent, $target]; |
| 158 | 158 | sort($names); |
| 159 | 159 | |
| 160 | - $this->table = implode('_', $names) . 's'; |
|
| 160 | + $this->table = implode('_', $names).'s'; |
|
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | // Ensure that the selected template file exists |
| 24 | - $path = $this->directory . '/' . $this->file; |
|
| 24 | + $path = $this->directory.'/'.$this->file; |
|
| 25 | 25 | |
| 26 | 26 | if (!is_file($path)) { |
| 27 | 27 | throw new \Exception("Could not find file when rendering view: \"$path\""); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | // Register the configuration service and its aliases |
| 28 | 28 | $container->register([ |
| 29 | - Configuration::class => function (Application $application) { |
|
| 29 | + Configuration::class => function(Application $application) { |
|
| 30 | 30 | $basePath = $application->basePath(); |
| 31 | 31 | |
| 32 | 32 | // Load the application's configuration |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function register(Container $container) |
| 24 | 24 | { |
| 25 | 25 | $container->register([ |
| 26 | - View\Resolver::class => function (Container $container) { |
|
| 26 | + View\Resolver::class => function(Container $container) { |
|
| 27 | 27 | $basePath = $container->get('path'); |
| 28 | 28 | $realBasePath = realpath("{$basePath}/views/php"); |
| 29 | 29 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Container $container) |
| 26 | 26 | { |
| 27 | 27 | $container->register([ |
| 28 | - Connection::class => function (Container $container) { |
|
| 28 | + Connection::class => function(Container $container) { |
|
| 29 | 29 | /** |
| 30 | 30 | * @var Configuration $config |
| 31 | 31 | */ |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Container $container) |
| 26 | 26 | { |
| 27 | 27 | $container->register([ |
| 28 | - 'Darya\Database\Storage' => function (Container $container) { |
|
| 28 | + 'Darya\Database\Storage' => function(Container $container) { |
|
| 29 | 29 | return new Storage($container->get('Darya\Database\Connection')); |
| 30 | 30 | }, |
| 31 | 31 | 'Darya\Storage\Readable' => 'Darya\Database\Storage', |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Container $container) |
| 26 | 26 | { |
| 27 | 27 | $container->register([ |
| 28 | - Request::class => function (Container $container) { |
|
| 28 | + Request::class => function(Container $container) { |
|
| 29 | 29 | return Request::createFromGlobals($container->get(Session::class)); |
| 30 | 30 | }, |
| 31 | 31 | Response::class => new Response, |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - $listener = function ($result) { |
|
| 53 | + $listener = function($result) { |
|
| 54 | 54 | Chrome::log([$result->query->string, json_encode($result->query->parameters)]); |
| 55 | 55 | |
| 56 | 56 | if ($result->error) { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Composer's autoloader |
| 3 | -if (is_file(__DIR__ . '/../../autoload.php')) { |
|
| 4 | - require_once __DIR__ . '/../../autoload.php'; |
|
| 3 | +if (is_file(__DIR__.'/../../autoload.php')) { |
|
| 4 | + require_once __DIR__.'/../../autoload.php'; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | // Darya's autoloader |
| 8 | -require_once __DIR__ . '/src/Darya/Foundation/Autoloader.php'; |
|
| 8 | +require_once __DIR__.'/src/Darya/Foundation/Autoloader.php'; |
|
| 9 | 9 | |
| 10 | 10 | use Darya\Foundation\Autoloader; |
| 11 | 11 | |
| 12 | 12 | // Base path wherever it's included from, absolute path to the framework |
| 13 | 13 | $autoloader = new Autoloader(realpath('./'), [ |
| 14 | - 'Darya' => realpath(__DIR__ . '/src') |
|
| 14 | + 'Darya' => realpath(__DIR__.'/src') |
|
| 15 | 15 | ]); |
| 16 | 16 | |
| 17 | 17 | $autoloader->register(); |