Completed
Push — master ( fb6736...59da86 )
by Fabien
03:11 queued 01:31
created
Classes/Form/AbstractFormField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
             reset($attribute);
132 132
             $key = key($attribute);
133 133
             if (!is_string($key)) {
134
-                throw new InvalidStringException('Not an associative array. Is not a key: ' . $key, 1356478742);
134
+                throw new InvalidStringException('Not an associative array. Is not a key: '.$key, 1356478742);
135 135
             }
136 136
 
137 137
             $this->attributes[$key] = $attribute[$key];
Please login to merge, or discard this patch.
Classes/View/Menu/StorageMenu.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
                 $selected,
79 79
                 $storage->getName(),
80 80
                 $storage->isOnline() ?
81
-                    '' :
82
-                    '(' . $this->getLanguageService()->sL('LLL:EXT:media/Resources/Private/Language/locallang.xlf:offline') . ')'
81
+                    '' : '('.$this->getLanguageService()->sL('LLL:EXT:media/Resources/Private/Language/locallang.xlf:offline').')'
83 82
             );
84 83
         }
85 84
 
@@ -87,7 +86,7 @@  discard block
 block discarded – undo
87 86
         $inputs = '';
88 87
         foreach ($parameters as $parameter => $value) {
89 88
             list($parameter, $value) = $this->computeParameterAndValue($parameter, $value);
90
-            if ($parameter !== $this->moduleLoader->getParameterPrefix() . '[storage]') {
89
+            if ($parameter !== $this->moduleLoader->getParameterPrefix().'[storage]') {
91 90
                 $inputs .= sprintf('<input type="hidden" name="%s" value="%s" />', $parameter, $value);
92 91
             }
93 92
         }
Please login to merge, or discard this patch.
Classes/View/Button/NewFolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                 ->setIcon($this->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL))
45 45
                 ->render();
46 46
 
47
-            $output = '<div style="float: left;">' . $button . '</div>';
47
+            $output = '<div style="float: left;">'.$button.'</div>';
48 48
         }
49 49
         return $output;
50 50
     }
Please login to merge, or discard this patch.
Classes/Command/ThumbnailCommandController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                         $message = sprintf('* File "%s": %s %s',
65 65
                             $result['fileUid'],
66 66
                             $result['fileIdentifier'],
67
-                            empty($result['thumbnailUri']) ? '' : ' -> ' . $result['thumbnailUri']
67
+                            empty($result['thumbnailUri']) ? '' : ' -> '.$result['thumbnailUri']
68 68
                         );
69 69
                         $this->outputLine($message);
70 70
                     }
Please login to merge, or discard this patch.
Tests/Functional/Utility/ConfigurationUtilityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 use Fab\Media\Tests\Functional\AbstractFunctionalTestCase;
18 18
 
19
-require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php';
19
+require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php';
20 20
 
21 21
 /**
22 22
  * Test case for class \Fab\Media\Utility\Configuration.
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
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 use Fab\Media\Tests\Functional\AbstractFunctionalTestCase;
18 18
 
19
-require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php';
19
+require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php';
20 20
 
21 21
 
22 22
 /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 		$preset = 'image_large';
129 129
 		$actualWidth = rand(10, 100);
130 130
 		$actualHeight = rand(10, 100);
131
-		\Fab\Media\Utility\ConfigurationUtility::getInstance()->set('image_large', $actualWidth . 'x' . $actualHeight);
131
+		\Fab\Media\Utility\ConfigurationUtility::getInstance()->set('image_large', $actualWidth.'x'.$actualHeight);
132 132
 		$this->assertSame($actualWidth, $this->fixture->preset($preset)->getWidth());
133 133
 		$this->assertSame($actualHeight, $this->fixture->preset($preset)->getHeight());
134 134
 	}
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
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 use Fab\Media\Tests\Functional\AbstractFunctionalTestCase;
18 18
 
19
-require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php';
19
+require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php';
20 20
 
21 21
 /**
22 22
  * Test case for class \Fab\Media\Form\FileUpload.
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
         $this->fixture = $this->getMock('Fab\Media\Form\FileUpload', array('addLanguage'));
45 45
 		$this->fakeName = uniqid('name');
46
-		$this->fakePrefix= uniqid('prefix');
46
+		$this->fakePrefix = uniqid('prefix');
47 47
 	}
48 48
 
49 49
 	public function tearDown() {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		$method->setAccessible(TRUE);
84 84
 
85 85
 		$basePart = uniqid();
86
-		$fakePrefix = $basePart . '[foo]';
86
+		$fakePrefix = $basePart.'[foo]';
87 87
 		$actual = $method->invokeArgs($this->fixture, array($fakePrefix));
88 88
 		$this->assertSame($basePart, $actual);
89 89
 	}
Please login to merge, or discard this patch.
Tests/Unit/FileUpload/UploadManagerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	public function setUp() {
38 38
 		$this->fixture = new \Fab\Media\FileUpload\UploadManager();
39 39
 		$this->fakeName = uniqid('name');
40
-		$this->fakePrefix= uniqid('prefix');
40
+		$this->fakePrefix = uniqid('prefix');
41 41
 	}
42 42
 
43 43
 	public function tearDown() {
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 	 * @dataProvider propertyProvider
50 50
 	 */
51 51
 	public function testProperty($propertyName, $value) {
52
-		$setter = 'set' . ucfirst($propertyName);
53
-		$getter = 'get' . ucfirst($propertyName);
52
+		$setter = 'set'.ucfirst($propertyName);
53
+		$getter = 'get'.ucfirst($propertyName);
54 54
 		call_user_func_array(array($this->fixture, $setter), array($value));
55 55
 		$this->assertEquals($value, call_user_func(array($this->fixture, $getter)));
56 56
 	}
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		return array(
63 63
 			array('uploadFolder', uniqid()),
64 64
 			array('inputName', uniqid()),
65
-			array('sizeLimit', rand(10,100)),
65
+			array('sizeLimit', rand(10, 100)),
66 66
 		);
67 67
 	}
68 68
 
Please login to merge, or discard this patch.
Tests/Unit/Utility/PathTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
 	public function canResolvesAPath() {
32 32
 		$resourceName = uniqid('resource');
33
-		$expected = 'media/Resources/Public/' . $resourceName;
33
+		$expected = 'media/Resources/Public/'.$resourceName;
34 34
 		$actual = \Fab\Media\Utility\Path::resolvePath($resourceName);
35 35
 
36 36
 		$this->assertTrue(strpos($actual, $expected) > 0);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	public function canReturnsAPublicPath() {
44 44
 
45 45
 		$resourceName = uniqid('resource');
46
-		$expected = 'media/Resources/Public/' . $resourceName;
46
+		$expected = 'media/Resources/Public/'.$resourceName;
47 47
 		$actual = \Fab\Media\Utility\Path::getRelativePath($resourceName);
48 48
 
49 49
 		$this->assertTrue(strpos($actual, $expected) > 0);
Please login to merge, or discard this patch.