Test Failed
Branch master (c83d56)
by Michael
05:31
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.
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/app/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /**
8 8
  * @var ClassLoader $loader
9 9
  */
10
-$loader = require __DIR__.'/../vendor/autoload.php';
10
+$loader = require __DIR__ . '/../vendor/autoload.php';
11 11
 
12 12
 AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
13 13
 
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Model/ImportTwineTest.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
  * @param string $filename
33 33
  * @return bool
34 34
  */
35
-function fopen($filename)
35
+function fopen ($filename)
36 36
 {
37 37
     return strpos($filename, 'readable') !== false;
38 38
 }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  *
43 43
  * @return bool|mixed
44 44
  */
45
-function fgets()
45
+function fgets ()
46 46
 {
47 47
     if (empty(ImportTwineTest::$fgetsStack)) {
48 48
         return false;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  * @param Resource $handle
58 58
  * @param string   $string
59 59
  */
60
-function fputs($handle, $string)
60
+function fputs ($handle, $string)
61 61
 {
62 62
     ImportTwineTest::$fputsStack[] = $string;
63 63
 }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 /**
66 66
  * mock function
67 67
  */
68
-function fclose()
68
+function fclose ()
69 69
 {
70 70
 }
71 71
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
  *
75 75
  * @return bool|mixed
76 76
  */
77
-function fread()
77
+function fread ()
78 78
 {
79 79
     if (empty(ImportTwineTest::$freadStack)) {
80 80
         return false;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
  *
89 89
  * @return bool
90 90
  */
91
-function feof()
91
+function feof ()
92 92
 {
93 93
     return empty(ImportTwineTest::$freadStack);
94 94
 }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
  *
99 99
  * @return int
100 100
  */
101
-function fseek()
101
+function fseek ()
102 102
 {
103 103
     return 0;
104 104
 }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 /**
107 107
  * @param Resource $parser
108 108
  */
109
-function xml_parser_free($parser)
109
+function xml_parser_free ($parser)
110 110
 {
111 111
     ImportTwineTest::$parserFreeCalled = true;
112 112
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * resets some variables
144 144
      */
145
-    public function setUp()
145
+    public function setUp ()
146 146
     {
147 147
         self::$freadStack = self::$fgetsStack = self::$fputsStack = [];
148 148
         $this->mocks = [];
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      * @expectedException Exception
154 154
      * @expectedExceptionMessage Failed to read data from file 'somefilename'
155 155
      */
156
-    public function testRunWithFopenIsFalse()
156
+    public function testRunWithFopenIsFalse ()
157 157
     {
158 158
         $textnodeRepository = $this->getTextnodeRepositoryMock();
159 159
         $topicRepository = $this->getTopicRepositoryMock();
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * @expectedException Exception
169 169
      * @expectedExceptionMessage Failed to read data from file 'somefilename_readable'
170 170
      */
171
-    public function testRunWithFreadReturnFalse()
171
+    public function testRunWithFreadReturnFalse ()
172 172
     {
173 173
         $textnodeRepository = $this->getTextnodeRepositoryMock();
174 174
         $topicRepository = $this->getTopicRepositoryMock();
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @expectedException Exception
188 188
      * @expectedExceptionMessage File 'somefilename_readable' isn't a Twine archive file
189 189
      */
190
-    public function testRunWithWrongFileFormat()
190
+    public function testRunWithWrongFileFormat ()
191 191
     {
192 192
         $textnodeRepository = $this->getTextnodeRepositoryMock();
193 193
         $topicRepository = $this->getTopicRepositoryMock();
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @expectedException Exception
210 210
      * @expectedExceptionMessage File 'somefilename_readable' seems to be empty.
211 211
      */
212
-    public function testRunWithEmptyFirstLine()
212
+    public function testRunWithEmptyFirstLine ()
213 213
     {
214 214
         $textnodeRepository = $this->getTextnodeRepositoryMock();
215 215
         $topicRepository = $this->getTopicRepositoryMock();
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      *
233 233
      * @throws \Exception
234 234
      */
235
-    public function testRunWithCorrectButIncompleteData()
235
+    public function testRunWithCorrectButIncompleteData ()
236 236
     {
237 237
         $textnodeRepository = $this->getTextnodeRepositoryMock();
238 238
         $topicRepository = $this->getTopicRepositoryMock();
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      *
257 257
      * @throws \Exception
258 258
      */
259
-    public function testRunButNoTextnodeIsWritten()
259
+    public function testRunButNoTextnodeIsWritten ()
260 260
     {
261 261
         $textnodeRepository = $this->getTextnodeRepositoryMock();
262 262
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      *
302 302
      * @throws \Exception
303 303
      */
304
-    public function testRunWithSingleNodeWithText()
304
+    public function testRunWithSingleNodeWithText ()
305 305
     {
306 306
         $textnodeRepository = $this->getTextnodeRepositoryMock();
307 307
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
             }));
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      * @expectedException Exception
347 347
      * @expectedExceptionMessage The Twine archive file 'somefilename_readable' has a textnode named 'someNodeName1' which contains a malformed link that starts with '[[' but has no corresponding ']]'.
348 348
      */
349
-    public function testRunWithUnfinishedLinkTag()
349
+    public function testRunWithUnfinishedLinkTag ()
350 350
     {
351 351
         $textnodeRepository = $this->getTextnodeRepositoryMock();
352 352
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
             }));
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      * @expectedException Exception
395 395
      * @expectedExceptionMessage no licensee available
396 396
      */
397
-    public function testRunWithExceptionWhenNoLicenseeIsAvailable()
397
+    public function testRunWithExceptionWhenNoLicenseeIsAvailable ()
398 398
     {
399 399
         $textnodeRepository = $this->getTextnodeRepositoryMock();
400 400
         $topicRepository = $this->getTopicRepositoryMock();
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      * @expectedException Exception
412 412
      * @expectedExceptionMessage no filename available
413 413
      */
414
-    public function testRunWithExceptionWhenNoFilenameIsAvailable()
414
+    public function testRunWithExceptionWhenNoFilenameIsAvailable ()
415 415
     {
416 416
         $textnodeRepository = $this->getTextnodeRepositoryMock();
417 417
         $topicRepository = $this->getTopicRepositoryMock();
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      * @expectedException Exception
427 427
      * @expectedExceptionMessage no ID given for Textnode "someNodeName1"
428 428
      */
429
-    public function testRunWithTextnodeWithoutTwineID()
429
+    public function testRunWithTextnodeWithoutTwineID ()
430 430
     {
431 431
         $textnodeRepository = $this->getTextnodeRepositoryMock();
432 432
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      * @expectedException Exception
465 465
      * @expectedExceptionMessage no ID given for Textnode "someNodeName1"
466 466
      */
467
-    public function testRunWithTextnodeWithoutAnyTag()
467
+    public function testRunWithTextnodeWithoutAnyTag ()
468 468
     {
469 469
         $textnodeRepository = $this->getTextnodeRepositoryMock();
470 470
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      * tests identifying a textnode by a twine ID
503 503
      * @throws \Exception
504 504
      */
505
-    public function testRunWithTextnodeWithTwineID()
505
+    public function testRunWithTextnodeWithTwineID ()
506 506
     {
507 507
         $textnodeRepository = $this->getTextnodeRepositoryMock();
508 508
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      * tests the freeing of xml parser
542 542
      * @throws \Exception
543 543
      */
544
-    public function testParserFree()
544
+    public function testParserFree ()
545 545
     {
546 546
         $textnodeRepository = $this->getTextnodeRepositoryMock();
547 547
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
      * tests disabling of a textnode that is no longer found in import file
583 583
      * @throws \Exception
584 584
      */
585
-    public function testRunWithTextnodeDeletedInImportfile()
585
+    public function testRunWithTextnodeDeletedInImportfile ()
586 586
     {
587 587
         $textnodeRepository = $this->getTextnodeRepositoryMock();
588 588
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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
         ];
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
      * @expectedException Exception
628 628
      * @expectedExceptionMessage There is a 'tw-passagedata' in the Twine archive file 'somefilename_readable' which has a non unique 'id' tag [someTwineId], in node 'someNodeName2'
629 629
      */
630
-    public function testRunWithDuplicateTwineId()
630
+    public function testRunWithDuplicateTwineId ()
631 631
     {
632 632
         $textnodeRepository = $this->getTextnodeRepositoryMock();
633 633
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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',
@@ -668,7 +668,7 @@  discard block
 block discarded – undo
668 668
      * @expectedException Exception
669 669
      * @expectedExceptionMessage There is a textnode which references another textnode named 'someNodeName3', but this textnode doesn't exist within the same story.
670 670
      */
671
-    public function testRunWithLinkToNonExistingTextnode()
671
+    public function testRunWithLinkToNonExistingTextnode ()
672 672
     {
673 673
         $textnodeRepository = $this->getTextnodeRepositoryMock();
674 674
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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>',
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
      * tests a hitch to another textnode
709 709
      * @throws \Exception
710 710
      */
711
-    public function testRunWithLinkToAnotherTextnode()
711
+    public function testRunWithLinkToAnotherTextnode ()
712 712
     {
713 713
         $textnodeRepository = $this->getTextnodeRepositoryMock();
714 714
         $topicRepository = $this->getTopicRepositoryMock();
@@ -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);
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
         $this->assertTrue($returnValue);
757 757
     }
758 758
 
759
-    private function getDummyImportfile(array $data = [])
759
+    private function getDummyImportfile (array $data = [])
760 760
     {
761 761
         $default = [
762 762
             'filename'   => 'somefilename_readable',
@@ -789,17 +789,17 @@  discard block
 block discarded – undo
789 789
         return $importfile;
790 790
     }
791 791
 
792
-    private function getTextnodeRepositoryMock()
792
+    private function getTextnodeRepositoryMock ()
793 793
     {
794 794
         return $this->getMockBuilder(TextNodeRepository::class)->disableOriginalConstructor()->setMethods(['createQueryBuilder', 'field', 'equals', 'getQuery', 'save', 'find', 'findByTwineId', 'disableOrphanedNodes', 'setHyphenatedText'])->getMock();
795 795
     }
796 796
 
797
-    private function getTopicRepositoryMock()
797
+    private function getTopicRepositoryMock ()
798 798
     {
799 799
         return $this->getMockBuilder(TopicRepository::class)->disableOriginalConstructor()->setMethods(['find'])->getMock();
800 800
     }
801 801
 
802
-    private function getDmMock()
802
+    private function getDmMock ()
803 803
     {
804 804
         return $this->getMockBuilder('dmMock')->setMethods(['flush', 'persist', 'find'])->getMock();
805 805
     }
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Controller/DefaultControllerTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * tests the index action
58 58
      */
59
-    public function testIndexAction()
59
+    public function testIndexAction ()
60 60
     {
61 61
         $client = static::createClient();
62 62
         $crawler = $client->request('GET', '/admin/');
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * tests controller's userAction with no users in db
70 70
      */
71
-    public function testUserAction()
71
+    public function testUserAction ()
72 72
     {
73 73
         $request = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
74 74
         $postMock = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock();
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * tests controller's userAction with two users in db
107 107
      */
108
-    public function testUserActionWithUsers()
108
+    public function testUserActionWithUsers ()
109 109
     {
110 110
         $request = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
111 111
         $postMock = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock();
@@ -152,14 +152,14 @@  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
 
159 159
     /**
160 160
      * tear down method
161 161
      */
162
-    public function tearDown()
162
+    public function tearDown ()
163 163
     {
164 164
         $this->container = null;
165 165
         $this->repository = null;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * tests the formsaveAction without parameters
171 171
      */
172
-    public function testFormsaveActionWithoutParameters()
172
+    public function testFormsaveActionWithoutParameters ()
173 173
     {
174 174
         $request = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
175 175
         $postMock = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock();
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     /**
195 195
      * tests the formsaveAction with wrong parameters
196 196
      */
197
-    public function testFormsaveActionWithWrongParameters()
197
+    public function testFormsaveActionWithWrongParameters ()
198 198
     {
199 199
         $request = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
200 200
         $postMock = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock();
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * tests the formsaveAction with an existing user
223 223
      */
224
-    public function testFormsaveActionExistingUser()
224
+    public function testFormsaveActionExistingUser ()
225 225
     {
226 226
         $user = new User();
227 227
         $user->setId('someId');
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     /**
262 262
      * tests the formsaveAction with a nonexisting user
263 263
      */
264
-    public function testFormsaveActionNotExistingUser()
264
+    public function testFormsaveActionNotExistingUser ()
265 265
     {
266 266
         $user = new User();
267 267
         $user->setId('someId');
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * tests the formsaveAction without admin permission
302 302
      */
303
-    public function testFormsaveActionWithoutAdminPermission()
303
+    public function testFormsaveActionWithoutAdminPermission ()
304 304
     {
305 305
         $client = static::createClient();
306 306
         $crawler = $client->request('GET', '/admin/save');
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     /**
314 314
      * tests the formsaveAction with missing id parameter
315 315
      */
316
-    public function testFormsaveActionWithMissingIdParameter()
316
+    public function testFormsaveActionWithMissingIdParameter ()
317 317
     {
318 318
         $request = $this->getMockBuilder(Request::class)->disableOriginalConstructor()->getMock();
319 319
         $postMock = $this->getMockBuilder(ParameterBag::class)->disableOriginalConstructor()->getMock();
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * tests licenseeAction with no licensees
343 343
      */
344
-    public function testLicenseeActionWithNoLicensees()
344
+    public function testLicenseeActionWithNoLicensees ()
345 345
     {
346 346
         $repository = $this->getMockBuilder(LicenseeRepository::class)->disableOriginalConstructor()->setMethods(['findAll'])->getMock();
347 347
         $repository->expects($this->once())
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     /**
368 368
      * tests licenseeAction() with one licensee
369 369
      */
370
-    public function testLicenseeActionWithOneLicensee()
370
+    public function testLicenseeActionWithOneLicensee ()
371 371
     {
372 372
         $licensee = new Licensee();
373 373
         $licensee->setName('someName');
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     /**
398 398
      * tests textnode action
399 399
      */
400
-    public function testTextnodesAction()
400
+    public function testTextnodesAction ()
401 401
     {
402 402
         $textnode = new Textnode();
403 403
         $textnode->setId('someId');
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         $this->assertJsonStringEqualsJsonString($expectedJson, $response->getContent());
465 465
     }
466 466
 
467
-    private function getLicenseeRepositoryMock()
467
+    private function getLicenseeRepositoryMock ()
468 468
     {
469 469
         $repository = $this->getMockBuilder(LicenseeRepository::class)
470 470
             ->disableOriginalConstructor()
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
         return $repository;
475 475
     }
476 476
 
477
-    private function getImportfileRepositoryMock()
477
+    private function getImportfileRepositoryMock ()
478 478
     {
479 479
         $repository = $this->getMockBuilder(ImportfileRepository::class)
480 480
             ->disableOriginalConstructor()
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
     /**
488 488
      * load mockoed container and mocked mongodb repository
489 489
      */
490
-    private function loadMongoContainer($repository)
490
+    private function loadMongoContainer ($repository)
491 491
     {
492 492
         $this->loadMockedContainer();
493 493
         $this->loadMockedMongoRepository($repository);
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
     /**
497 497
      * load mocked container
498 498
      */
499
-    private function loadMockedContainer()
499
+    private function loadMockedContainer ()
500 500
     {
501 501
         $this->container = $this->createMock(ContainerInterface::class);
502 502
     }
@@ -504,13 +504,13 @@  discard block
 block discarded – undo
504 504
     /**
505 505
      * load mocked mongodb repository
506 506
      */
507
-    private function loadMockedMongoRepository($repository)
507
+    private function loadMockedMongoRepository ($repository)
508 508
     {
509 509
         $this->service = $this->getMockBuilder(ManagerRegistry::class)->disableOriginalConstructor()->getMock();
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/Tests/Controller/TopicControllerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * tests topicAction() with no topics
38 38
      */
39
-    public function testListActionWithNoTopics()
39
+    public function testListActionWithNoTopics ()
40 40
     {
41 41
         $container = $this->getMockBuilder(ContainerInterface::class)->getMock();
42 42
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * tests topicAction with one topic
64 64
      */
65
-    public function testListActionWithOneTopic()
65
+    public function testListActionWithOneTopic ()
66 66
     {
67 67
         $topic = new Topic();
68 68
         $topic->setName('someName');
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * tests topicAction with some filters
97 97
      */
98
-    public function testListActionWithSomeFilters()
98
+    public function testListActionWithSomeFilters ()
99 99
     {
100 100
         $topic = new Topic();
101 101
         $topic->setName('someName');
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * tests uploadImageAction with an error in $_FILES
138 138
      */
139
-    public function testUploadImageActionWithNoFileError()
139
+    public function testUploadImageActionWithNoFileError ()
140 140
     {
141 141
         $repository = $this->getMockBuilder(TopicRepository::class)->disableOriginalConstructor()->setMethods(['findBy'])->getMock();
142 142
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * tests uploadImageAction
162 162
      */
163
-    public function testUploadImageActionWithNoError()
163
+    public function testUploadImageActionWithNoError ()
164 164
     {
165 165
         $repository = $this->getMockBuilder(TopicRepository::class)->disableOriginalConstructor()->setMethods(['findBy'])->getMock();
166 166
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     /**
189 189
      * tear down method
190 190
      */
191
-    public function tearDown()
191
+    public function tearDown ()
192 192
     {
193 193
         $this->container = null;
194 194
         $this->repository = null;
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Command/ImportCommandTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
  * @param string $filename
30 30
  * @return bool
31 31
  */
32
-function is_readable($filename)
32
+function is_readable ($filename)
33 33
 {
34 34
     return \strpos($filename, 'readable') !== false;
35 35
 }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
  * @param string $filename
39 39
  * @return bool
40 40
  */
41
-function file_exists($filename)
41
+function file_exists ($filename)
42 42
 {
43 43
     return \strpos($filename, 'exists') !== false;
44 44
 }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     private $command;
62 62
     private $commandTester;
63 63
 
64
-    protected function setUp()
64
+    protected function setUp ()
65 65
     {
66 66
         self::bootKernel();
67 67
         $application = new Application(self::$kernel);
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * tests the execute method
77 77
      */
78
-    public function testExecute()
78
+    public function testExecute ()
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'
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * tests execute method with unreadable file
105 105
      */
106
-    public function testExecuteWithUnreadableFile()
106
+    public function testExecuteWithUnreadableFile ()
107 107
     {
108 108
         $this->mockObjects['importTwine']->expects($this->never())
109 109
             ->method('run');
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     /**
126 126
      * tests execute() method with non existing file
127 127
      */
128
-    public function testExecuteWithFileNotExisting()
128
+    public function testExecuteWithFileNotExisting ()
129 129
     {
130 130
         $this->mockObjects['importTwine']->expects($this->never())
131 131
             ->method('run');
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * tests execute() method with exception thrown by importTwine
149 149
      */
150
-    public function testExecuteWithExeptionInImportTwine()
150
+    public function testExecuteWithExeptionInImportTwine ()
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'
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     /**
180 180
      * @expectedException Exception
181 181
      */
182
-    public function testExecuteWithLicenseeNotFound()
182
+    public function testExecuteWithLicenseeNotFound ()
183 183
     {
184 184
         $this->mockObjects['importTwine']->expects($this->never())
185 185
             ->method('run');
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      * @param string $arg
206 206
      * @return null|\PHPUnit_Framework_MockObject_MockObject
207 207
      */
208
-    public function findOneByNameCallback($arg)
208
+    public function findOneByNameCallback ($arg)
209 209
     {
210 210
         if ($arg === 'somelicensee') {
211 211
             $licenseeMock = $this->getMockBuilder('DembeloMain\Document\Licensee')->disableOriginalConstructor()->getMock();
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         return null;
220 220
     }
221 221
 
222
-    private function getMockObjects()
222
+    private function getMockObjects ()
223 223
     {
224 224
         $container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
225 225
 
Please login to merge, or discard this patch.