fix travis build...
authorStricted <info@stricted.net>
Sun, 17 Jul 2016 08:44:35 +0000 (10:44 +0200)
committerStricted <info@stricted.net>
Sun, 17 Jul 2016 08:47:09 +0000 (10:47 +0200)
lib/system/RequestHandler.class.php
lib/system/route/Segment.class.php

index 3e1d3d13a734366932772306489820d8b4690ac2..19aa4897709c45cd7b789838d20753b9d74d44ab 100644 (file)
@@ -71,8 +71,8 @@ class RequestHandler extends SingletonFactory {
        /**
         * @see \Zend\Mvc\Router\SimpleRouteStack::addRoute()
         *
-     * @param  string  $name
-     * @param  mixed   $route
+        * @param  string  $name
+        * @param  mixed   $route
         */
        public function addRoute ($name, $route) {
                $this->router->addRoute($name, $route);
@@ -81,17 +81,17 @@ class RequestHandler extends SingletonFactory {
        /**
         * @see \Zend\Mvc\Router\SimpleRouteStack::addRoutes()
         *
-     * @param  array|Traversable       $routes
+        * @param       array|Traversable       $routes
         */
        public function addRoutes ($routes) {
                $this->router->addRoutes($routes);
        }
        
-    /**
-     * Get the added routes
-     *
-     * @return Traversable list of all routes
-     */
+       /**
+        * Get the added routes
+        *
+        * @return      Traversable list of all routes
+        */
        public function getRoutes() {
                return $this->router->getRoutes();
        }
index 8948b659203dfd226d30abfd0ebd4dbe808b2ed3..29aef3a682e7f43ec4349022df03056059a7488c 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 namespace dns\system\route;
-use Zend\Mvc\Router\Http\Segment as SegmentBase;
+use Zend\Mvc\Router\Exception\RuntimeException;
 use Zend\Mvc\Router\Http\RouteMatch;
+use Zend\Mvc\Router\Http\Segment as SegmentBase;
 use Zend\Stdlib\RequestInterface as Request;
 
 class Segment extends SegmentBase {
@@ -16,7 +17,7 @@ class Segment extends SegmentBase {
                
                if ($this->translationKeys) {
                        if (!isset($options['translator']) || !$options['translator'] instanceof Translator) {
-                               throw new Exception\RuntimeException('No translator provided');
+                               throw new RuntimeException('No translator provided');
                        }
                        
                        $translator = $options['translator'];