Completed
Push — master ( dbfb1f...4672bc )
by Luc
04:05
created
src/SavedSearches/UiTIDSavedSearchRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $name = new StringLiteral($savedSearch->name);
75 75
         $query = QueryString::fromURLQueryString($savedSearch->query);
76
-        $id = new StringLiteral((string) $savedSearch->id);
76
+        $id = new StringLiteral((string)$savedSearch->id);
77 77
 
78 78
         return new SavedSearch($name, $query, $id);
79 79
     }
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function write(StringLiteral $userId, StringLiteral $name, QueryString $queryString): void
85 85
     {
86
-        $userId = (string) $userId;
87
-        $name = (string) $name;
86
+        $userId = (string)$userId;
87
+        $name = (string)$name;
88 88
         $query = $queryString->toURLQueryString();
89 89
 
90 90
         $savedSearch = new \CultureFeed_SavedSearches_SavedSearch(
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                         'error' => $exception->getMessage(),
105 105
                         'userId' => $userId,
106 106
                         'name' => $name,
107
-                        'query' => (string) $queryString,
107
+                        'query' => (string)$queryString,
108 108
                     ]
109 109
                 );
110 110
             }
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function delete(StringLiteral $userId, StringLiteral $searchId): void
118 118
     {
119
-        $userId = (string) $userId;
120
-        $searchId = (string) $searchId;
119
+        $userId = (string)$userId;
120
+        $searchId = (string)$searchId;
121 121
 
122 122
         try {
123 123
             $this->savedSearches->unsubscribe($searchId, $userId);
Please login to merge, or discard this patch.
src/SavedSearches/UDB3SavedSearchRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     ): void {
91 91
         $queryBuilder = $this->connection->createQueryBuilder()
92 92
             ->delete($this->tableName->toNative())
93
-            ->where(SchemaConfigurator::USER . ' = ?')
94
-            ->andWhere(SchemaConfigurator::ID . ' = ?')
93
+            ->where(SchemaConfigurator::USER.' = ?')
94
+            ->andWhere(SchemaConfigurator::ID.' = ?')
95 95
             ->setParameters(
96 96
                 [
97 97
                     $userId->toNative(),
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $queryBuilder = $this->connection->createQueryBuilder()
111 111
             ->select('*')
112 112
             ->from($this->tableName->toNative())
113
-            ->where(SchemaConfigurator::USER . ' = ?')
113
+            ->where(SchemaConfigurator::USER.' = ?')
114 114
             ->setParameters(
115 115
                 [
116 116
                     $this->userId->toNative(),
Please login to merge, or discard this patch.