Completed
Push — master ( 5118b9...50529d )
by Aitor Riba
01:45
created
src/Builder.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,6 @@
 block discarded – undo
120 120
     /**
121 121
      * Return secure_url method or url method depending on config https
122 122
      *
123
-     * @param string $url
124 123
      *
125 124
      * @return string
126 125
      */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public static function trans($string)
21 21
     {
22 22
         $translator = config('laralang.default.translator');
23
-        if (!in_array(config('laralang.default.translator'), ['apertium', 'mymemory', 'google'])) {
23
+        if (!in_array(config('laralang.default.translator'), [ 'apertium', 'mymemory', 'google' ])) {
24 24
             return "<font style='color:red;'>Laralang doesn't support $translator translator. Check config</font>";
25 25
         } else {
26 26
             if (config('laralang.default.translator') == 'mymemory') {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function toLanguages()
42 42
     {
43
-        $locales = [];
43
+        $locales = [ ];
44 44
         $translations = DB_Translation::distinct()->select('to_lang')->get();
45 45
         foreach ($translations as $object) {
46 46
             array_push($locales, $object->to_lang);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public static function fromLanguages()
58 58
     {
59
-        $locales = [];
59
+        $locales = [ ];
60 60
         $translations = DB_Translation::distinct()->select('from_lang')->get();
61 61
         foreach ($translations as $object) {
62 62
             array_push($locales, $object->from_lang);
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
     {
129 129
         if (config('laralang.default.https')) {
130 130
             if (isset($routeArgs)) {
131
-                return secure_url(URL::route($routeName,$routeArgs,false));
131
+                return secure_url(URL::route($routeName, $routeArgs, false));
132 132
             }
133
-            return secure_url(URL::route($routeName,[],false));
133
+            return secure_url(URL::route($routeName, [ ], false));
134 134
         }
135 135
         if (isset($routeArgs)) {
136 136
             return route($routeName, $routeArgs);
Please login to merge, or discard this patch.
src/Views/translations.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 
251 251
 	$('#edit').click(function() {
252 252
 		var trans_id = $('.trans-id').val();
253
-		<?php $url_route =  Laralang::checkRoute('laralang::editTrans');
253
+		<?php $url_route = Laralang::checkRoute('laralang::editTrans');
254 254
 		?>
255 255
 		$.ajax({
256 256
 			type: "POST",
Please login to merge, or discard this patch.