@@ -58,8 +58,7 @@ discard block |
||
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 |
||
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( |
@@ -112,7 +112,7 @@ |
||
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( |