@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Get an array of Laravel tailored casters. |
85 | 85 | * |
86 | - * @return array |
|
86 | + * @return callable[] |
|
87 | 87 | */ |
88 | 88 | protected function getCasters() |
89 | 89 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | /** |
98 | 98 | * Get artisan commands to pass through to PsySH. |
99 | 99 | * |
100 | - * @return array |
|
100 | + * @return \Symfony\Component\Console\Command\Command[] |
|
101 | 101 | */ |
102 | 102 | protected function getCommands() |
103 | 103 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function getShell() |
67 | 67 | { |
68 | - if (! $this->shell) { |
|
68 | + if (!$this->shell) { |
|
69 | 69 | $config = new Configuration(); |
70 | 70 | |
71 | 71 | $config->getPresenter()->addCasters( |
@@ -45,13 +45,13 @@ |
||
45 | 45 | $results = []; |
46 | 46 | foreach (self::$appProperties as $property) { |
47 | 47 | try { |
48 | - if (method_exists($app, $property)) { |
|
49 | - $val = $app->$property(); |
|
48 | + if (method_exists($app, $property)) { |
|
49 | + $val = $app->$property(); |
|
50 | 50 | |
51 | - if (! is_null($val)) { |
|
52 | - $results[Caster::PREFIX_VIRTUAL.$property] = $val; |
|
53 | - } |
|
54 | - } |
|
51 | + if (! is_null($val)) { |
|
52 | + $results[Caster::PREFIX_VIRTUAL.$property] = $val; |
|
53 | + } |
|
54 | + } |
|
55 | 55 | } catch (Exception $e) { |
56 | 56 | // |
57 | 57 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | if (method_exists($app, $property)) { |
49 | 49 | $val = $app->$property(); |
50 | 50 | |
51 | - if (! is_null($val)) { |
|
51 | + if (!is_null($val)) { |
|
52 | 52 | $results[Caster::PREFIX_VIRTUAL.$property] = $val; |
53 | 53 | } |
54 | 54 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
3 | +require_once __DIR__.'/vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | $path = __DIR__.'/fixture'; |
6 | 6 |