Completed
Pull Request — master (#10)
by
unknown
02:33
created
src/Context/User/RawUserContext.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,10 +205,10 @@
 block discarded – undo
205 205
     public function getUserByColumn($column, $value)
206 206
     {
207 207
         $uid = db_select('users', 'u')
208
-          ->fields('u', array('uid'))
209
-          ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE')
210
-          ->range(0, 1)
211
-          ->execute()->fetchField();
208
+            ->fields('u', array('uid'))
209
+            ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE')
210
+            ->range(0, 1)
211
+            ->execute()->fetchField();
212 212
 
213 213
         if (empty($uid)) {
214 214
             throw new \Exception(sprintf("User with the %s: %s not found.", $column, $value));
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $formContext = $this->getFormContext();
65 65
 
66 66
         foreach (['username', 'password'] as $prop) {
67
-            $formContext->fillField($this->getDrupalText($prop . '_field'), $props[$prop]);
67
+            $formContext->fillField($this->getDrupalText($prop.'_field'), $props[$prop]);
68 68
         }
69 69
 
70 70
         $this->getWorkingElement()->pressButton($this->getDrupalText('log_in'));
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     {
207 207
         $uid = db_select('users', 'u')
208 208
           ->fields('u', array('uid'))
209
-          ->condition('u.' . $column, '%' . db_like($value) . '%', 'LIKE')
209
+          ->condition('u.'.$column, '%'.db_like($value).'%', 'LIKE')
210 210
           ->range(0, 1)
211 211
           ->execute()->fetchField();
212 212
 
Please login to merge, or discard this patch.