Passed
Pull Request — master (#12)
by Dejan
03:14
created
src/AppBundle/FeatureContexts/BrowsingMoviesContext.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
      */
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);
Please login to merge, or discard this patch.
src/AppBundle/FeatureContexts/Setup/ThoughtsContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/AppBundle/FeatureContexts/Setup/MoviesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Donut/Behat/Service/ElementsTextExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Donut/Behat/Service/AlertsChecker/AlertsChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Donut/Behat/Service/ValidationErrorsChecker/ValidationErrorsParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Donut/Places/City.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Donut/Communities/Form/CommunityType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
Core/ResultLists/Pagination/PageExistenceChecker/PageExistenceChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.