Completed
Push — master ( b0b1c6...4fec92 )
by Fabien
54:17
created
Classes/Security/FilePermissionsAspect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 if ($this->getMediaModule()->hasRecursiveSelection()) {
45 45
                     // Only add like condition if needed.
46 46
                     if ($folder->getStorage()->getRootLevelFolder() !== $folder) {
47
-                        $matcher->like('identifier', $folder->getIdentifier() . '%', $automaticallyAddWildCard = false);
47
+                        $matcher->like('identifier', $folder->getIdentifier().'%', $automaticallyAddWildCard = false);
48 48
                     }
49 49
                 } else {
50 50
                     // Browse only currently
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     $fileMounts = $this->getCurrentBackendUser()->getFileMountRecords();
67 67
                     $collectedFiles = [];
68 68
                     foreach ($fileMounts as $fileMount) {
69
-                        $combinedIdentifier = $fileMount['base'] . ':' . $fileMount['path'];
69
+                        $combinedIdentifier = $fileMount['base'].':'.$fileMount['path'];
70 70
                         $folder = $this->getResourceFactory()->getFolderObjectFromCombinedIdentifier($combinedIdentifier);
71 71
 
72 72
                         $files = $this->getFileUids($folder);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             if ($fileMountRecord['path']) {
169 169
                 $constraintsRespectingFileMounts[] = $query->like(
170 170
                     'identifier',
171
-                    $fileMountRecord['path'] . '%'
171
+                    $fileMountRecord['path'].'%'
172 172
                 );
173 173
             }
174 174
         }
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 use TYPO3\CMS\Backend\Form\FormResultCompiler;
9 9
 defined('TYPO3') or die();
10 10
 
11
-call_user_func(function () {
11
+call_user_func(function() {
12 12
     $configuration = GeneralUtility::makeInstance(
13 13
         ExtensionConfiguration::class
14 14
     )->get('media');
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/sys_file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 if (ExtensionManagementUtility::isLoaded('filemetadata')) {
162 162
     $additionalTca = [
163 163
         'ctrl' => [
164
-            'searchFields' => $tca['ctrl']['searchFields'] . ', metadata.keywords',
164
+            'searchFields' => $tca['ctrl']['searchFields'].', metadata.keywords',
165 165
         ],
166 166
         'grid' => [
167 167
             'columns' => [
Please login to merge, or discard this patch.
ext_tables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 defined('TYPO3') or die();
52 52
 
53
-call_user_func(function () {
53
+call_user_func(function() {
54 54
     $configuration = GeneralUtility::makeInstance(
55 55
         ExtensionConfiguration::class
56 56
     )->get('media');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         ->setDocHeaderTopLeftComponents(
117 117
             [
118 118
                 StorageMenu::class,
119
-                RecursiveCheckbox::class,]
119
+                RecursiveCheckbox::class, ]
120 120
         )
121 121
         ->setDocHeaderBottomLeftComponents([
122 122
             ClipboardButton::class,
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     $iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
200 200
     foreach ($icons as $key => $icon) {
201 201
         $iconRegistry->registerIcon(
202
-            'extensions-media-' . $key,
202
+            'extensions-media-'.$key,
203 203
             BitmapIconProvider::class,
204 204
             [
205 205
                 'source' => $icon
Please login to merge, or discard this patch.
Tests/Unit/Utility/PathTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
     public function canResolvesAPath()
38 38
     {
39 39
         $resourceName = uniqid('resource');
40
-        $expected = 'media/Resources/Public/' . $resourceName;
40
+        $expected = 'media/Resources/Public/'.$resourceName;
41 41
         $actual = Path::resolvePath($resourceName);
42 42
 
43 43
         $this->assertTrue(strpos($actual, $expected) > 0);
44
-        $this->assertEquals(0, strpos(Environment::getPublicPath() . '/', $expected));
44
+        $this->assertEquals(0, strpos(Environment::getPublicPath().'/', $expected));
45 45
     }
46 46
 
47 47
     /**
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
     public function canReturnsAPublicPath()
51 51
     {
52 52
         $resourceName = uniqid('resource');
53
-        $expected = 'media/Resources/Public/' . $resourceName;
53
+        $expected = 'media/Resources/Public/'.$resourceName;
54 54
         $actual = Path::getRelativePath($resourceName);
55 55
 
56 56
         $this->assertTrue(strpos($actual, $expected) > 0);
57
-        $this->assertFalse(strpos(Environment::getPublicPath() . '/', $expected));
57
+        $this->assertFalse(strpos(Environment::getPublicPath().'/', $expected));
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
Tests/Unit/FileUpload/UploadManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $this->fixture = new UploadManager();
42 42
         $this->fakeName = uniqid('name');
43
-        $this->fakePrefix= uniqid('prefix');
43
+        $this->fakePrefix = uniqid('prefix');
44 44
     }
45 45
 
46 46
     public function tearDown()
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function testProperty($propertyName, $value)
56 56
     {
57
-        $setter = 'set' . ucfirst($propertyName);
58
-        $getter = 'get' . ucfirst($propertyName);
57
+        $setter = 'set'.ucfirst($propertyName);
58
+        $getter = 'get'.ucfirst($propertyName);
59 59
         call_user_func_array(array($this->fixture, $setter), array($value));
60 60
         $this->assertEquals($value, call_user_func(array($this->fixture, $getter)));
61 61
     }
Please login to merge, or discard this patch.
Tests/Functional/Form/FileUploadTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 use Fab\Media\Tests\Functional\AbstractFunctionalTestCase;
19 19
 
20
-require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php';
20
+require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php';
21 21
 
22 22
 /**
23 23
  * Test case for class \Fab\Media\Form\FileUpload.
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $this->fixture = $this->getMock('Fab\Media\Form\FileUpload', array('addLanguage'));
47 47
         $this->fakeName = uniqid('name');
48
-        $this->fakePrefix= uniqid('prefix');
48
+        $this->fakePrefix = uniqid('prefix');
49 49
     }
50 50
 
51 51
     public function tearDown()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $method->setAccessible(true);
92 92
 
93 93
         $basePart = uniqid();
94
-        $fakePrefix = $basePart . '[foo]';
94
+        $fakePrefix = $basePart.'[foo]';
95 95
         $actual = $method->invokeArgs($this->fixture, array($fakePrefix));
96 96
         $this->assertSame($basePart, $actual);
97 97
     }
Please login to merge, or discard this patch.
Tests/Functional/Utility/ImagePresetUtilityTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\GeneralUtility;
18 18
 use Fab\Media\Tests\Functional\AbstractFunctionalTestCase;
19 19
 
20
-require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php';
20
+require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php';
21 21
 
22 22
 
23 23
 /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $preset = 'image_large';
142 142
         $actualWidth = rand(10, 100);
143 143
         $actualHeight = rand(10, 100);
144
-        ConfigurationUtility::getInstance()->set('image_large', $actualWidth . 'x' . $actualHeight);
144
+        ConfigurationUtility::getInstance()->set('image_large', $actualWidth.'x'.$actualHeight);
145 145
         $this->assertSame($actualWidth, $this->fixture->preset($preset)->getWidth());
146 146
         $this->assertSame($actualHeight, $this->fixture->preset($preset)->getHeight());
147 147
     }
Please login to merge, or discard this patch.