Passed
Push — master ( 19e85c...7a6648 )
by Nicolaas
10:46
created
src/Helpers/FindEditableObjects.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -285,8 +285,8 @@
 block discarded – undo
285 285
 
286 286
     protected function classCanBeIncluded(string $dataObjectClassName): bool
287 287
     {
288
-        if(count($this->excludedClasses) || count($this->includedClasses)) {
289
-            if(!class_exists($dataObjectClassName)) {
288
+        if (count($this->excludedClasses) || count($this->includedClasses)) {
289
+            if (!class_exists($dataObjectClassName)) {
290 290
                 return false;
291 291
             }
292 292
             if (count($this->includedClasses)) {
Please login to merge, or discard this patch.
src/Admin/SearchAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
     protected function workOutBoolean(string $fieldName, ?array $data = null, ?bool $default = false)
177 177
     {
178 178
         $val = $data[$fieldName] ?? $default;
179
-        if(!$val) {
179
+        if (!$val) {
180 180
             return false;
181 181
         }
182 182
         return $val === '1' || $val === 'true' || $val === 'on' || $val === 'yes' || $val === true;
Please login to merge, or discard this patch.
src/Api/SearchApi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
                 if ($this->debug) {
328 328
                     DB::alteration_message(' ... Searching in ' . $className);
329 329
                 }
330
-                if(count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) {
330
+                if (count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) {
331 331
                     continue;
332 332
                 }
333 333
                 if (!in_array($className, $this->excludedClasses, true)) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
                     $fields = $this->getAllValidFields($className);
336 336
                     $filterAny = [];
337 337
                     foreach ($fields as $field) {
338
-                        if(count($this->includedFields) && !in_array($field, $this->includedFields, true)) {
338
+                        if (count($this->includedFields) && !in_array($field, $this->includedFields, true)) {
339 339
                             continue;
340 340
                         }
341 341
 
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         $array = [];
399 399
         $classNames = $this->getAllDataObjects();
400 400
         foreach ($classNames as $className) {
401
-            if(count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) {
401
+            if (count($this->includedClasses) && !in_array($className, $this->includedClasses, true)) {
402 402
                 continue;
403 403
             }
404 404
             if (!in_array($className, $this->excludedClasses, true)) {
Please login to merge, or discard this patch.