@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function thoseMoviesShouldBeTheFollowing(TableNode $table) : void |
| 66 | 66 | { |
| 67 | - $expected = array_map(function ($row) : string { |
|
| 67 | + $expected = array_map(function($row) : string { |
|
| 68 | 68 | return $row[0]; |
| 69 | 69 | }, $table->getRows()); |
| 70 | 70 | array_shift($expected); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $author = $this->storage->get('created_user_' . $name); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - for ($i=0; $i<$count; $i++) { |
|
| 65 | + for ($i = 0; $i < $count; $i++) { |
|
| 66 | 66 | $this->createThought($author); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $author = $this->storage->get('logged_user'); |
| 76 | 76 | |
| 77 | - for ($i=0; $i<$count; $i++) { |
|
| 77 | + for ($i = 0; $i < $count; $i++) { |
|
| 78 | 78 | $this->createThought($author); |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | /** @var Genre $genre */ |
| 100 | 100 | $genre = ($genre !== '') ? $genres[$genre] : $genres[array_rand($genres)]; |
| 101 | 101 | |
| 102 | - for ($i=0; $i<$count; $i++) { |
|
| 102 | + for ($i = 0; $i < $count; $i++) { |
|
| 103 | 103 | |
| 104 | 104 | $id = $this->uuidGenerator->generate(); |
| 105 | 105 | $movie = new Movie( |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public static function fromElements(array $elements) : array |
| 41 | 41 | { |
| 42 | - $checker = function ($element) : void { |
|
| 42 | + $checker = function($element) : void { |
|
| 43 | 43 | if (!$element instanceof NodeElement) { |
| 44 | 44 | throw new InvalidArgumentException(); |
| 45 | 45 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | array_walk($elements, $checker); |
| 49 | 49 | |
| 50 | - $extractor = function (NodeElement $element) : string { |
|
| 50 | + $extractor = function(NodeElement $element) : string { |
|
| 51 | 51 | return $element->getText(); |
| 52 | 52 | }; |
| 53 | 53 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | try { |
| 42 | 42 | return $message === $this->alertsParser->getMessage() && $type === $this->alertsParser->getType(); |
| 43 | - } catch(AlertNotFoundException | CouldNotDetermineAlertTypeException $e) { |
|
| 43 | + } catch (AlertNotFoundException | CouldNotDetermineAlertTypeException $e) { |
|
| 44 | 44 | return false; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | private function extractMessages(array $elements) : array |
| 62 | 62 | { |
| 63 | - $extractor = function (NodeElement $element) : string { |
|
| 63 | + $extractor = function(NodeElement $element) : string { |
|
| 64 | 64 | return $element->getText(); |
| 65 | 65 | }; |
| 66 | 66 | |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | public function addResident(User $user) : void |
| 93 | 93 | { |
| 94 | - if (! $this->residents->contains($user)) { |
|
| 94 | + if (!$this->residents->contains($user)) { |
|
| 95 | 95 | $this->residents->add($user); |
| 96 | 96 | $user->setCity($this); |
| 97 | 97 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | $resolver->setDefaults([ |
| 70 | 70 | 'data_class' => StoreCommunityCommand::class, |
| 71 | - 'empty_data' => function (FormInterface $form) use ($uuidGenerator) : StoreCommunityCommand { |
|
| 71 | + 'empty_data' => function(FormInterface $form) use ($uuidGenerator) : StoreCommunityCommand { |
|
| 72 | 72 | return new StoreCommunityCommand( |
| 73 | 73 | $uuidGenerator->generate(), |
| 74 | 74 | $form->get('name')->getData(), |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | public function hasNextPage(PaginatableResultsInterface $list, int $currentPage = 1): bool |
| 35 | 35 | { |
| 36 | - return ($list->getOffset() + $list->getItemsPerPage()) <= ($list->countTotal() - 1); |
|
| 36 | + return ($list->getOffset()+$list->getItemsPerPage()) <= ($list->countTotal()-1); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function hasPreviousPage(PaginatableResultsInterface $list, int $currentPage = 1): bool |