@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function uploadImageBas64($image, $dir) |
26 | 26 | { |
27 | - if (! strlen($image)) { |
|
27 | + if ( ! strlen($image)) { |
|
28 | 28 | return null; |
29 | 29 | } |
30 | 30 |
@@ -214,7 +214,7 @@ |
||
214 | 214 | $server = []; |
215 | 215 | |
216 | 216 | foreach ($headers as $headerType => $headerValue) { |
217 | - $headerType = 'HTTP_' . $headerType; |
|
217 | + $headerType = 'HTTP_'.$headerType; |
|
218 | 218 | |
219 | 219 | $server[$headerType] = $headerValue; |
220 | 220 | } |
@@ -11,9 +11,9 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'core'], function () { |
|
14 | +Route::group(['prefix' => 'core'], function() { |
|
15 | 15 | |
16 | - Route::group(['prefix' => 'settings'], function () { |
|
16 | + Route::group(['prefix' => 'settings'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('list/{sortBy?}/{desc?}', 'SettingsController@index'); |
19 | 19 | Route::get('find/{id}', 'SettingsController@find'); |
@@ -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 | } |
@@ -28,27 +28,27 @@ |
||
28 | 28 | public function register() |
29 | 29 | { |
30 | 30 | //Bind Core Facade to the IoC Container |
31 | - \App::bind('Core', function () { |
|
31 | + \App::bind('Core', function() { |
|
32 | 32 | return new \App\Modules\Core\Core; |
33 | 33 | }); |
34 | 34 | |
35 | 35 | //Bind ErrorHandler Facade to the IoC Container |
36 | - \App::bind('ErrorHandler', function () { |
|
36 | + \App::bind('ErrorHandler', function() { |
|
37 | 37 | return new \App\Modules\Core\Utl\ErrorHandler; |
38 | 38 | }); |
39 | 39 | |
40 | 40 | //Bind CoreConfig Facade to the IoC Container |
41 | - \App::bind('CoreConfig', function () { |
|
41 | + \App::bind('CoreConfig', function() { |
|
42 | 42 | return new \App\Modules\Core\Utl\CoreConfig; |
43 | 43 | }); |
44 | 44 | |
45 | 45 | //Bind Mpgs Facade to the IoC Container |
46 | - \App::bind('Media', function () { |
|
46 | + \App::bind('Media', function() { |
|
47 | 47 | return new \App\Modules\Core\Utl\Media; |
48 | 48 | }); |
49 | 49 | |
50 | 50 | //Bind Mpgs Facade to the IoC Container |
51 | - \App::bind('ApiConsumer', function () { |
|
51 | + \App::bind('ApiConsumer', function() { |
|
52 | 52 | $app = app(); |
53 | 53 | return new \App\Modules\Core\Utl\ApiConsumer($app, $app['request'], $app['router']); |
54 | 54 | }); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | return \Response::json(['errors' => [$errors]], $exception->getStatusCode()); |
64 | 64 | } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
65 | 65 | return \Response::json(['errors' => $exception->errors()], 422); |
66 | - } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
66 | + } elseif ( ! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
67 | 67 | return parent::render($request, $exception); |
68 | 68 | } |
69 | 69 | } |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'notifications'], function () { |
|
14 | +Route::group(['prefix' => 'notifications'], function() { |
|
15 | 15 | |
16 | - Route::group(['prefix' => 'notifications'], function () { |
|
16 | + Route::group(['prefix' => 'notifications'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('list/{perPage?}', 'NotificationsController@list'); |
19 | 19 | Route::get('unread/{perPage?}', 'NotificationsController@unread'); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | Route::get('markAllAsRead', 'NotificationsController@markAllAsRead'); |
22 | 22 | }); |
23 | 23 | |
24 | - Route::group(['prefix' => 'push_notification_devices'], function () { |
|
24 | + Route::group(['prefix' => 'push_notification_devices'], function() { |
|
25 | 25 | |
26 | 26 | Route::get('list/{sortBy?}/{desc?}', 'PushNotificationDevicesController@index'); |
27 | 27 | Route::get('find/{id}', 'PushNotificationDevicesController@find'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('push_notification_devices', function (Blueprint $table) { |
|
15 | + Schema::create('push_notification_devices', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->string('device_token'); |
18 | 18 | $table->integer('user_id'); |