Completed
Push — master ( d59a3b...064224 )
by Ricardo
13:04
created
src/Commands/FileLoaderCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
         // Load all files inside subdirectories:
107 107
         $directories = $this->files->directories($path);
108 108
         foreach ($directories as $directory) {
109
-            $directoryName = str_replace($path . '/', '', $directory);
110
-            $dirGroup      = $group . basename($directory) . '/';
109
+            $directoryName = str_replace($path.'/', '', $directory);
110
+            $dirGroup      = $group.basename($directory).'/';
111 111
             $this->loadDirectory($directory, $locale, $namespace, $dirGroup);
112 112
         }
113 113
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function loadFile($file, $locale, $namespace = '*', $group = '')
131 131
     {
132
-        $group        = $group . basename($file, '.php');
132
+        $group        = $group.basename($file, '.php');
133 133
         $translations = $this->files->getRequire($file);
134 134
         $this->translationRepository->loadArray($translations, $locale, $group, $namespace, $locale == $this->defaultLocale);
135 135
     }
Please login to merge, or discard this patch.
src/Repositories/TranslationRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             ->get()
242 242
             ->keyBy('item')
243 243
             ->map(
244
-                function ($translation) {
244
+                function($translation) {
245 245
                     return $translation['text'];
246 246
                 }
247 247
             )
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         foreach ($elements as $element) {
288 288
             if ($element) {
289 289
                 $query = $query->where(
290
-                    function ($query) use ($element) {
290
+                    function($query) use ($element) {
291 291
                         $query->where('group', 'like', "%{$element}%")->orWhere('item', 'like', "%{$element}%")->orWhere('text', 'like', "%{$element}%");
292 292
                     }
293 293
                 );
@@ -368,10 +368,10 @@  discard block
 block discarded – undo
368 368
 
369 369
         return $this->model
370 370
             ->newQuery()
371
-            ->select($table . '.text')
371
+            ->select($table.'.text')
372 372
             ->from($table)
373 373
             ->leftJoin(
374
-                "{$table} as e", function ($join) use ($table, $text, $textLocale) {
374
+                "{$table} as e", function($join) use ($table, $text, $textLocale) {
375 375
                     $join->on('e.namespace', '=', "{$table}.namespace")
376 376
                         ->on('e.group', '=', "{$table}.group")
377 377
                         ->on('e.item', '=', "{$table}.item");
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
         return $this->database->table("$table as $table")
477 477
             ->select("$table.id")
478 478
             ->leftJoin(
479
-                "$table as e", function (JoinClause $query) use ($table, $locale) {
479
+                "$table as e", function(JoinClause $query) use ($table, $locale) {
480 480
                     $query->on('e.namespace', '=', "$table.namespace")
481 481
                         ->on('e.group', '=', "$table.group")
482 482
                         ->on('e.item', '=', "$table.item")
Please login to merge, or discard this patch.
src/Routes/ResourceRegistrar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         // Remove segments from group prefix that are equal to one of the available locales:
43 43
         $groupSegments = explode('/', $this->router->getLastGroupPrefix());
44 44
         $groupSegments = array_filter(
45
-            $groupSegments, function ($segment) use ($availableLocales) {
45
+            $groupSegments, function($segment) use ($availableLocales) {
46 46
                 return !in_array($segment, $availableLocales);
47 47
             }
48 48
         );
Please login to merge, or discard this patch.
src/Tokens/GoogleTokenGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     private function unsignedRightShift($a, $b)
113 113
     {
114 114
         if ($b >= 32 || $b < -32) {
115
-            $m = (int)($b / 32);
115
+            $m = (int) ($b / 32);
116 116
             $b = $b - ($m * 32);
117 117
         }
118 118
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     private function JS_charCodeAt($str, $index)
148 148
     {
149 149
         $utf16 = mb_convert_encoding($str, 'UTF-16LE', 'UTF-8');
150
-        return ord($utf16[$index*2]) + (ord($utf16[$index*2+1]) << 8);
150
+        return ord($utf16[$index * 2]) + (ord($utf16[$index * 2 + 1]) << 8);
151 151
     }
152 152
 
153 153
     /**
@@ -160,6 +160,6 @@  discard block
 block discarded – undo
160 160
     private function JS_length($str)
161 161
     {
162 162
         $utf16 = mb_convert_encoding($str, 'UTF-16LE', 'UTF-8');
163
-        return strlen($utf16)/2;
163
+        return strlen($utf16) / 2;
164 164
     }
165 165
 }
Please login to merge, or discard this patch.
resources/lang/al/form.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     'field_password_keep'          => 'Lëreni bosh për të mbajtur të njëjtën',
5 5
     'field_select_dd_relationship' => 'Sigurohuni që të konfiguroni marrëdhënien e '
6 6
     .'duhur në metodën e metodës së klasa e klasës.',
7
-                                      'the :class class.',
7
+                                        'the :class class.',
8 8
     'type_checkbox'       => 'Kutia e Kontrollit',
9 9
     'type_codeeditor'     => 'Editor Kodi',
10 10
     'type_file'           => 'Skedar',
Please login to merge, or discard this patch.
resources/lang/id/form.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 return [
4 4
     'field_password_keep'          => 'Kosongkan untuk menggunakan data yang sama',
5 5
     'field_select_dd_relationship' => 'Pastikan untuk mengatur relationship yang benar pada memthod :method dari '.
6
-                                      'class :class .',
6
+                                        'class :class .',
7 7
     'type_checkbox'       => 'Check Box',
8 8
     'type_codeeditor'     => 'Code Editor',
9 9
     'type_file'           => 'File',
Please login to merge, or discard this patch.
resources/lang/id/analytics.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
     'by_sessions'  => 'By sessions',
6 6
     'by_users'     => 'By users',
7 7
     'no_client_id' => 'Untuk melihat analytics kamu membutuhkan google analytics client id dan '.
8
-                                 'menambahkannya ke pengaturan dengan menggunakan key <code>google_analytics_client_id'.
9
-                                 '</code>. Dapatkan key dari Google developer console:',
8
+                                    'menambahkannya ke pengaturan dengan menggunakan key <code>google_analytics_client_id'.
9
+                                    '</code>. Dapatkan key dari Google developer console:',
10 10
     'set_view'               => 'Pilih View',
11 11
     'this_vs_last_week'      => 'Minggu ini vs Minggu lalu',
12 12
     'this_vs_last_year'      => 'Tahun ini vs Tahun lalu',
Please login to merge, or discard this patch.
resources/lang/cs/form.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 return [
4 4
     'field_password_keep'          => 'Zanechte prázdné pro zachování aktuálního hesla',
5 5
     'field_select_dd_relationship' => 'Ujistěte se, že je nastavený správný vztah pro :method metodu '.
6
-                                      'třídy :class',
6
+                                        'třídy :class',
7 7
     'type_checkbox'       => 'Check Box',
8 8
     'type_codeeditor'     => 'Code Editor',
9 9
     'type_file'           => 'File',
Please login to merge, or discard this patch.
resources/lang/cs/analytics.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
     'by_sessions'  => 'Podle sezení',
6 6
     'by_users'     => 'Podle uživatelů',
7 7
     'no_client_id' => 'Pro zobrazení analytických dat musíte znát klientské ID z Google Analytics '.
8
-                                 'a přidat ho pro konfiguraci pro klíč <code>google_analytics_client_id'.
9
-                                 '</code>. Obdržte svůj klíč z Google developer konzole:',
8
+                                    'a přidat ho pro konfiguraci pro klíč <code>google_analytics_client_id'.
9
+                                    '</code>. Obdržte svůj klíč z Google developer konzole:',
10 10
     'set_view'               => 'Vyberte zobrazení',
11 11
     'this_vs_last_week'      => 'tento týden vs minulý týden',
12 12
     'this_vs_last_year'      => 'tento rok vs minulý rok',
Please login to merge, or discard this patch.