| @@ -57,7 +57,7 @@ | ||
| 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 | |
| @@ -54,8 +54,8 @@ | ||
| 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); | 
| @@ -72,7 +72,7 @@ | ||
| 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 | |
| @@ -156,7 +156,7 @@ | ||
| 156 | 156 | */ | 
| 157 | 157 | private function createArbitraryId(Textnode $object): string | 
| 158 | 158 |      { | 
| 159 | - $id = substr(md5(time().$object->getTwineId().substr($object->getText(), 0, 100)), 0, 15); | |
| 159 | + $id = substr(md5(time() . $object->getTwineId() . substr($object->getText(), 0, 100)), 0, 15); | |
| 160 | 160 |          $exists = count($this->findBy(array('arbitraryId' => $id))) > 0; | 
| 161 | 161 | |
| 162 | 162 |          if ($exists) { | 
| @@ -98,7 +98,7 @@ | ||
| 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); | 
| @@ -50,7 +50,7 @@ discard block | ||
| 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 | ||
| 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()); | 
| @@ -151,7 +151,7 @@ | ||
| 151 | 151 | /** | 
| 152 | 152 | * @param integer $imported | 
| 153 | 153 | */ | 
| 154 | - public function setImported(?int $imported): void | |
| 154 | + public function setImported(?int $imported) : void | |
| 155 | 155 |      { | 
| 156 | 156 | $this->imported = $imported; | 
| 157 | 157 | } | 
| @@ -45,7 +45,7 @@ | ||
| 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 | 
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 |      { | 
| 51 | 51 |          $tmpName = @tempnam('/tmp/phpunit', 'filecheck'); | 
| 52 | 52 | $fileHandler = fopen($tmpName, 'r+'); | 
| 53 | - fwrite($fileHandler, ' '."\n".'<tw-storydata hurz'); | |
| 53 | + fwrite($fileHandler, ' ' . "\n" . '<tw-storydata hurz'); | |
| 54 | 54 | fseek($fileHandler, 0); | 
| 55 | 55 | |
| 56 | 56 | $fileCheck = new FileCheck(); |