Completed
Pull Request — master (#16)
by Sergii
04:56
created
src/Context/TqContext.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,8 +221,7 @@
 block discarded – undo
221 221
                     strpos($error->message, $message) === 0 && ('' === $file ?: strpos($error->location, $file) === 0),
222 222
                     $negate
223 223
                 )) {
224
-                    case 1:
225
-                        throw new \Exception(sprintf('The "%s" error found, but should not be.', $message));
224
+                    case 1 : throw new \Exception(sprintf('The "%s" error found, but should not be.', $message));
226 225
 
227 226
                     case 2:
228 227
                         throw new \Exception(sprintf('The "%s" error not found, but should be.', $message));
Please login to merge, or discard this patch.
src/Cores/Drupal7Placeholder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
         $entity = entity_create($entityType, $values);
156 156
 
157 157
         entity_save($entityType, $entity);
158
-        list($entityId, , $bundle) = entity_extract_ids($entityType, $entity);
158
+        list($entityId,, $bundle) = entity_extract_ids($entityType, $entity);
159 159
 
160 160
         return [$entityId, $entityType, $bundle];
161 161
     }
Please login to merge, or discard this patch.
src/Cores/DrupalKernelPlaceholder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,9 +300,9 @@
 block discarded – undo
300 300
             $replace = '';
301 301
         } else {
302 302
             // Copy the file.
303
-            copy(str_replace('Cores', 'JavaScript', __DIR__) . '/' . $file, $destination);
303
+            copy(str_replace('Cores', 'JavaScript', __DIR__).'/'.$file, $destination);
304 304
             // Find an unique line and append injection.
305
-            $replace = $search . $injection;
305
+            $replace = $search.$injection;
306 306
         }
307 307
 
308 308
         file_put_contents($target, str_replace($search, $replace, file_get_contents($target)));
Please login to merge, or discard this patch.