Passed
Push — master ( 0a9468...dd1f80 )
by Jan
05:09
created
src/Command/SetPasswordCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,14 +78,14 @@
 block discarded – undo
78 78
             sprintf('You are going to change the password of %s with ID %d. Proceed?',
79 79
                 $user->getFullName(true), $user->getID()));
80 80
 
81
-        if (! $proceed) {
81
+        if (!$proceed) {
82 82
             return 1;
83 83
         }
84 84
 
85 85
         $success = false;
86 86
         $new_password = '';
87 87
 
88
-        while (! $success) {
88
+        while (!$success) {
89 89
             $pw1 = $io->askHidden('Please enter new password:');
90 90
             $pw2 = $io->askHidden('Please confirm:');
91 91
             if ($pw1 !== $pw2) {
Please login to merge, or discard this patch.
src/Command/CleanAttachmentsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
             $continue = $io->confirm(sprintf('Found %d abandoned files. Do you want to delete them? This can not be undone!', count($file_list)), false);
107 107
 
108
-            if (! $continue) {
108
+            if (!$continue) {
109 109
                 //We are finished here, when no files should be deleted
110 110
                 return 0;
111 111
             }
Please login to merge, or discard this patch.
src/Entity/LogSystem/AbstractLogEntry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     final public static function levelIntToString(int $level): string
346 346
     {
347
-        if (! isset(self::LEVEL_ID_TO_STRING[$level])) {
347
+        if (!isset(self::LEVEL_ID_TO_STRING[$level])) {
348 348
             throw new \InvalidArgumentException('No level with this int is existing!');
349 349
         }
350 350
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     final public static function levelStringToInt(string $level): int
362 362
     {
363 363
         $tmp = array_flip(self::LEVEL_ID_TO_STRING);
364
-        if (! isset($tmp[$level])) {
364
+        if (!isset($tmp[$level])) {
365 365
             throw new \InvalidArgumentException('No level with this string is existing!');
366 366
         }
367 367
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      */
378 378
     final public static function targetTypeIdToClass(int $type_id): string
379 379
     {
380
-        if (! isset(self::TARGET_CLASS_MAPPING[$type_id])) {
380
+        if (!isset(self::TARGET_CLASS_MAPPING[$type_id])) {
381 381
             throw new \InvalidArgumentException('No target type with this ID is existing!');
382 382
         }
383 383
 
Please login to merge, or discard this patch.
src/Services/LogSystem/EventLogger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
103 103
         }
104 104
 
105 105
         //Check if the event type is black listed
106
-        if (! empty($blacklist) && $this->isObjectClassInArray($logEntry, $blacklist)) {
106
+        if (!empty($blacklist) && $this->isObjectClassInArray($logEntry, $blacklist)) {
107 107
             return false;
108 108
         }
109 109
 
110 110
         //Check for whitelisting
111
-        if (! empty($whitelist) && ! $this->isObjectClassInArray($logEntry, $whitelist)) {
111
+        if (!empty($whitelist) && !$this->isObjectClassInArray($logEntry, $whitelist)) {
112 112
             return false;
113 113
         }
114 114
 
Please login to merge, or discard this patch.
src/Services/LogSystem/LogEntryExtraFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             );
115 115
         }
116 116
 
117
-        if ($context instanceof ElementEditedLogEntry && ! empty($context->getMessage())) {
117
+        if ($context instanceof ElementEditedLogEntry && !empty($context->getMessage())) {
118 118
             return htmlspecialchars($context->getMessage());
119 119
         }
120 120
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 $this->translator->trans($context->isWithdrawal() ? 'log.instock_changed.withdrawal' : 'log.instock_changed.added'),
125 125
                 $context->getOldInstock(),
126 126
                 $context->getNewInstock(),
127
-                (! $context->isWithdrawal() ? '+' : '-').$context->getDifference(true),
127
+                (!$context->isWithdrawal() ? '+' : '-').$context->getDifference(true),
128 128
                 $this->translator->trans('log.instock_changed.comment'),
129 129
                 htmlspecialchars($context->getComment())
130 130
             );
Please login to merge, or discard this patch.
src/DataTables/LogDataTable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $dataTable->add('symbol', TextColumn::class, [
58 58
             'label' => '',
59
-            'render' => function ($value, AbstractLogEntry $context) {
59
+            'render' => function($value, AbstractLogEntry $context) {
60 60
                 switch ($context->getLevelString()) {
61 61
                     case LogLevel::DEBUG:
62 62
                         $symbol = 'fa-bug';
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $dataTable->add('type', TextColumn::class, [
114 114
             'label' => $this->translator->trans('log.type'),
115 115
             'propertyPath' => 'type',
116
-            'render' => function (string $value, AbstractLogEntry $context) {
116
+            'render' => function(string $value, AbstractLogEntry $context) {
117 117
                 return $this->translator->trans('log.type.'.$value);
118 118
             },
119 119
         ]);
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
         $dataTable->add('level', TextColumn::class, [
122 122
             'label' => $this->translator->trans('log.level'),
123 123
             'propertyPath' => 'levelString',
124
-            'render' => function (string $value, AbstractLogEntry $context) {
124
+            'render' => function(string $value, AbstractLogEntry $context) {
125 125
                 return $value;
126 126
             },
127 127
         ]);
128 128
 
129 129
         $dataTable->add('user', TextColumn::class, [
130 130
             'label' => $this->translator->trans('log.user'),
131
-            'render' => function ($value, AbstractLogEntry $context) {
131
+            'render' => function($value, AbstractLogEntry $context) {
132 132
                 $user = $context->getUser();
133 133
 
134 134
                 return sprintf(
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $dataTable->add('target_type', TextColumn::class, [
143 143
             'label' => $this->translator->trans('log.target_type'),
144 144
             'visible' => false,
145
-            'render' => function ($value, AbstractLogEntry $context) {
145
+            'render' => function($value, AbstractLogEntry $context) {
146 146
                 $class = $context->getTargetClass();
147 147
                 if (null !== $class) {
148 148
                     return $this->elementTypeNameGenerator->getLocalizedTypeLabel($class);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $dataTable->createAdapter(ORMAdapter::class, [
166 166
             'entity' => AbstractLogEntry::class,
167
-            'query' => function (QueryBuilder $builder): void {
167
+            'query' => function(QueryBuilder $builder): void {
168 168
                 $this->getQuery($builder);
169 169
             },
170 170
         ]);
Please login to merge, or discard this patch.
src/DataTables/Adapter/ORMAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
         $qb->resetDQLPart('orderBy');
224 224
         $gb = $qb->getDQLPart('groupBy');
225
-        if (empty($gb) || ! $this->hasGroupByPart($identifier, $gb)) {
225
+        if (empty($gb) || !$this->hasGroupByPart($identifier, $gb)) {
226 226
             $qb->select($qb->expr()->count($identifier));
227 227
 
228 228
             return (int) $qb->getQuery()->getSingleScalarResult();
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
     protected function configureOptions(OptionsResolver $resolver): void
283 283
     {
284
-        $providerNormalizer = function (Options $options, $value) {
284
+        $providerNormalizer = function(Options $options, $value) {
285 285
             return array_map([$this, 'normalizeProcessor'], (array) $value);
286 286
         };
287 287
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             ->setDefaults([
290 290
                 'hydrate' => Query::HYDRATE_OBJECT,
291 291
                 'query' => [],
292
-                'criteria' => function (Options $options) {
292
+                'criteria' => function(Options $options) {
293 293
                     return [new SearchCriteriaProvider()];
294 294
                 },
295 295
             ])
Please login to merge, or discard this patch.