@@ -53,7 +53,7 @@ |
||
53 | 53 | $ip = $input->getArgument('ipaddress'); |
54 | 54 | |
55 | 55 | if (!filter_var($ip, FILTER_VALIDATE_IP)) { |
56 | - $output->writeln('<error>"' . $ip . '" is not a valid IP address</error>'); |
|
56 | + $output->writeln('<error>"'.$ip.'" is not a valid IP address</error>'); |
|
57 | 57 | return 1; |
58 | 58 | } |
59 | 59 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | if (isset($context[$name])) { |
71 | 71 | $context = $context[$name]; |
72 | 72 | } else { |
73 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
73 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
74 | 74 | } |
75 | 75 | if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) { |
76 | 76 | $this->sftp = $context['session']; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | public function stream_open($path, $mode, $options, &$opened_path) { |
84 | 84 | [, $path] = explode('://', $path); |
85 | - $path = '/' . ltrim($path); |
|
85 | + $path = '/'.ltrim($path); |
|
86 | 86 | $path = str_replace('//', '/', $path); |
87 | 87 | |
88 | 88 | $this->loadContext('sftp'); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | if (isset($context[$name])) { |
71 | 71 | $context = $context[$name]; |
72 | 72 | } else { |
73 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
73 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
74 | 74 | } |
75 | 75 | if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) { |
76 | 76 | $this->sftp = $context['session']; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | public function stream_open($path, $mode, $options, &$opened_path) { |
84 | 84 | [, $path] = explode('://', $path); |
85 | - $path = '/' . ltrim($path); |
|
85 | + $path = '/'.ltrim($path); |
|
86 | 86 | $path = str_replace('//', '/', $path); |
87 | 87 | |
88 | 88 | $this->loadContext('sftp'); |
@@ -36,8 +36,8 @@ |
||
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - $event->addEntityCollection('files', function ($name) { |
|
40 | - $nodes = \OC::$server->getUserFolder()->getById((int)$name); |
|
39 | + $event->addEntityCollection('files', function($name) { |
|
40 | + $nodes = \OC::$server->getUserFolder()->getById((int) $name); |
|
41 | 41 | return !empty($nodes); |
42 | 42 | }); |
43 | 43 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | $query = $this->connection->getQueryBuilder(); |
71 | 71 | $query->update('share') |
72 | - ->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST)) |
|
72 | + ->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST)) |
|
73 | 73 | ->where($query->expr()->eq('share_type', $query->createNamedParameter(IShare::TYPE_EMAIL))); |
74 | 74 | $query->execute(); |
75 | 75 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $documentationUrl = $this->urlGenerator->linkToDocs('developer-code-integrity'); |
82 | 82 | $output->writeln('This command requires the --path, --privateKey and --certificate.'); |
83 | 83 | $output->writeln('Example: ./occ integrity:sign-app --path="/Users/lukasreschke/Programming/myapp/" --privateKey="/Users/lukasreschke/private/myapp.key" --certificate="/Users/lukasreschke/public/mycert.crt"'); |
84 | - $output->writeln('For more information please consult the documentation: '. $documentationUrl); |
|
84 | + $output->writeln('For more information please consult the documentation: '.$documentationUrl); |
|
85 | 85 | return 1; |
86 | 86 | } |
87 | 87 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $this->checker->writeAppSignature($path, $x509, $rsa); |
108 | 108 | $output->writeln('Successfully signed "'.$path.'"'); |
109 | 109 | } catch (\Exception $e) { |
110 | - $output->writeln('Error: ' . $e->getMessage()); |
|
110 | + $output->writeln('Error: '.$e->getMessage()); |
|
111 | 111 | return 1; |
112 | 112 | } |
113 | 113 | return 0; |
@@ -62,10 +62,10 @@ |
||
62 | 62 | if (is_array($value)) { |
63 | 63 | $output->writeln(" <comment>>></comment> $key:"); |
64 | 64 | foreach ($value as $subKey => $subValue) { |
65 | - $output->writeln(" <comment>>></comment> $subKey: " . str_repeat(' ', 46 - strlen($subKey)) . $subValue); |
|
65 | + $output->writeln(" <comment>>></comment> $subKey: ".str_repeat(' ', 46 - strlen($subKey)).$subValue); |
|
66 | 66 | } |
67 | 67 | } else { |
68 | - $output->writeln(" <comment>>></comment> $key: " . str_repeat(' ', 50 - strlen($key)) . $value); |
|
68 | + $output->writeln(" <comment>>></comment> $key: ".str_repeat(' ', 50 - strlen($key)).$value); |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | return 0; |
@@ -65,13 +65,13 @@ |
||
65 | 65 | |
66 | 66 | $lastLogin = $user->getLastLogin(); |
67 | 67 | if ($lastLogin === 0) { |
68 | - $output->writeln('User ' . $user->getUID() . |
|
68 | + $output->writeln('User '.$user->getUID(). |
|
69 | 69 | ' has never logged in, yet.'); |
70 | 70 | } else { |
71 | 71 | $date = new \DateTime(); |
72 | 72 | $date->setTimestamp($lastLogin); |
73 | - $output->writeln($user->getUID() . |
|
74 | - '`s last login: ' . $date->format('d.m.Y H:i')); |
|
73 | + $output->writeln($user->getUID(). |
|
74 | + '`s last login: '.$date->format('d.m.Y H:i')); |
|
75 | 75 | } |
76 | 76 | return 0; |
77 | 77 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | protected function execute(InputInterface $input, OutputInterface $output): int { |
54 | 54 | $outputType = $input->getOption('output'); |
55 | 55 | if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) { |
56 | - $certificates = array_map(function (ICertificate $certificate) { |
|
56 | + $certificates = array_map(function(ICertificate $certificate) { |
|
57 | 57 | return [ |
58 | 58 | 'name' => $certificate->getName(), |
59 | 59 | 'common_name' => $certificate->getCommonName(), |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'Issued By' |
80 | 80 | ]); |
81 | 81 | |
82 | - $rows = array_map(function (ICertificate $certificate) { |
|
82 | + $rows = array_map(function(ICertificate $certificate) { |
|
83 | 83 | return [ |
84 | 84 | $certificate->getName(), |
85 | 85 | $certificate->getCommonName(), |