Completed
Branch master (dd7a33)
by Csaba
02:05
created
src/Database/Clusterpoint/RestObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         if ((int)$res->hits() > 0) {
30 30
             throw new DetailedException(
31 31
                 'Unique constraint violation',
32
-                ['resourceName' => $this->resourceName,'confilct' => $res[0]]
32
+                ['resourceName' => $this->resourceName, 'confilct' => $res[0]]
33 33
             );
34 34
         }
35 35
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     private function getUniqueFieldQuery($query, $uniqueFields)
38 38
     {
39 39
         // @codeCoverageIgnoreStart
40
-        $query->where(function ($query) use ($uniqueFields) {
40
+        $query->where(function($query) use ($uniqueFields) {
41 41
             foreach ($uniqueFields as $fieldName) {
42 42
                 if (property_exists($this->resource, $fieldName)) {
43 43
                     $query->orWhere($fieldName, '==', $this->resource->{$fieldName});
Please login to merge, or discard this patch.
src/Database/Clusterpoint/Resource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $this->failOnError($res);
51 51
             return $this->toObject($res);
52 52
         } catch (\Exception $ex) {
53
-            throw new DetailedException($ex->getMessage(), ['result'=>empty($res)?null:$res]);
53
+            throw new DetailedException($ex->getMessage(), ['result'=>empty($res) ? null : $res]);
54 54
         }
55 55
     }
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $this->failOnError($res);
62 62
             return $this->toObject($res);
63 63
         } catch (\Exception $ex) {
64
-            throw new DetailedException($ex->getMessage(), ['result'=>empty($res)?null:$res]);
64
+            throw new DetailedException($ex->getMessage(), ['result'=>empty($res) ? null : $res]);
65 65
         }
66 66
     }
67 67
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             $this->failOnError($res);
73 73
             return $this->toObject($res);
74 74
         } catch (\Exception $ex) {
75
-            throw new DetailedException($ex->getMessage(), ['result'=>empty($res)?null:$res]);
75
+            throw new DetailedException($ex->getMessage(), ['result'=>empty($res) ? null : $res]);
76 76
         }
77 77
     }
78 78
 
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 include_once  __DIR__ . '/vendor/autoload.php';
3
-if (is_file(__DIR__. '/.env')) {
3
+if (is_file(__DIR__ . '/.env')) {
4 4
     $dotenv = new Dotenv\Dotenv(__DIR__);
5 5
     $dotenv->load();
6 6
 }
Please login to merge, or discard this patch.