Completed
Pull Request — master (#212)
by Alexandru
45:00 queued 03:00
created
src/DynamoDbModel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             return false;
130 130
         }
131 131
 
132
-        if ($create && $this->fireModelEvent('creating')  === false) {
132
+        if ($create && $this->fireModelEvent('creating') === false) {
133 133
             return false;
134 134
         }
135 135
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             return false;
170 170
         }
171 171
 
172
-        if ($create && $this->fireModelEvent('creating')  === false) {
172
+        if ($create && $this->fireModelEvent('creating') === false) {
173 173
             return false;
174 174
         }
175 175
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
         $savePromise = $this->newQuery()->saveAsync();
185 185
 
186
-        $savePromise->then(function ($result) use ($create, $options) {
186
+        $savePromise->then(function($result) use ($create, $options) {
187 187
             if (Arr::get($result, '@metadata.statusCode') === 200) {
188 188
                 $this->exists = true;
189 189
                 $this->wasRecentlyCreated = $create;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
             $deletePromise = $this->newQuery()->deleteAsync();
255 255
 
256
-            $deletePromise->then(function () {
256
+            $deletePromise->then(function() {
257 257
                 $this->fireModelEvent('deleted', false);
258 258
             });
259 259
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
     public function refresh()
272 272
     {
273
-        if (! $this->exists) {
273
+        if (!$this->exists) {
274 274
             return $this;
275 275
         }
276 276
 
Please login to merge, or discard this patch.
config/dynamodb.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
                 'token' => env('AWS_SESSION_TOKEN'),
34 34
             ],
35 35
             'region' => env('DYNAMODB_REGION'),
36
-             // if true, it will use Laravel Log.
37
-             // For advanced options, see http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
36
+                // if true, it will use Laravel Log.
37
+                // For advanced options, see http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
38 38
             'debug' => env('DYNAMODB_DEBUG'),
39 39
         ],
40 40
         'aws_iam_role' => [
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 'secret' => 'secret',
48 48
             ],
49 49
             'region' => 'stub',
50
-             // see http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html
50
+                // see http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html
51 51
             'endpoint' => env('local_ENDPOINT'),
52 52
             'debug' => true,
53 53
         ],
Please login to merge, or discard this patch.
src/DynamoDbServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         );
21 21
 
22 22
         $this->publishes([
23
-            __DIR__.'/../config/dynamodb.php' => app()->basePath('config/dynamodb.php'),
23
+            __DIR__ . '/../config/dynamodb.php' => app()->basePath('config/dynamodb.php'),
24 24
         ]);
25 25
     }
26 26
 
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
             'nullify_invalid' => true,
34 34
         ];
35 35
 
36
-        $this->app->singleton(DynamoDbClientInterface::class, function () use ($marshalerOptions) {
36
+        $this->app->singleton(DynamoDbClientInterface::class, function() use ($marshalerOptions) {
37 37
             $client = new DynamoDbClientService(new Marshaler($marshalerOptions), new EmptyAttributeFilter());
38 38
 
39 39
             return $client;
40 40
         });
41 41
 
42
-        $this->app->singleton('dynamodb', function () {
42
+        $this->app->singleton('dynamodb', function() {
43 43
             return new DynamoDbManager(app(DynamoDbClientInterface::class));
44 44
         });
45 45
     }
Please login to merge, or discard this patch.