@@ -48,8 +48,7 @@ discard block |
||
48 | 48 | private function formatFunction(ReflectionFunctionAbstract $function) |
49 | 49 | { |
50 | 50 | return $function instanceof ReflectionMethod ? |
51 | - $function->getDeclaringClass()->getName() . '::' . $function->getName() : |
|
52 | - $function->getName(); |
|
51 | + $function->getDeclaringClass()->getName() . '::' . $function->getName() : $function->getName(); |
|
53 | 52 | } |
54 | 53 | |
55 | 54 | /** |
@@ -61,7 +60,6 @@ discard block |
||
61 | 60 | private function formatParameter(ReflectionParameter $parameter): string |
62 | 61 | { |
63 | 62 | return $parameter->hasType() ? |
64 | - sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : |
|
65 | - sprintf('$%s', $parameter->getName()); |
|
63 | + sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : sprintf('$%s', $parameter->getName()); |
|
66 | 64 | } |
67 | 65 | } |
68 | 66 | \ No newline at end of file |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $handler->pushProcessor(new PsrLogMessageProcessor); |
34 | 34 | |
35 | 35 | if (!$this->kernel->isCli()) { |
36 | - $handler->pushProcessor(new WebProcessor(null, [ // todo: make list configurable? |
|
36 | + $handler->pushProcessor(new WebProcessor(null, [// todo: make list configurable? |
|
37 | 37 | 'url' => 'REQUEST_URI', |
38 | 38 | 'ip' => 'REMOTE_ADDR', |
39 | 39 | 'http_method' => 'REQUEST_METHOD', |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | public function list(string $path = '.', bool $recursive = false): array |
88 | 88 | { |
89 | 89 | return array_map( |
90 | - function($item){ return new Metadata($item); }, |
|
90 | + function ($item) { return new Metadata($item); }, |
|
91 | 91 | $this->flysystem->listContents($path, $recursive) |
92 | 92 | ); |
93 | 93 | } |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | public function listDirectories(string $path = '.', bool $recursive = false): array |
99 | 99 | { |
100 | 100 | return array_map( |
101 | - function($item){ return new Metadata($item); }, |
|
101 | + function ($item) { return new Metadata($item); }, |
|
102 | 102 | array_filter( |
103 | 103 | $this->flysystem->listContents($path, $recursive), |
104 | - function($item){ return $item['type'] === MetadataContract::TYPE_DIR; } |
|
104 | + function ($item) { return $item['type'] === MetadataContract::TYPE_DIR; } |
|
105 | 105 | ) |
106 | 106 | ); |
107 | 107 | } |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | public function listFiles(string $path = '.', bool $recursive = false): array |
113 | 113 | { |
114 | 114 | return array_map( |
115 | - function($item){ return new Metadata($item); }, |
|
115 | + function ($item) { return new Metadata($item); }, |
|
116 | 116 | array_filter( |
117 | 117 | $this->flysystem->listContents($path, $recursive), |
118 | - function($item){ return $item['type'] === MetadataContract::TYPE_FILE; } |
|
118 | + function ($item) { return $item['type'] === MetadataContract::TYPE_FILE; } |
|
119 | 119 | ) |
120 | 120 | ); |
121 | 121 | } |