Completed
Push — master ( 52266c...f35ac8 )
by Guillermo A.
02:28
created
examples/tables.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require dirname(__DIR__) . '/vendor/autoload.php';
3
+require dirname(__DIR__).'/vendor/autoload.php';
4 4
 
5 5
 use Aws\DynamoDb\Marshaler;
6 6
 use Guillermoandrae\Db\DynamoDb\AttributeTypes;
@@ -33,24 +33,24 @@  discard block
 block discarded – undo
33 33
     ];
34 34
 
35 35
     if ($adapter->useTable($tableName)->createTable($keys)) {
36
-        printf("The '%s' table was successfully created!" . PHP_EOL, $tableName);
36
+        printf("The '%s' table was successfully created!".PHP_EOL, $tableName);
37 37
     }
38 38
 
39 39
     // list the created tables
40 40
     $tables = $adapter->listTables();
41 41
     foreach ($tables as $table) {
42
-        printf("The '%s' table exists!" . PHP_EOL, $table);
42
+        printf("The '%s' table exists!".PHP_EOL, $table);
43 43
     }
44 44
 
45 45
     // delete a table
46 46
     if ($adapter->useTable($tableName)->deleteTable()) {
47
-        printf("The '%s' table was successfully deleted!" . PHP_EOL, $tableName);
47
+        printf("The '%s' table was successfully deleted!".PHP_EOL, $tableName);
48 48
     }
49 49
 
50 50
     // check for the existence of a table
51 51
     if (!$adapter->useTable($tableName)->tableExists()) {
52
-        printf("The '%s' table no longer exists!" . PHP_EOL, $tableName);
52
+        printf("The '%s' table no longer exists!".PHP_EOL, $tableName);
53 53
     }
54
-} catch(\Exception $ex) {
54
+} catch (\Exception $ex) {
55 55
     die($ex->getMessage());
56 56
 }
Please login to merge, or discard this patch.