@@ -193,7 +193,7 @@ |
||
| 193 | 193 | |
| 194 | 194 | $container = $this; |
| 195 | 195 | |
| 196 | - return function () use ($callable, $container) { |
|
| 196 | + return function() use ($callable, $container) { |
|
| 197 | 197 | static $instance; |
| 198 | 198 | |
| 199 | 199 | if ($instance === null) { |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | $this->data[$resource] = $this->filterer->map( |
| 172 | 172 | $this->data[$resource], |
| 173 | 173 | $filter, |
| 174 | - function ($row) use ($data, &$affected) { |
|
| 174 | + function($row) use ($data, &$affected) { |
|
| 175 | 175 | foreach ($data as $key => $value) { |
| 176 | 176 | $row[$key] = $value; |
| 177 | 177 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * Retrieves the related models without matching them to their parents. |
| 18 | 18 | * |
| 19 | 19 | * @param array $instances |
| 20 | - * @return array |
|
| 20 | + * @return Record[] |
|
| 21 | 21 | */ |
| 22 | 22 | public function eagerLoad(array $instances) |
| 23 | 23 | { |
@@ -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 |
@@ -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 | { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Composer's autoloader |
| 3 | -if (is_file(__DIR__ . '/../../autoload.php')) { |
|
| 4 | - include __DIR__ . '/../../autoload.php'; |
|
| 3 | +if (is_file(__DIR__.'/../../autoload.php')) { |
|
| 4 | + include __DIR__.'/../../autoload.php'; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | // Darya's autoloader |
| 8 | -include __DIR__ . '/src/Darya/Foundation/Autoloader.php'; |
|
| 8 | +include __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('./'), array( |
| 14 | - 'Darya' => realpath(__DIR__ . '/src') |
|
| 14 | + 'Darya' => realpath(__DIR__.'/src') |
|
| 15 | 15 | )); |
| 16 | 16 | |
| 17 | 17 | $autoloader->register(); |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | $data['server']['request_method'] = strtoupper($method); |
| 175 | 175 | |
| 176 | 176 | if ($components['query']) { |
| 177 | - $data['server']['request_uri'] .= '?' . $components['query']; |
|
| 177 | + $data['server']['request_uri'] .= '?'.$components['query']; |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | $request = new Request( |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $host = $this->details['host']; |
| 28 | 28 | |
| 29 | 29 | if ($this->details['port']) { |
| 30 | - $host .= ', ' . $this->details['port']; |
|
| 30 | + $host .= ', '.$this->details['port']; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $this->connection = sqlsrv_connect($this->details['host'], array( |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | if (!method_exists($instance, $method)) { |
| 58 | - throw new RuntimeException('Call to non-existent method "' . $method . '" on facade instance'); |
|
| 58 | + throw new RuntimeException('Call to non-existent method "'.$method.'" on facade instance'); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | return static::$serviceContainer->call(array($instance, $method), $parameters); |