@@ -382,7 +382,10 @@ discard block |
||
| 382 | 382 | <?php if ($hasMinorProblems): ?> |
| 383 | 383 | <h2>Recommendations</h2> |
| 384 | 384 | <p> |
| 385 | - <?php if ($hasMajorProblems): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience, |
|
| 385 | + <?php if ($hasMajorProblems): ?>Additionally, to<?php else { |
|
| 386 | + : ?>To<?php endif; |
|
| 387 | +} |
|
| 388 | +?> enhance your Symfony experience, |
|
| 386 | 389 | it’s recommended that you fix the following: |
| 387 | 390 | </p> |
| 388 | 391 | <ol> |
@@ -398,9 +401,12 @@ discard block |
||
| 398 | 401 | <p id="phpini">* |
| 399 | 402 | <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?> |
| 400 | 403 | Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>". |
| 401 | - <?php else: ?> |
|
| 404 | + <?php else { |
|
| 405 | + : ?> |
|
| 402 | 406 | To change settings, create a "<strong>php.ini</strong>". |
| 403 | - <?php endif; ?> |
|
| 407 | + <?php endif; |
|
| 408 | +} |
|
| 409 | +?> |
|
| 404 | 410 | </p> |
| 405 | 411 | <?php endif; ?> |
| 406 | 412 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $this->mockObjects['importTwine']->expects($this->once()) |
| 81 | 81 | ->method('run') |
| 82 | - ->will($this->returnCallback(function ($importfile) { |
|
| 82 | + ->will($this->returnCallback(function($importfile) { |
|
| 83 | 83 | return $importfile->getFilename() === 'somefile_readable_exists.html' |
| 84 | 84 | && $importfile->getLicenseeId() === 'licenseeId' |
| 85 | 85 | && $importfile->getAuthor() === 'someauthor' |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | { |
| 152 | 152 | $this->mockObjects['importTwine']->expects($this->once()) |
| 153 | 153 | ->method('run') |
| 154 | - ->will($this->returnCallback(function ($importfile) { |
|
| 154 | + ->will($this->returnCallback(function($importfile) { |
|
| 155 | 155 | return $importfile->getFilename() === 'somefile_readable_exists.html' |
| 156 | 156 | && $importfile->getLicenseeId() === 'licenseeId' |
| 157 | 157 | && $importfile->getAuthor() === 'someauthor' |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | $textnodeRepository->expects($this->once()) |
| 332 | 332 | ->method('save') |
| 333 | - ->with($this->callback(function ($textnode) { |
|
| 333 | + ->with($this->callback(function($textnode) { |
|
| 334 | 334 | return $textnode instanceof Textnode |
| 335 | 335 | && $textnode->getText() === "lorem ipsumlorem ipsum"; |
| 336 | 336 | })); |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | $textnodeRepository->expects($this->any()) |
| 378 | 378 | ->method('save') |
| 379 | - ->with($this->callback(function ($textnode) { |
|
| 379 | + ->with($this->callback(function($textnode) { |
|
| 380 | 380 | return $textnode instanceof Textnode |
| 381 | 381 | && $textnode->getText() === "lorem ipsumlorem ipsum"; |
| 382 | 382 | })); |
@@ -745,7 +745,7 @@ discard block |
||
| 745 | 745 | |
| 746 | 746 | $textnodeRepository->expects($this->any()) |
| 747 | 747 | ->method('save') |
| 748 | - ->willReturnCallback(function ($textnode) { |
|
| 748 | + ->willReturnCallback(function($textnode) { |
|
| 749 | 749 | static $counter = 0; |
| 750 | 750 | $textnode->setId('someTextnode'.$counter++); |
| 751 | 751 | }); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | $containerMock = $this->getMockBuilder(ContainerInterface::class)->getMock(); |
| 109 | 109 | $containerMock->expects($this->any()) |
| 110 | 110 | ->method('get') |
| 111 | - ->willReturnCallback(function ($param) { |
|
| 111 | + ->willReturnCallback(function($param) { |
|
| 112 | 112 | switch ($param) { |
| 113 | 113 | case 'app.model_repository_user': |
| 114 | 114 | return $this->userRepositoryMock; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $releases = json_decode($data); |
| 41 | 41 | |
| 42 | 42 | if (is_null($releases)) { |
| 43 | - echo 'Data can\'t be parsed as JSON. exit' . "\n"; |
|
| 43 | + echo 'Data can\'t be parsed as JSON. exit'."\n"; |
|
| 44 | 44 | exit(1); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -59,14 +59,14 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | if ($latestReleaseDate === 0) { |
| 62 | - echo 'No release found. exit' . "\n"; |
|
| 62 | + echo 'No release found. exit'."\n"; |
|
| 63 | 63 | exit(1); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if (file_exists("files/version")) { |
| 67 | 67 | $installedVersion = trim(file_get_contents("files/version")); |
| 68 | 68 | if ($installedVersion === $newVersion) { |
| 69 | - echo 'latest version ['.$installedVersion.'] already installed. exit' . "\n"; |
|
| 69 | + echo 'latest version ['.$installedVersion.'] already installed. exit'."\n"; |
|
| 70 | 70 | exit(1); |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | if (array_key_exists('u', $options)) { |
| 83 | 83 | echo 'chown to '.$options['u']."...\n"; |
| 84 | - shell_exec('chown -R '.$options['u']. ' www/'); |
|
| 84 | + shell_exec('chown -R '.$options['u'].' www/'); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | echo 'clearing cache '."...\n"; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | echo 'prepare some apache stuff'."\n"; |
| 93 | 93 | shell_exec('cp files/apache/htaccess www/web/.htaccess'); |
| 94 | 94 | if (array_key_exists('u', $options)) { |
| 95 | - shell_exec('chown ' . $options['u'] . ' www/web/.htaccess'); |
|
| 95 | + shell_exec('chown '.$options['u'].' www/web/.htaccess'); |
|
| 96 | 96 | } |
| 97 | 97 | echo 'finished'."\n"; |
| 98 | 98 | |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | $coverage = round(($checkedElements / $totalElements) * 100, 2); |
| 26 | 26 | |
| 27 | 27 | if ($coverage < $percentage) { |
| 28 | - echo 'Code coverage is ' . $coverage . '%, which is below the accepted ' . $percentage . '%' . PHP_EOL; |
|
| 28 | + echo 'Code coverage is '.$coverage.'%, which is below the accepted '.$percentage.'%'.PHP_EOL; |
|
| 29 | 29 | exit(1); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -echo 'Code coverage is ' . $coverage . '% - OK!' . PHP_EOL; |
|
| 32 | +echo 'Code coverage is '.$coverage.'% - OK!'.PHP_EOL; |
|
@@ -68,12 +68,12 @@ |
||
| 68 | 68 | |
| 69 | 69 | $readpathRepositoryMock->expects($this->once()) |
| 70 | 70 | ->method('save') |
| 71 | - ->willReturnCallback(function (ReadpathDocument $readpathDocument) use ($textnodeMockId, $userMockId) { |
|
| 71 | + ->willReturnCallback(function(ReadpathDocument $readpathDocument) use ($textnodeMockId, $userMockId) { |
|
| 72 | 72 | $this->assertInstanceOf(ReadpathDocument::class, $readpathDocument); |
| 73 | 73 | $this->assertEquals($textnodeMockId, $readpathDocument->getTextnodeId()); |
| 74 | 74 | $this->assertEquals($userMockId, $readpathDocument->getUserId()); |
| 75 | 75 | $this->assertInstanceOf(\MongoDate::class, $readpathDocument->getTimestamp()); |
| 76 | - $this->assertLessThanOrEqual(1, abs($readpathDocument->getTimestamp()->sec-time())); |
|
| 76 | + $this->assertLessThanOrEqual(1, abs($readpathDocument->getTimestamp()->sec - time())); |
|
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | 79 | $readpath = new Readpath($readpathRepositoryMock); |