Completed
Push — master ( 3ecbe1...f7c2f1 )
by Jan
04:05
created
src/Helpers/UTCDateTimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             self::$utc ? self::$utc : self::$utc = new \DateTimeZone('UTC')
66 66
         );
67 67
 
68
-        if (! $converted) {
68
+        if (!$converted) {
69 69
             throw ConversionException::conversionFailedFormat(
70 70
                 $value,
71 71
                 $this->getName(),
Please login to merge, or discard this patch.
src/Entity/UserSystem/PermissionsEmbed.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function getBitValue(string $permission_name, int $bit_n): int
316 316
     {
317
-        if(!$this->isValidPermissionName($permission_name)) {
317
+        if (!$this->isValidPermissionName($permission_name)) {
318 318
             throw new \InvalidArgumentException(sprintf('No permission with the name "%s" is existing!', $permission_name));
319 319
         }
320 320
 
@@ -358,9 +358,9 @@  discard block
 block discarded – undo
358 358
     public function setPermissionValue(string $permission_name, int $bit_n, ?bool $new_value) : self
359 359
     {
360 360
         //Determine which bit value the given value is.
361
-        if($new_value === true) {
361
+        if ($new_value === true) {
362 362
             $bit_value = static::ALLOW;
363
-        } elseif($new_value === false) {
363
+        } elseif ($new_value === false) {
364 364
             $bit_value = static::DISALLOW;
365 365
         } else {
366 366
             $bit_value = static::INHERIT;
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
      */
381 381
     public function setBitValue(string $permission_name, int $bit_n, int $new_value) : self
382 382
     {
383
-        if(!$this->isValidPermissionName($permission_name)) {
383
+        if (!$this->isValidPermissionName($permission_name)) {
384 384
             throw new \InvalidArgumentException('No permission with the given name is existing!');
385 385
         }
386 386
 
Please login to merge, or discard this patch.
src/Security/Voter/PartVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             if (false !== strpos($attribute, '.')) {
27 27
                 [$perm, $op] = explode('.', $attribute);
28 28
 
29
-                return $this->resolver->isValidOperation('parts_' . $perm, $op);
29
+                return $this->resolver->isValidOperation('parts_'.$perm, $op);
30 30
             }
31 31
 
32 32
             return $this->resolver->isValidOperation('parts', $attribute);
Please login to merge, or discard this patch.
src/Security/Voter/StructureVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     protected function supports($attribute, $subject)
58 58
     {
59
-        if(is_object($subject)) {
59
+        if (is_object($subject)) {
60 60
             $permission_name = $this->instanceToPermissionName($subject);
61 61
             //If permission name is null, then the subject is not supported
62 62
             return ($permission_name !== null) && $this->resolver->isValidOperation($permission_name, $attribute);
Please login to merge, or discard this patch.
src/Controller/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         }
138 138
 
139 139
         //Show permissions to user
140
-        $builder = $this->createFormBuilder()->add('permissions',PermissionsType::class, [
140
+        $builder = $this->createFormBuilder()->add('permissions', PermissionsType::class, [
141 141
             'mapped' => false,
142 142
             'disabled' => true,
143 143
             'inherit' => true,
Please login to merge, or discard this patch.
src/Form/Permissions/PermissionGroupType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,13 +81,13 @@
 block discarded – undo
81 81
     {
82 82
         parent::configureOptions($resolver);
83 83
 
84
-        $resolver->setDefault('group_name', function (Options $options) {
84
+        $resolver->setDefault('group_name', function(Options $options) {
85 85
             return trim($options['name']);
86 86
         });
87 87
 
88 88
         $resolver->setDefault('inherit', false);
89 89
 
90
-        $resolver->setDefault('label', function (Options $options) {
90
+        $resolver->setDefault('label', function(Options $options) {
91 91
             if (!empty($this->perm_structure['groups'][$options['group_name']]['label'])) {
92 92
                 return $this->perm_structure['groups'][$options['group_name']]['label'];
93 93
             }
Please login to merge, or discard this patch.
src/Security/EntityListeners/ElementPermissionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             if ((null !== $annotation) && !$this->security->isGranted($annotation->getReadOperationName(), $element)) {
88 88
                 $property->setAccessible(true);
89 89
                 $value = $annotation->getPlaceholder();
90
-                if($value instanceof DBElement) {
90
+                if ($value instanceof DBElement) {
91 91
                     $this->em->detach($value);
92 92
                 }
93 93
                 $property->setValue($element, $value);
Please login to merge, or discard this patch.
src/DataTables/Column/EntityColumn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@
 block discarded – undo
71 71
 
72 72
         $resolver->setRequired('property');
73 73
 
74
-        $resolver->setDefault('field', function (Options $option) {
75
-            return $option['property'] . '.name';
74
+        $resolver->setDefault('field', function(Options $option) {
75
+            return $option['property'].'.name';
76 76
         });
77 77
 
78
-        $resolver->setDefault('render', function (Options $options) {
79
-            return function ($value, Part $context) use ($options) {
78
+        $resolver->setDefault('render', function(Options $options) {
79
+            return function($value, Part $context) use ($options) {
80 80
                 /** @var DBElement $entity */
81 81
                 $entity = $this->accessor->getValue($context, $options['property']);
82 82
 
Please login to merge, or discard this patch.
src/Entity/Parts/Part.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      */
139 139
     public function getIDString(): string
140 140
     {
141
-        return 'P' . sprintf('%06d', $this->getID());
141
+        return 'P'.sprintf('%06d', $this->getID());
142 142
     }
143 143
 
144 144
     /**
Please login to merge, or discard this patch.