Passed
Push — master ( 877e41...23b7ee )
by Michael
03:09 queued 10s
created
www/src/DembeloMain/Model/Repository/Doctrine/ODM/TopicRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 //$value = $value === 'aktiv' ? 1 : 0;
58 58
                 $query->field($field)->equals((int) $value);
59 59
             } else {
60
-                $query->field($field)->equals(new \MongoRegex('/.*'.$value.'.*/i'));
60
+                $query->field($field)->equals(new \MongoRegex('/.*' . $value . '.*/i'));
61 61
             }
62 62
         }
63 63
 
Please login to merge, or discard this patch.
www/src/DembeloMain/Tests/Document/UserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $properties = array('id', 'email', 'licenseeId', 'currentTextnode', 'gender', 'source', 'reason', 'password', 'status', 'activationHash');
55 55
 
56 56
         foreach ($properties as $property) {
57
-            $getter = 'get'.ucfirst($property);
58
-            $setter = 'set'.ucfirst($property);
57
+            $getter = 'get' . ucfirst($property);
58
+            $setter = 'set' . ucfirst($property);
59 59
             $string = @tempnam($property, 'hrz');
60 60
             $this->assertNull($this->user->$getter());
61 61
             $this->user->$setter($string);
Please login to merge, or discard this patch.
www/src/DembeloMain/Tests/Command/InstallCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         // the output of the command in the console
74 74
         $output = $this->commandTester->getDisplay();
75
-        $this->assertEquals('admin user installed'."\n".'Default users installed'."\n", $output);
75
+        $this->assertEquals('admin user installed' . "\n" . 'Default users installed' . "\n", $output);
76 76
         $this->assertEquals(0, $returnValue);
77 77
     }
78 78
 
Please login to merge, or discard this patch.
www/src/DembeloMain/Tests/Model/ReadpathTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 $this->assertEquals($textnodeMockId, $readpathDocument->getTextnodeId());
99 99
                 $this->assertEquals($userMockId, $readpathDocument->getUserId());
100 100
                 $this->assertInstanceOf(\MongoDate::class, $readpathDocument->getTimestamp());
101
-                $this->assertLessThanOrEqual(1, abs($readpathDocument->getTimestamp()->sec-time()));
101
+                $this->assertLessThanOrEqual(1, abs($readpathDocument->getTimestamp()->sec - time()));
102 102
             });
103 103
 
104 104
         $readpath = new Readpath($readpathRepositoryMock, $this->session);
Please login to merge, or discard this patch.
www/src/DembeloMain/Model/FavoriteManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function setFavorite(Textnode $textnode, User $user = null): void
51 51
     {
52 52
         if (null === $user) {
53
-            $this->session->set('favorite_'.$textnode->getTopicId(), $textnode->getArbitraryId());
53
+            $this->session->set('favorite_' . $textnode->getTopicId(), $textnode->getArbitraryId());
54 54
 
55 55
             return;
56 56
         }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function getFavorite(Topic $topic, User $user = null): ?string
67 67
     {
68 68
         if (null === $user) {
69
-            return $this->session->get('favorite_'.$topic->getId());
69
+            return $this->session->get('favorite_' . $topic->getId());
70 70
         }
71 71
 
72 72
         return $user->getFavorite($topic->getId());
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Service/TwineImport/FileExtractorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public function testExtract(): void
46 46
     {
47 47
         $tmpName = tempnam('/tmp', 'unittest');
48
-        $createdFilename = $tmpName.'.extracted';
48
+        $createdFilename = $tmpName . '.extracted';
49 49
         $content = <<< END
50 50
 nonsens
51 51
 lots of stuff
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Service/TwineImport/StoryDataParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
         $textnodeMock = $this->createMock(Textnode::class);
184 184
         $textnodeMock->expects(self::any())
185 185
             ->method('getText')
186
-            ->willReturn('someText'."\n"."someOtherText ");
186
+            ->willReturn('someText' . "\n" . "someOtherText ");
187 187
         $textnodeMock->expects(self::once())
188 188
             ->method('setText')
189 189
             ->willReturnCallback(function (string $textNew) {
Please login to merge, or discard this patch.
www/src/AdminBundle/Controller/UserController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     //$value = $value === 'aktiv' ? 1 : 0;
78 78
                     $query->field($field)->equals((int) $value);
79 79
                 } else {
80
-                    $query->field($field)->equals(new \MongoRegex('/.*'.$value.'.*/i'));
80
+                    $query->field($field)->equals(new \MongoRegex('/.*' . $value . '.*/i'));
81 81
                 }
82 82
             }
83 83
         }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         if (null === $user) {
120 120
             return new Response(\json_encode(['error' => false]));
121 121
         }
122
-        $user->setActivationHash(sha1($user->getEmail().$user->getPassword().\time()));
122
+        $user->setActivationHash(sha1($user->getEmail() . $user->getPassword() . \time()));
123 123
 
124 124
         $this->userRepository->save($user);
125 125
 
Please login to merge, or discard this patch.
www/src/AdminBundle/Controller/LicenseeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $searchString = $filter['value'];
85 85
 
86 86
         /* @var $licensees Licensee[] */
87
-        $licensees = $this->licenseeRepository->findBy(['name' => new \MongoRegex('/'.$searchString.'/')], null, 10);
87
+        $licensees = $this->licenseeRepository->findBy(['name' => new \MongoRegex('/' . $searchString . '/')], null, 10);
88 88
 
89 89
         $output = [];
90 90
         foreach ($licensees as $licensee) {
Please login to merge, or discard this patch.