Completed
Pull Request — master (#16)
by Sergii
07:37
created
src/Context/TqContextInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -12,6 +12,7 @@
 block discarded – undo
12 12
      * Set context parameters from behat.yml.
13 13
      *
14 14
      * @param array $parameters
15
+     * @return void
15 16
      */
16 17
     public function setTqParameters(array $parameters);
17 18
 
Please login to merge, or discard this patch.
src/Context/User/RawUserContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     public function getCurrentId()
31 31
     {
32 32
         $currentUser = $this
33
-          ->getUserManager()
34
-          ->getCurrentUser();
33
+            ->getUserManager()
34
+            ->getCurrentUser();
35 35
 
36 36
         return empty($currentUser->uid) ? 0 : $currentUser->uid;
37 37
     }
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
 
118 118
         $account = user_load_by_name($props['username']);
119 119
         $this
120
-          ->getUserManager()
121
-          ->setCurrentUser($account);
120
+            ->getUserManager()
121
+            ->setCurrentUser($account);
122 122
 
123 123
         DrupalKernelPlaceholder::setCurrentUser($account);
124 124
     }
Please login to merge, or discard this patch.
src/Context/Form/FormContext.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@
 block discarded – undo
114 114
     public function fillInWithValueOfFieldOfCurrentUser($field, $userField)
115 115
     {
116 116
         $currentUser = $this
117
-          ->getUserManager()
118
-          ->getCurrentUser();
117
+            ->getUserManager()
118
+            ->getCurrentUser();
119 119
 
120 120
         if (!empty($currentUser) && empty($currentUser->uid)) {
121 121
             throw new \Exception('Anonymous user have no fields');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         if (DRUPAL_CORE < 8) {
65 65
             $autocomplete_selector = 'autocomplete';
66 66
             $autocomplete = $field->getParent()->findById($autocomplete_selector);
67
-            $autocomplete_selector = '#' . $autocomplete_selector;
67
+            $autocomplete_selector = '#'.$autocomplete_selector;
68 68
         } else {
69 69
             $autocomplete_selector = 'body > .ui-widget-content.ui-autocomplete';
70 70
             $autocomplete = $this->element('css', $autocomplete_selector);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         $minkContext = $this->getMinkContext();
171 171
 
172 172
         foreach ($checkboxes->getRows() as $checkbox) {
173
-            $minkContext->{trim($action) . 'Option'}(reset($checkbox));
173
+            $minkContext->{trim($action).'Option'}(reset($checkbox));
174 174
         }
175 175
     }
176 176
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             throw new \Exception('The "files_path" Mink parameter was not configured.');
264 264
         }
265 265
 
266
-        $file = rtrim(realpath($filesPath), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $file;
266
+        $file = rtrim(realpath($filesPath), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file;
267 267
 
268 268
         if (!is_file($file)) {
269 269
             throw new \InvalidArgumentException(sprintf('The "%s" file does not exist.', $file));
Please login to merge, or discard this patch.