@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 |      { | 
                                                        
| 21 | 21 | $sortKeyConditionExpression = $this->parseExpression($operator, $keyName);  | 
                                                        
| 22 | 22 | $this->addExpressionAttributeValue($keyName, $value);  | 
                                                        
| 23 | - $this->keyConditionExpression .= ' AND ' . $sortKeyConditionExpression;  | 
                                                        |
| 23 | + $this->keyConditionExpression .= ' AND '.$sortKeyConditionExpression;  | 
                                                        |
| 24 | 24 | return $this;  | 
                                                        
| 25 | 25 | }  | 
                                                        
| 26 | 26 | |
@@ -1,6 +1,6 @@ discard block  | 
                                                    ||
| 1 | 1 | <?php declare(strict_types=1);  | 
                                                        
| 2 | 2 | |
| 3 | -require dirname(__DIR__) . '/vendor/autoload.php';  | 
                                                        |
| 3 | +require dirname(__DIR__).'/vendor/autoload.php';  | 
                                                        |
| 4 | 4 | |
| 5 | 5 | use Guillermoandrae\DynamoDb\Constant\AttributeTypes;  | 
                                                        
| 6 | 6 | use Guillermoandrae\DynamoDb\Constant\KeyTypes;  | 
                                                        
@@ -41,7 +41,7 @@ discard block  | 
                                                    ||
| 41 | 41 | 'title' => 'The Big New Movie'  | 
                                                        
| 42 | 42 | ]);  | 
                                                        
| 43 | 43 | |
| 44 | -    printf('Added item: %s - %s' . PHP_EOL, $item['year'], $item['title']); | 
                                                        |
| 44 | +    printf('Added item: %s - %s'.PHP_EOL, $item['year'], $item['title']); | 
                                                        |
| 45 | 45 | |
| 46 | 46 | print_r($item);  | 
                                                        
| 47 | 47 | |
@@ -49,5 +49,5 @@ discard block  | 
                                                    ||
| 49 | 49 | $adapter->useTable($tableName)->deleteTable();  | 
                                                        
| 50 | 50 | |
| 51 | 51 |  } catch (\Exception $ex) { | 
                                                        
| 52 | - die($ex->getMessage() . PHP_EOL);  | 
                                                        |
| 52 | + die($ex->getMessage().PHP_EOL);  | 
                                                        |
| 53 | 53 | }  | 
                                                        
@@ -1,6 +1,6 @@ discard block  | 
                                                    ||
| 1 | 1 | <?php declare(strict_types=1);  | 
                                                        
| 2 | 2 | |
| 3 | -require dirname(__DIR__) . '/vendor/autoload.php';  | 
                                                        |
| 3 | +require dirname(__DIR__).'/vendor/autoload.php';  | 
                                                        |
| 4 | 4 | |
| 5 | 5 | use Guillermoandrae\DynamoDb\Constant\AttributeTypes;  | 
                                                        
| 6 | 6 | use Guillermoandrae\DynamoDb\Constant\KeyTypes;  | 
                                                        
@@ -32,15 +32,15 @@ discard block  | 
                                                    ||
| 32 | 32 | 'year' => 1984,  | 
                                                        
| 33 | 33 | 'single' => 'Nightshift'  | 
                                                        
| 34 | 34 | ]);  | 
                                                        
| 35 | -        printf("Successfully added '%s' to the '%s' table!" . PHP_EOL, $name, $tableName); | 
                                                        |
| 35 | +        printf("Successfully added '%s' to the '%s' table!".PHP_EOL, $name, $tableName); | 
                                                        |
| 36 | 36 | }  | 
                                                        
| 37 | 37 | |
| 38 | 38 | // get all items  | 
                                                        
| 39 | 39 | $items = $adapter->useTable($tableName)->findAll();  | 
                                                        
| 40 | -    printf("The following items were found in the '%s' table:" . PHP_EOL, $tableName); | 
                                                        |
| 40 | +    printf("The following items were found in the '%s' table:".PHP_EOL, $tableName); | 
                                                        |
| 41 | 41 |      foreach ($items as $item) { | 
                                                        
| 42 | 42 | printf(  | 
                                                        
| 43 | - "\t - '%s', who died in '%s'" . PHP_EOL,  | 
                                                        |
| 43 | + "\t - '%s', who died in '%s'".PHP_EOL,  | 
                                                        |
| 44 | 44 | $item['name'],  | 
                                                        
| 45 | 45 | $item['year'],  | 
                                                        
| 46 | 46 | $tableName  | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | 'year' => 1984  | 
                                                        
| 54 | 54 | ]);  | 
                                                        
| 55 | 55 | printf(  | 
                                                        
| 56 | - "Successfully retrieved '%s' (mentioned in the Commodores' tribute single '%s') from the '%s' table!" . PHP_EOL,  | 
                                                        |
| 56 | + "Successfully retrieved '%s' (mentioned in the Commodores' tribute single '%s') from the '%s' table!".PHP_EOL,  | 
                                                        |
| 57 | 57 | $item['name'],  | 
                                                        
| 58 | 58 | $item['single'],  | 
                                                        
| 59 | 59 | $tableName  | 
                                                        
@@ -62,7 +62,7 @@ discard block  | 
                                                    ||
| 62 | 62 | // delete an item  | 
                                                        
| 63 | 63 |      if ($adapter->useTable($tableName)->delete(['name' => 'Marvin Gaye', 'year' => 1984])) { | 
                                                        
| 64 | 64 | printf(  | 
                                                        
| 65 | - "Successfully deleted '%s' from the '%s' table!" . PHP_EOL,  | 
                                                        |
| 65 | + "Successfully deleted '%s' from the '%s' table!".PHP_EOL,  | 
                                                        |
| 66 | 66 | $item['name'],  | 
                                                        
| 67 | 67 | $tableName  | 
                                                        
| 68 | 68 | );  | 
                                                        
@@ -70,10 +70,10 @@ discard block  | 
                                                    ||
| 70 | 70 | |
| 71 | 71 | // get all items  | 
                                                        
| 72 | 72 | $items = $adapter->useTable($tableName)->findAll();  | 
                                                        
| 73 | -    printf("The following items remain in the '%s' table:" . PHP_EOL, $tableName); | 
                                                        |
| 73 | +    printf("The following items remain in the '%s' table:".PHP_EOL, $tableName); | 
                                                        |
| 74 | 74 |      foreach ($items as $item) { | 
                                                        
| 75 | 75 | printf(  | 
                                                        
| 76 | - "\t - '%s', who died in '%s'" . PHP_EOL,  | 
                                                        |
| 76 | + "\t - '%s', who died in '%s'".PHP_EOL,  | 
                                                        |
| 77 | 77 | $item['name'],  | 
                                                        
| 78 | 78 | $item['year'],  | 
                                                        
| 79 | 79 | $tableName  | 
                                                        
@@ -84,5 +84,5 @@ discard block  | 
                                                    ||
| 84 | 84 | $adapter->useTable($tableName)->deleteTable();  | 
                                                        
| 85 | 85 | |
| 86 | 86 |  } catch (\Exception $ex) { | 
                                                        
| 87 | - die($ex->getMessage() . PHP_EOL);  | 
                                                        |
| 87 | + die($ex->getMessage().PHP_EOL);  | 
                                                        |
| 88 | 88 | }  | 
                                                        
@@ -1,6 +1,6 @@ discard block  | 
                                                    ||
| 1 | 1 | <?php declare(strict_types=1);  | 
                                                        
| 2 | 2 | |
| 3 | -require dirname(__DIR__) . '/vendor/autoload.php';  | 
                                                        |
| 3 | +require dirname(__DIR__).'/vendor/autoload.php';  | 
                                                        |
| 4 | 4 | |
| 5 | 5 | use Guillermoandrae\DynamoDb\Constant\AttributeTypes;  | 
                                                        
| 6 | 6 | use Guillermoandrae\DynamoDb\Constant\KeyTypes;  | 
                                                        
@@ -30,25 +30,25 @@ discard block  | 
                                                    ||
| 30 | 30 | }  | 
                                                        
| 31 | 31 | |
| 32 | 32 |      if ($adapter->useTable($tableName)->createTable($keys)) { | 
                                                        
| 33 | -        printf("The '%s' table was successfully created!" . PHP_EOL, $tableName); | 
                                                        |
| 33 | +        printf("The '%s' table was successfully created!".PHP_EOL, $tableName); | 
                                                        |
| 34 | 34 | }  | 
                                                        
| 35 | 35 | |
| 36 | 36 | // list the created tables  | 
                                                        
| 37 | 37 | $tables = $adapter->listTables();  | 
                                                        
| 38 | 38 |      foreach ($tables as $table) { | 
                                                        
| 39 | -        printf("The '%s' table exists!" . PHP_EOL, $table); | 
                                                        |
| 39 | +        printf("The '%s' table exists!".PHP_EOL, $table); | 
                                                        |
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
| 42 | 42 | // delete a table  | 
                                                        
| 43 | 43 |      if ($adapter->useTable($tableName)->deleteTable()) { | 
                                                        
| 44 | -        printf("The '%s' table was successfully deleted!" . PHP_EOL, $tableName); | 
                                                        |
| 44 | +        printf("The '%s' table was successfully deleted!".PHP_EOL, $tableName); | 
                                                        |
| 45 | 45 | }  | 
                                                        
| 46 | 46 | |
| 47 | 47 | // check for the existence of a table  | 
                                                        
| 48 | 48 |      if (!$adapter->useTable($tableName)->tableExists()) { | 
                                                        
| 49 | -        printf("The '%s' table no longer exists!" . PHP_EOL, $tableName); | 
                                                        |
| 49 | +        printf("The '%s' table no longer exists!".PHP_EOL, $tableName); | 
                                                        |
| 50 | 50 | }  | 
                                                        
| 51 | 51 | |
| 52 | 52 |  } catch (\Exception $ex) { | 
                                                        
| 53 | - die($ex->getMessage() . PHP_EOL);  | 
                                                        |
| 53 | + die($ex->getMessage().PHP_EOL);  | 
                                                        |
| 54 | 54 | }  | 
                                                        
@@ -57,7 +57,7 @@  | 
                                                    ||
| 57 | 57 |      { | 
                                                        
| 58 | 58 | $operation = parent::toArray();  | 
                                                        
| 59 | 59 |          if (!empty($this->expression)) { | 
                                                        
| 60 | - $operation[$this->expressionFieldName] = 'SET ' . $operation['UpdateExpression'];  | 
                                                        |
| 60 | + $operation[$this->expressionFieldName] = 'SET '.$operation['UpdateExpression'];  | 
                                                        |
| 61 | 61 | }  | 
                                                        
| 62 | 62 | return $operation;  | 
                                                        
| 63 | 63 | }  |