Completed
Push — master ( 813e7d...76abef )
by Jan
04:11
created
src/Entity/Parts/MeasurementUnit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function getIDString(): string
80 80
     {
81
-        return 'MU' . $this->getID();
81
+        return 'MU'.$this->getID();
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
src/Entity/Attachments/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
         if ($only_http) {   //Check if scheme is HTTPS or HTTP
222 222
             $scheme = parse_url($string, PHP_URL_SCHEME);
223 223
             if ($scheme !== 'http' && $scheme !== 'https') {
224
-                return false;   //All other schemes are not valid.
224
+                return false; //All other schemes are not valid.
225 225
             }
226 226
         }
227 227
         if ($path_required) {
Please login to merge, or discard this patch.
src/Entity/Attachments/AttachmentType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
      */
78 78
     public function getIDString(): string
79 79
     {
80
-        return 'AT' . sprintf('%09d', $this->getID());
80
+        return 'AT'.sprintf('%09d', $this->getID());
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/Entity/PriceInformations/Currency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,6 +126,6 @@
 block discarded – undo
126 126
      */
127 127
     public function getIDString(): string
128 128
     {
129
-        return 'C' . $this->getID();
129
+        return 'C'.$this->getID();
130 130
     }
131 131
 }
132 132
\ No newline at end of file
Please login to merge, or discard this patch.
src/Entity/PriceInformations/Pricedetail.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,6 @@
 block discarded – undo
110 110
      *          in the database, you have to pass the "price_related_quantity" count as $multiplier.
111 111
      *
112 112
      * @return float  the price as a float number
113
-
114 113
      */
115 114
     public function getPricePerUnit(int $multiplier = 1) : float
116 115
     {
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
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function getBitValue(string $permission_name, int $bit_n): int
275 275
     {
276
-        if(!$this->isValidPermissionName($permission_name)) {
276
+        if (!$this->isValidPermissionName($permission_name)) {
277 277
             throw new \InvalidArgumentException('No permission with the given name is existing!');
278 278
         }
279 279
 
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
     public function setPermissionValue(string $permission_name, int $bit_n, ?bool $new_value) : self
318 318
     {
319 319
         //Determine which bit value the given value is.
320
-        if($new_value === true) {
320
+        if ($new_value === true) {
321 321
             $bit_value = static::ALLOW;
322
-        } elseif($new_value === false) {
322
+        } elseif ($new_value === false) {
323 323
             $bit_value = static::DISALLOW;
324 324
         } else {
325 325
             $bit_value = static::INHERIT;
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function setBitValue(string $permission_name, int $bit_n, int $new_value) : self
341 341
     {
342
-        if(!$this->isValidPermissionName($permission_name)) {
342
+        if (!$this->isValidPermissionName($permission_name)) {
343 343
             throw new \InvalidArgumentException('No permission with the given name is existing!');
344 344
         }
345 345
 
Please login to merge, or discard this patch.
src/Entity/Base/StructuralDBElement.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,6 @@
 block discarded – undo
140 140
 
141 141
     /**
142 142
      *  Get the comment of the element.
143
-
144 143
      * @return string the comment
145 144
      */
146 145
     public function getComment(): ?string
Please login to merge, or discard this patch.
src/Form/AdminPages/ImportType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,16 +62,16 @@
 block discarded – undo
62 62
         //Disable import if user is not allowed to create elements.
63 63
         $entity = new $data['entity_class'];
64 64
         $perm_name = "create";
65
-        $disabled = ! $this->security->isGranted($perm_name, $entity);
65
+        $disabled = !$this->security->isGranted($perm_name, $entity);
66 66
 
67 67
         $builder
68 68
 
69 69
             ->add('format', ChoiceType::class, ['choices' =>
70
-                ['JSON' => 'json', 'XML' => 'xml','CSV'=>'csv' ,'YAML' => 'yaml'], 'label' => 'export.format',
70
+                ['JSON' => 'json', 'XML' => 'xml', 'CSV'=>'csv', 'YAML' => 'yaml'], 'label' => 'export.format',
71 71
                 'disabled' => $disabled])
72 72
             ->add('csv_separator', TextType::class, ['data' => ';', 'label' => 'import.csv_separator',
73 73
                 'disabled' => $disabled]);
74
-            if($entity instanceof StructuralDBElement) {
74
+            if ($entity instanceof StructuralDBElement) {
75 75
                 $builder->
76 76
                 add('parent', EntityType::class, ['class' => $data['entity_class'], 'choice_label' => 'full_path',
77 77
                     'attr' => ['class' => 'selectpicker', 'data-live-search' => true], 'required' => false,
Please login to merge, or discard this patch.
src/Form/AdminPages/MassCreationForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         //Disable import if user is not allowed to create elements.
62 62
         $entity = new $data['entity_class']();
63 63
         $perm_name = "create";
64
-        $disabled = ! $this->security->isGranted($perm_name, $entity);
64
+        $disabled = !$this->security->isGranted($perm_name, $entity);
65 65
 
66 66
         $builder
67 67
             ->add('lines', TextareaType::class, ['data' => '', 'label' => 'mass_creation.lines',
Please login to merge, or discard this patch.