@@ -38,7 +38,7 @@ |
||
38 | 38 | return $values; |
39 | 39 | } |
40 | 40 | |
41 | - if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) { |
|
41 | + if ( ! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) { |
|
42 | 42 | return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : ''; |
43 | 43 | } |
44 | 44 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function saveMany(array $data) |
24 | 24 | { |
25 | - \DB::transaction(function () use ($data) { |
|
25 | + \DB::transaction(function() use ($data) { |
|
26 | 26 | foreach ($data as $value) { |
27 | 27 | $this->save($value); |
28 | 28 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | return \Response::json([$exception->getMessage()], $exception->getStatusCode()); |
63 | 63 | } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
64 | 64 | return \Response::json($exception->errors(), 422); |
65 | - } elseif (! $exception instanceof \Symfony\Component\Debug\Exception\FatalErrorException) { |
|
65 | + } elseif ( ! $exception instanceof \Symfony\Component\Debug\Exception\FatalErrorException) { |
|
66 | 66 | return parent::render($request, $exception); |
67 | 67 | } |
68 | 68 | } |