Test Setup Failed
Push — master ( dc8a85...76f699 )
by Craig
05:08
created
src/system/RoutesModule/Form/Handler/Common/Base/AbstractEditHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
         // retrieve identifier of the object we wish to edit
268 268
         $routeParams = $request->get('_route_params', []);
269 269
         if (array_key_exists($this->idField, $routeParams)) {
270
-            $this->idValue = (int) !empty($routeParams[$this->idField]) ? $routeParams[$this->idField] : 0;
270
+            $this->idValue = (int)!empty($routeParams[$this->idField]) ? $routeParams[$this->idField] : 0;
271 271
         }
272 272
         if (0 === $this->idValue) {
273 273
             $this->idValue = $request->query->getInt($this->idField);
Please login to merge, or discard this patch.
src/system/RoutesModule/Form/Type/Base/AbstractRouteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@
 block discarded – undo
332 332
             ->setDefaults([
333 333
                 // define class for underlying data (required for embedding forms)
334 334
                 'data_class' => RouteEntity::class,
335
-                'empty_data' => function (FormInterface $form) {
335
+                'empty_data' => function(FormInterface $form) {
336 336
                     return $this->entityFactory->createRoute();
337 337
                 },
338 338
                 'error_mapping' => [
Please login to merge, or discard this patch.
src/system/BlocksModule/Tests/Helper/InstallerHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->getMock();
55 55
         $kernel
56 56
             ->method('getModule')
57
-            ->willReturnCallback(function ($moduleName) {
57
+            ->willReturnCallback(function($moduleName) {
58 58
                 if ('ExceptionModule' === $moduleName) {
59 59
                     // mocks situation where module is not namespaced.
60 60
                     throw new Exception();
Please login to merge, or discard this patch.
src/system/MenuModule/Controller/NodeController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
                         $parent = $menuItemRepository->find($request->request->get('parent'));
62 62
                         $menuItemEntity->setParent($parent);
63 63
                         $menuItemEntity->setRoot($parent->getRoot());
64
-                    } elseif (empty($parentId) && $request->request->has('after')) { // sibling of top-level child
64
+                    } elseif (empty($parentId) && $request->request->has('after')) {
65
+// sibling of top-level child
65 66
                         /** @var MenuItemEntity $sibling */
66 67
                         $sibling = $menuItemRepository->find($request->request->get('after'));
67 68
                         $menuItemEntity->setParent($sibling->getParent());
Please login to merge, or discard this patch.
src/system/ThemeModule/Controller/ThemeController.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
      */
267 267
     public function creditsAction(ThemeEntityRepository $themeRepository, string $themeName): array
268 268
     {
269
-        if (!$this->hasPermission('ZikulaThemeModule::', "${themeName}::credits", ACCESS_EDIT)) {
269
+        if (!$this->hasPermission('ZikulaThemeModule::', "${themename}::credits", ACCESS_EDIT)) {
270 270
             throw new AccessDeniedException();
271 271
         }
272 272
         $themeInfo = $themeRepository->findOneBy(['name' => $themeName]);
Please login to merge, or discard this patch.
src/system/UsersModule/Entity/Repository/UserRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         // the following process should be unnecessary because cascade = all but MySQL 5.7 not working with that (#3726)
52 52
         $qb = $this->_em->createQueryBuilder();
53 53
         $qb->delete(UserAttributeEntity::class, 'a')
54
-           ->where('a.user = :userId')
55
-           ->setParameter('userId', $user->getUid());
54
+            ->where('a.user = :userId')
55
+            ->setParameter('userId', $user->getUid());
56 56
         $query = $qb->getQuery();
57 57
         $query->execute();
58 58
         // end of theoretically unrequired process
Please login to merge, or discard this patch.
src/system/UsersModule/Entity/Repository/UserSessionRepository.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     public function gc(string $level, int $inactiveMinutes, int $days): void
92 92
     {
93 93
         $inactive = new DateTime();
94
-        $inactive->modify("-${inactiveMinutes} minutes");
94
+        $inactive->modify("-${inactiveminutes} minutes");
95 95
         $daysOld = new DateTime();
96 96
         $daysOld->modify("-${days} days");
97 97
 
Please login to merge, or discard this patch.
src/system/CategoriesModule/Controller/NodeController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,8 @@
 block discarded – undo
80 80
                         $parent = $categoryRepository->find($parentId);
81 81
                         $category->setParent($parent);
82 82
                         $category->setRoot($parent->getRoot());
83
-                    } elseif (empty($parentId) && $request->request->has('after')) { // sibling of top-level child
83
+                    } elseif (empty($parentId) && $request->request->has('after')) {
84
+// sibling of top-level child
84 85
                         /** @var CategoryEntity $sibling */
85 86
                         $sibling = $categoryRepository->find($request->request->get('after'));
86 87
                         $category->setParent($sibling->getParent());
Please login to merge, or discard this patch.
src/system/CategoriesModule/Api/CategoryPermissionApi.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             }
49 49
             $regId = $categoryAssignment->getCategoryRegistryId();
50 50
             $catId = $categoryAssignment->getCategory()->getId();
51
-            $hasAccess = $this->permissionApi->hasPermission('ZikulaCategoriesModule:PropertyId:CategoryId', "${regId}::${catId}", $permLevel);
51
+            $hasAccess = $this->permissionApi->hasPermission('ZikulaCategoriesModule:PropertyId:CategoryId', "${regid}::${catid}", $permLevel);
52 52
             if ($requireAccessForAll && !$hasAccess) {
53 53
                 return false;
54 54
             }
Please login to merge, or discard this patch.