Completed
Push — master ( b23027...5a2f77 )
by Sherif
07:56
created
src/Modules/V1/Notifications/Database/Factories/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\V1\Notifications\Notification::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\V1\Notifications\Notification::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
 		'key'         => $faker->randomElement(['low_stock', 'order_added', 'new_request']),
6 6
 		'item_name '  => $faker->randomElement(['User', 'Settings', 'Group']),
Please login to merge, or discard this patch.
src/Modules/V1/Core/Decorators/CachingDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         if ($this->cacheConfig && $this->cacheConfig == 'cache') 
65 65
         {
66 66
             $page     = \Request::get('page') !== null ? \Request::get('page') : '1';
67
-            $cacheKey = $name . $page . \Session::get('locale') . serialize($arguments);
67
+            $cacheKey = $name.$page.\Session::get('locale').serialize($arguments);
68 68
             return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) {
69 69
                 return call_user_func_array([$this->repo, $name], $arguments);
70 70
             });
Please login to merge, or discard this patch.
src/Modules/V1/Core/Database/Factories/SettingFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\V1\Core\Settings::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\V1\Core\Settings::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
 		'name'       => $faker->randomElement(['Company Name', 'Title', 'Header Image']),
6 6
 		'value'      => $faker->word(),
Please login to merge, or discard this patch.
src/Modules/V1/Core/Database/Factories/LogFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\V1\Core\Log::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\V1\Core\Log::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
 		'action'     => $faker->randomElement(['create', 'delete', 'update']),
6 6
 		'item_name ' => $faker->randomElement(['User', 'Settings', 'Group']),
Please login to merge, or discard this patch.
src/Modules/V1/Core/Http/Controllers/BaseApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->skipPermissionCheck = property_exists($this, 'skipPermissionCheck') ? $this->skipPermissionCheck : [];
36 36
         $this->skipLoginCheck      = property_exists($this, 'skipLoginCheck') ? $this->skipLoginCheck : [];
37 37
         $this->repo                = call_user_func_array("\Core::{$this->model}", []);
38
-        $route                     = explode('@',\Route::currentRouteAction())[1];
38
+        $route                     = explode('@', \Route::currentRouteAction())[1];
39 39
 
40 40
         $this->checkPermission($route);
41 41
         $this->setRelations($route);
Please login to merge, or discard this patch.
V1/Notifications/Http/Controllers/PushNotificationsDevicesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      * to preform actions like (add, edit ... etc).
13 13
      * @var string
14 14
      */
15
-    protected $model            = 'pushNotificationDevices';
15
+    protected $model = 'pushNotificationDevices';
16 16
 
17 17
     /**
18 18
      * List of all route actions that the base api controller
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * to check before add.
27 27
      * @var array
28 28
      */
29
-    protected $validationRules  = [
29
+    protected $validationRules = [
30 30
     'device_token' => 'required|string|max:255',
31 31
     'user_id'      => 'required|exists:users,id',
32 32
     'active'       => 'boolean'
Please login to merge, or discard this patch.
Modules/V1/Notifications/Repositories/PushNotificationDeviceRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $notificationBuilder = new PayloadNotificationBuilder($title);
56 56
             $dataBuilder         = new PayloadDataBuilder();
57 57
 
58
-            $optionBuilder->setTimeToLive(60*20);
58
+            $optionBuilder->setTimeToLive(60 * 20);
59 59
             $notificationBuilder->setBody($message);
60 60
             $dataBuilder->addData($data);
61 61
 
Please login to merge, or discard this patch.
V1/Notifications/Database/Factories/PushNotificationDeviceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\V1\Notifications\PushNotificationDevice::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\V1\Notifications\PushNotificationDevice::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
 		'device_token' => $faker->sha1(),
6 6
 		'user_id'      => $faker->randomDigitNotNull(),
Please login to merge, or discard this patch.
Database/Migrations/2016_01_24_111942_push_notifications_devices.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('push_notifications_devices', function (Blueprint $table) {
15
+		Schema::create('push_notifications_devices', function(Blueprint $table) {
16 16
 			$table->increments('id');
17 17
 			$table->string('device_token');
18 18
 			$table->integer('user_id');
Please login to merge, or discard this patch.