Code Duplication    Length = 10-10 lines in 2 locations

src/Charcoal/Object/ObjectRoute.php 1 location

@@ 392-401 (lines=10) @@
389
     * @param  mixed $options Template options.
390
     * @return self
391
     */
392
    public function setRouteOptions($options)
393
    {
394
        if (is_string($options)) {
395
            $options = json_decode($options, true);
396
        }
397
398
        $this->routeOptions = $options;
399
400
        return $this;
401
    }
402
403
    /**
404
     * @param string $routeOptionsIdent Template options ident.

src/Charcoal/Object/RoutableTrait.php 1 location

@@ 752-761 (lines=10) @@
749
     * @param  mixed $options The object routes's options.
750
     * @return self
751
     */
752
    public function setRouteOptions($options)
753
    {
754
        if (is_string($options)) {
755
            $options = json_decode($options, true);
756
        }
757
758
        $this->routeOptions = $options;
759
760
        return $this;
761
    }
762
763
    /**
764
     * Retrieve the object's route options