Passed
Push — master ( 3cfe5c...d1e948 )
by Oliver
04:53
created
src/BoxedCode/Tracking/Trackers/Tracker.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
      * Get a 'trackable' url for the current data model.
216 216
      *
217 217
      * @param array $parameters
218
-     * @return \League\Url\Url
218
+     * @return string
219 219
      */
220 220
     public function getTrackedUrl($parameters = [])
221 221
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $path = $this->getRoutingPath();
177 177
 
178
-        $router->get($path, ['as' => $this->route_name, function (Request $request, $id) {
179
-            if (! ($model = TrackableResourceModel::find($id))) {
178
+        $router->get($path, ['as' => $this->route_name, function(Request $request, $id) {
179
+            if (!($model = TrackableResourceModel::find($id))) {
180 180
                 abort(404);
181 181
             }
182 182
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             }
234 234
         }
235 235
 
236
-        return $url . $params;
236
+        return $url.$params;
237 237
     }
238 238
 
239 239
     /**
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      */
244 244
     protected function getUniqueId()
245 245
     {
246
-        while (! isset($id) || TrackableResourceModel::find($id)) {
246
+        while (!isset($id) || TrackableResourceModel::find($id)) {
247 247
             $id = str_random(6);
248 248
         }
249 249
 
Please login to merge, or discard this patch.