Completed
Pull Request — master (#80)
by
unknown
123:09 queued 58:07
created
Controller/TranslationController.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
             $response['error'] = $e->getMessage();
59 59
         }
60 60
         !isset($response['error']) ?
61
-            $response['success'] = 'Tag successfully added' :
62
-            $response['success'] = false;
61
+            $response['success'] = 'Tag successfully added' : $response['success'] = false;
63 62
         $cache->save('translations_edit', $response);
64 63
         return new RedirectResponse(
65 64
             $this->generateUrl(
@@ -95,8 +94,7 @@  discard block
 block discarded – undo
95 94
             $response['error'] = $e->getMessage();
96 95
         }
97 96
         !isset($response['error']) ?
98
-            $response['success'] = 'Messages updated successfully' :
99
-            $response['success'] = false;
97
+            $response['success'] = 'Messages updated successfully' : $response['success'] = false;
100 98
         $cache->save('translations_edit', $response);
101 99
         return new RedirectResponse(
102 100
             $this->generateUrl(
Please login to merge, or discard this patch.
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.