Completed
Pull Request — master (#80)
by
unknown
64:19
created
Controller/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     {
113 113
         $cwd = getcwd();
114 114
         if (substr($cwd, -3) === 'web') {
115
-            chdir($cwd . DIRECTORY_SEPARATOR . '..');
115
+            chdir($cwd.DIRECTORY_SEPARATOR.'..');
116 116
         }
117 117
 
118 118
         return new JsonResponse(
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.