Passed
Branch master (c83d56)
by Michael
07:57
created
www/web/config.php 2 patches
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -382,7 +382,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     exit('This script is only accessible from localhost.');
23 23
 }
24 24
 
25
-require_once dirname(__FILE__).'/../var/SymfonyRequirements.php';
25
+require_once dirname(__FILE__) . '/../var/SymfonyRequirements.php';
26 26
 
27 27
 $symfonyRequirements = new SymfonyRequirements();
28 28
 
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Command/ImportCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'
Please login to merge, or discard this patch.
www/src/DembeloMain/Tests/Model/ReadpathTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
scripts/install.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 $options = getopt($shortOptions, $longOptions);
27 27
 
28 28
 if (array_key_exists('help', $options)) {
29
-    echo "dembelo install script, ".file_get_contents('./files/version')."\n";
29
+    echo "dembelo install script, " . file_get_contents('./files/version') . "\n";
30 30
     echo "\n";
31 31
     echo "options:\n";
32 32
     echo " -u\tuser for chmod (for example: www-data)\n";
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 }
36 36
 
37 37
 $url = 'https://api.github.com/repos/typearea/dembelo/releases';
38
-$data = shell_exec('curl '.$url);
38
+$data = shell_exec('curl ' . $url);
39 39
 
40 40
 $releases = json_decode($data);
41 41
 
@@ -66,36 +66,36 @@  discard block
 block discarded – undo
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
 }
73 73
 
74
-echo 'download '.$downloadUrl."...\n";
75
-shell_exec('wget -q '.$downloadUrl);
76
-echo 'finished'."\n";
74
+echo 'download ' . $downloadUrl . "...\n";
75
+shell_exec('wget -q ' . $downloadUrl);
76
+echo 'finished' . "\n";
77 77
 
78
-echo 'extract '.$downloadName."...\n";
79
-shell_exec('unzip -o '.$downloadName);
80
-echo 'finished'."\n";
78
+echo 'extract ' . $downloadName . "...\n";
79
+shell_exec('unzip -o ' . $downloadName);
80
+echo 'finished' . "\n";
81 81
 
82 82
 if (array_key_exists('u', $options)) {
83
-    echo 'chown to '.$options['u']."...\n";
84
-    shell_exec('chown -R '.$options['u']. ' www/');
83
+    echo 'chown to ' . $options['u'] . "...\n";
84
+    shell_exec('chown -R ' . $options['u'] . ' www/');
85 85
 }
86 86
 
87
-echo 'clearing cache '."...\n";
87
+echo 'clearing cache ' . "...\n";
88 88
 shell_exec('cd www && php bin/console cache:clear --env=prod');
89 89
 shell_exec('cd www && php bin/console assetic:dump --env=prod');
90
-echo 'finished'."\n";
90
+echo 'finished' . "\n";
91 91
 
92
-echo 'prepare some apache stuff'."\n";
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 95
     shell_exec('chown ' . $options['u'] . ' www/web/.htaccess');
96 96
 }
97
-echo 'finished'."\n";
97
+echo 'finished' . "\n";
98 98
 
99
-shell_exec('rm '.$downloadName);
100
-echo 'installation ['.$newVersion.'] finished'."\n";
99
+shell_exec('rm ' . $downloadName);
100
+echo 'installation [' . $newVersion . '] finished' . "\n";
101 101
 exit(0);
102 102
\ No newline at end of file
Please login to merge, or discard this patch.
www/web/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 use Symfony\Component\HttpFoundation\Request;
4 4
 
5
-$loader = require __DIR__.'/../vendor/autoload.php';
5
+$loader = require __DIR__ . '/../vendor/autoload.php';
6 6
 
7 7
 $kernel = new AppKernel('prod', false);
8 8
 //$kernel->loadClassCache();
Please login to merge, or discard this patch.
www/web/app_dev.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     //exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
18 18
 }
19 19
 
20
-$loader = require __DIR__.'/../vendor/autoload.php';
20
+$loader = require __DIR__ . '/../vendor/autoload.php';
21 21
 Debug::enable();
22 22
 
23 23
 $kernel = new AppKernel('dev', true);
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Model/ImportTwineTest.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
 
266 266
         self::$freadStack = [
267 267
             '<tw-storydata ',
268
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
269
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
268
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
269
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
270 270
             '<tw-passagedata pid="1" name="someNodeName" tags="Freigegeben ID:foobar" position="104,30">lorem impsum',
271 271
             'lorem impsum</tw-passagedata></tw-storydata>',
272 272
         ];
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
 
311 311
         self::$freadStack = [
312 312
             '<tw-storydata ',
313
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
314
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
313
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
314
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
315 315
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben ID:foobar" position="104,30">lorem ipsum',
316 316
             'lorem ipsum</tw-passagedata></tw-storydata>',
317 317
         ];
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
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
             }));
@@ -355,8 +355,8 @@  discard block
 block discarded – undo
355 355
 
356 356
         self::$freadStack = [
357 357
             '<tw-storydata ',
358
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
359
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
358
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
359
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
360 360
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben ID:foobar" position="104,30">lorem ipsum',
361 361
             'lorem ipsum</tw-passagedata></tw-storydata>',
362 362
         ];
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
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
             }));
@@ -435,8 +435,8 @@  discard block
 block discarded – undo
435 435
 
436 436
         self::$freadStack = [
437 437
             '<tw-storydata ',
438
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
439
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
438
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
439
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
440 440
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben" position="104,30">lorem ipsum',
441 441
             'lorem ipsum</tw-passagedata></tw-storydata>',
442 442
         ];
@@ -473,8 +473,8 @@  discard block
 block discarded – undo
473 473
 
474 474
         self::$freadStack = [
475 475
             '<tw-storydata ',
476
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
477
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
476
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
477
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
478 478
             '<tw-passagedata pid="1" name="someNodeName1" tags="" position="104,30">lorem ipsum',
479 479
             'lorem ipsum</tw-passagedata></tw-storydata>',
480 480
         ];
@@ -511,8 +511,8 @@  discard block
 block discarded – undo
511 511
 
512 512
         self::$freadStack = [
513 513
             '<tw-storydata ',
514
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
515
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
514
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
515
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
516 516
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben ID:foobar" position="104,30">lorem ipsum',
517 517
             'lorem ipsum</tw-passagedata></tw-storydata>',
518 518
         ];
@@ -550,8 +550,8 @@  discard block
 block discarded – undo
550 550
 
551 551
         self::$freadStack = [
552 552
             '<tw-storydata ',
553
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
554
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
553
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
554
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
555 555
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben ID:foobar" position="104,30">lorem ipsum',
556 556
             'lorem ipsum</tw-passagedata></tw-storydata>',
557 557
         ];
@@ -591,8 +591,8 @@  discard block
 block discarded – undo
591 591
 
592 592
         self::$freadStack = [
593 593
             '<tw-storydata ',
594
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
595
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
594
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
595
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
596 596
             '<tw-passagedata pid="1" name="someNodeName1" tags="Freigegeben ID:foobar" position="104,30">lorem ipsum',
597 597
             'lorem ipsum</tw-passagedata></tw-storydata>',
598 598
         ];
@@ -636,8 +636,8 @@  discard block
 block discarded – undo
636 636
 
637 637
         self::$freadStack = [
638 638
             '<tw-storydata ',
639
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
640
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
639
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
640
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
641 641
             '<tw-passagedata pid="1" name="someNodeName1" tags="ID:someTwineId" position="104,30">lorem ipsum',
642 642
             'lorem ipsum</tw-passagedata>',
643 643
             '<tw-passagedata pid="2" name="someNodeName2" tags="ID:someTwineId" position="104,30">lorem ipsum',
@@ -677,8 +677,8 @@  discard block
 block discarded – undo
677 677
 
678 678
         self::$freadStack = [
679 679
             '<tw-storydata ',
680
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
681
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
680
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
681
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
682 682
             '<tw-passagedata pid="1" name="someNodeName1" tags="ID:someTwineId1" position="104,30">lorem ipsum',
683 683
             'lorem ipsum [[Linkdata->someNodeName3]]</tw-passagedata>',
684 684
             '</tw-storydata>',
@@ -717,8 +717,8 @@  discard block
 block discarded – undo
717 717
 
718 718
         self::$freadStack = [
719 719
             '<tw-storydata ',
720
-            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>'."\n",
721
-            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>'."\n",
720
+            '<tw-storydata name="someTopicId-->someStoryName" startnode="1" creator="Twine" creator-version="2.0.8" ifid="8E30D51C-4980-4161-B57F-B11C752E879A" format="Harlowe" options=""><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css"></style>' . "\n",
721
+            '<script role="script" id="twine-user-script" type="text/twine-javascript"></script>' . "\n",
722 722
             '<tw-passagedata pid="1" name="someNodeName1" tags="ID:someTwineId1" position="104,30">lorem ipsum',
723 723
             'lorem ipsum [[Linkdata->someNodeName2]]</tw-passagedata>',
724 724
             '<tw-passagedata pid="2" name="someNodeName2" tags="ID:someTwineId2" position="104,30">lorem ipsum',
@@ -745,9 +745,9 @@  discard block
 block discarded – undo
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
-                $textnode->setId('someTextnode'.$counter++);
750
+                $textnode->setId('someTextnode' . $counter++);
751 751
             });
752 752
 
753 753
         $importTwine = new ImportTwine($textnodeRepository, $topicRepository);
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Controller/DefaultControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         /* @var $response \Symfony\Component\HttpFoundation\Response */
153 153
         $response = $controller->usersAction($request);
154 154
         $this->assertInstanceOf(Response::class, $response);
155
-        $this->assertJsonStringEqualsJsonString('[{"id":"id1","gender":null,"email":"email1","roles":"ROLE_ADMIN","licenseeId":"lic1","status":null,"source":null,"reason":null,"created":"'.date('Y-m-d H:i:s', 0).'","updated":"'.date('Y-m-d H:i:s', 0).'"},{"id":"id2","email":"email2","roles":"ROLE_USER","licenseeId":"lic2","status":null,"source":null,"reason":null,"gender":null,"created":"'.date('Y-m-d H:i:s', 0).'","updated":"'.date('Y-m-d H:i:s', 0).'"}]', $response->getContent());
155
+        $this->assertJsonStringEqualsJsonString('[{"id":"id1","gender":null,"email":"email1","roles":"ROLE_ADMIN","licenseeId":"lic1","status":null,"source":null,"reason":null,"created":"' . date('Y-m-d H:i:s', 0) . '","updated":"' . date('Y-m-d H:i:s', 0) . '"},{"id":"id2","email":"email2","roles":"ROLE_USER","licenseeId":"lic2","status":null,"source":null,"reason":null,"gender":null,"created":"' . date('Y-m-d H:i:s', 0) . '","updated":"' . date('Y-m-d H:i:s', 0) . '"}]', $response->getContent());
156 156
         $this->assertEquals('200', $response->getStatusCode());
157 157
     }
158 158
 
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
         $this->repository = $this->getMockBuilder(DocumentRepository::class)->disableOriginalConstructor()->getMock();
511 511
         $this->container->expects($this->once())
512 512
             ->method("get")
513
-            ->with($this->equalTo('app.model_repository_'.$repository))
513
+            ->with($this->equalTo('app.model_repository_' . $repository))
514 514
             ->will($this->returnValue($this->repository));
515 515
     }
516 516
 }
Please login to merge, or discard this patch.
www/src/AdminBundle/Controller/TopicController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@
 block discarded – undo
96 96
             return new Response(\json_encode($output));
97 97
         }
98 98
         $directory = $this->getParameter('topic_image_directory');
99
-        $filename = md5(uniqid().$file['name']);
100
-        move_uploaded_file($file["tmp_name"], $directory.$filename);
99
+        $filename = md5(uniqid() . $file['name']);
100
+        move_uploaded_file($file["tmp_name"], $directory . $filename);
101 101
         $output['imageFileName'] = $filename;
102 102
         $output['originalImageName'] = $file['name'];
103 103
 
Please login to merge, or discard this patch.