Completed
Push — master ( 922528...99faf5 )
by Ben
04:00
created
src/Thinktomorrow/Locale/LocaleUrl.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param null $locale
45 45
      * @param array $parameters
46 46
      * @param null $secure
47
-     * @return mixed
47
+     * @return string
48 48
      */
49 49
     public function to($url, $locale = null, $parameters = [], $secure = null)
50 50
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param null $locale
63 63
      * @param array $parameters
64 64
      * @param bool $absolute
65
-     * @return mixed
65
+     * @return string
66 66
      */
67 67
     public function route($name, $locale = null, $parameters = [], $absolute = true)
68 68
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\Locale;
4 4
 
5
-use Illuminate\Contracts\Routing\UrlGenerator;
6 5
 use Thinktomorrow\Locale\Parsers\RouteParser;
7 6
 use Thinktomorrow\Locale\Parsers\UrlParser;
8 7
 
Please login to merge, or discard this patch.
src/Thinktomorrow/Locale/Parsers/UrlParser.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * e.g. /foo/bar is transformed into /en/foo/bar
119 119
      *
120 120
      * @param null $localeslug
121
-     * @return string
121
+     * @return UrlParser
122 122
      */
123 123
     public function localize($localeslug = null)
124 124
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     /**
153 153
      * Inject the locale slug in the uri
154 154
      *
155
-     * @param null $locale
155
+     * @param string $locale
156 156
      */
157 157
     private function localizePath($locale = null)
158 158
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
 
164 164
     /**
165
-     * @return array
165
+     * @return null|string
166 166
      */
167 167
     private function delocalizePath()
168 168
     {
Please login to merge, or discard this patch.