Completed
Push — master ( f5ad55...ada292 )
by Tobias
25s queued 10s
created
src/Model/User/UserRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public function add($user, array $arguments = [], array $options = []): ResponseBodyInterface
62 62
     {
63 63
         if (\is_object($user)) {
64
-            $user = (array)$user;
64
+            $user = (array) $user;
65 65
         }
66 66
 
67 67
         $defaultOptions = [
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $arguments = array_merge([$user['uid']], $arguments);
76 76
         unset($user['uid']);
77 77
 
78
-        $body = $this->body->withMethod(self::TOPIC . '_add')
78
+        $body = $this->body->withMethod(self::TOPIC.'_add')
79 79
                            ->withArguments($arguments)
80 80
                            ->withAddedOptions(array_merge($defaultOptions, $user, $options));
81 81
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             'rights'     => false,
92 92
         ];
93 93
 
94
-        $body = $this->body->withMethod(self::TOPIC . '_show')
94
+        $body = $this->body->withMethod(self::TOPIC.'_show')
95 95
                            ->withArguments($arguments)
96 96
                            ->withAddedOptions(array_merge($defaultOptions, $options));
97 97
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             'whoami'     => false,
114 114
         ];
115 115
 
116
-        $body = $this->body->withMethod(self::TOPIC . '_find')
116
+        $body = $this->body->withMethod(self::TOPIC.'_find')
117 117
                            ->withArguments($arguments)
118 118
                            ->withAddedOptions(array_merge($defaultOptions, $options));
119 119
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         $arguments = array_merge([$uid], $arguments);
145 145
 
146
-        $body = $this->body->withMethod(self::TOPIC . '_mod')
146
+        $body = $this->body->withMethod(self::TOPIC.'_mod')
147 147
                            ->withArguments($arguments)
148 148
                            ->withAddedOptions(array_merge($defaultOptions, $newData, $options));
149 149
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $defaultOptions = [
156 156
         ];
157 157
 
158
-        $body = $this->body->withMethod(self::TOPIC . '_del')
158
+        $body = $this->body->withMethod(self::TOPIC.'_del')
159 159
                            ->withArguments($arguments)
160 160
                            ->withAddedOptions(array_merge($defaultOptions, $options));
161 161
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     public function __call($name, $arguments)
166 166
     {
167
-        if (strncmp($name, 'findBy', 6) === 0 && strlen($name) > 6) {
167
+        if (strncmp($name, 'findBy', 6) === 0 && strlen($name)>6) {
168 168
             $field = str_replace('findBy', '', $name);
169 169
             $field = strtolower($field); // Sn => sn
170 170
             // #TODO camelCase to snake_case em alguns casos (givenname excecao)
Please login to merge, or discard this patch.