Completed
Pull Request — master (#22)
by Tobias
01:41
created
src/Model/User/UserRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $arguments = array_merge([$user['uid']], $arguments);
72 72
         unset($user['uid']);
73 73
 
74
-        $body = $this->body->withMethod(self::TOPIC . '_add')
74
+        $body = $this->body->withMethod(self::TOPIC.'_add')
75 75
                            ->withArguments($arguments)
76 76
                            ->withAddedOptions(array_merge($defaultOptions, $user, $options));
77 77
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             'rights'     => false,
88 88
         ];
89 89
 
90
-        $body = $this->body->withMethod(self::TOPIC . '_show')
90
+        $body = $this->body->withMethod(self::TOPIC.'_show')
91 91
                            ->withArguments($arguments)
92 92
                            ->withAddedOptions(array_merge($defaultOptions, $options));
93 93
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             'whoami'     => false,
110 110
         ];
111 111
 
112
-        $body = $this->body->withMethod(self::TOPIC . '_find')
112
+        $body = $this->body->withMethod(self::TOPIC.'_find')
113 113
                            ->withArguments($arguments)
114 114
                            ->withAddedOptions(array_merge($defaultOptions, $options));
115 115
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         $arguments = array_merge([$uid], $arguments);
141 141
 
142
-        $body = $this->body->withMethod(self::TOPIC . '_mod')
142
+        $body = $this->body->withMethod(self::TOPIC.'_mod')
143 143
                            ->withArguments($arguments)
144 144
                            ->withAddedOptions(array_merge($defaultOptions, $newData, $options));
145 145
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $defaultOptions = [
152 152
         ];
153 153
 
154
-        $body = $this->body->withMethod(self::TOPIC . '_del')
154
+        $body = $this->body->withMethod(self::TOPIC.'_del')
155 155
                            ->withArguments($arguments)
156 156
                            ->withAddedOptions(array_merge($defaultOptions, $options));
157 157
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     public function __call($name, $arguments)
162 162
     {
163
-        if (strncmp($name, 'findBy', 6) === 0 && strlen($name) > 6) {
163
+        if (strncmp($name, 'findBy', 6) === 0 && strlen($name)>6) {
164 164
             $field = str_replace('findBy', '', $name);
165 165
             $field = strtolower($field); // Sn => sn
166 166
             // #TODO camelCase to snake_case em alguns casos (givenname excecao)
Please login to merge, or discard this patch.