Completed
Pull Request — master (#80)
by
unknown
64:19
created
Controller/ListController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace ONGR\TranslationsBundle\Controller;
13 13
 
14
-use ONGR\ElasticsearchBundle\Result\Result;
15 14
 use ONGR\ElasticsearchBundle\Service\Repository;
16 15
 use ONGR\FilterManagerBundle\Filter\ViewData;
17 16
 use ONGR\FilterManagerBundle\Search\SearchResponse;
Please login to merge, or discard this patch.
Document/Translation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     public function getId()
118 118
     {
119 119
         if (!$this->id) {
120
-            $this->setId(sha1($this->getDomain() . $this->getKey()));
120
+            $this->setId(sha1($this->getDomain().$this->getKey()));
121 121
         }
122 122
 
123 123
         return $this->id;
Please login to merge, or discard this patch.
Translation/TranslationManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@
 block discarded – undo
115 115
 
116 116
         if (array_key_exists('properties', $content)) {
117 117
             foreach ($content['properties'] as $property) {
118
-                $search->setSource($content['name'] . '.' . $property);
118
+                $search->setSource($content['name'].'.'.$property);
119 119
             }
120 120
         }
121 121
 
122 122
         if (array_key_exists('findBy', $content)) {
123 123
             foreach ($content['findBy'] as $field => $value) {
124 124
                 $search->addQuery(
125
-                    new TermsQuery($content['name'] . '.' . $field, is_array($value) ? $value : [$value]),
125
+                    new TermsQuery($content['name'].'.'.$field, is_array($value) ? $value : [$value]),
126 126
                     'must'
127 127
                 );
128 128
             }
Please login to merge, or discard this patch.
DependencyInjection/ONGRTranslationsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $configuration = new Configuration();
33 33
         $config = $this->processConfiguration($configuration, $configs);
34 34
 
35
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
35
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
36 36
         $loader->load('services.yml');
37 37
         $loader->load('filters_container.yml');
38 38
 
Please login to merge, or discard this patch.
Controller/TranslationController.php 1 patch
Spacing   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
             $response['error'] = $e->getMessage();
62 62
         }
63 63
         !isset($response['error']) ?
64
-            $response['success'] = 'Tag successfully added' :
65
-            $response['success'] = false;
64
+            $response['success'] = 'Tag successfully added' : $response['success'] = false;
66 65
         $cache->save('translations_edit', $response);
67 66
         return new RedirectResponse(
68 67
             $this->generateUrl(
@@ -102,8 +101,7 @@  discard block
 block discarded – undo
102 101
             $response['error'] = $e->getMessage();
103 102
         }
104 103
         !isset($response['error']) ?
105
-            $response['success'] = 'Messages updated successfully' :
106
-            $response['success'] = false;
104
+            $response['success'] = 'Messages updated successfully' : $response['success'] = false;
107 105
         $cache->save('translations_edit', $response);
108 106
         return new RedirectResponse(
109 107
             $this->generateUrl(
@@ -125,7 +123,7 @@  discard block
 block discarded – undo
125 123
         $cache = $this->get('es.cache_engine');
126 124
         $cwd = getcwd();
127 125
         if (substr($cwd, -3) === 'web') {
128
-            chdir($cwd . DIRECTORY_SEPARATOR . '..');
126
+            chdir($cwd.DIRECTORY_SEPARATOR.'..');
129 127
         }
130 128
         try {
131 129
             $this->get('ongr_translations.command.export')
@@ -134,8 +132,7 @@  discard block
 block discarded – undo
134 132
             $response['error'] = $e->getMessage();
135 133
         }
136 134
         !isset($response['error']) ?
137
-            $response['success'] = 'Messages exported successfully' :
138
-            $response['success'] = false;
135
+            $response['success'] = 'Messages exported successfully' : $response['success'] = false;
139 136
         $cache->save('translations_edit', $response);
140 137
         return new RedirectResponse(
141 138
             $this->generateUrl('ongr_translations_export_page')
Please login to merge, or discard this patch.