Completed
Push — master ( 068784...de5e26 )
by Fabien
55:36
created
Classes/Formatter/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@
 block discarded – undo
35 35
         $result = '';
36 36
         if ((int)$value > 0) {
37 37
 
38
-            $timeStamp = '@' . $value;
38
+            $timeStamp = '@'.$value;
39 39
             try {
40 40
                 $date = new \DateTime($timeStamp);
41 41
                 $date->setTimezone(new \DateTimeZone(date_default_timezone_get()));
42 42
             } catch (\Exception $exception) {
43
-                throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621);
43
+                throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621);
44 44
             }
45 45
 
46 46
             $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';
Please login to merge, or discard this patch.
Classes/Formatter/Datetime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@
 block discarded – undo
36 36
         if ($value > 0) {
37 37
 
38 38
 
39
-            $timeStamp = '@' . $value;
39
+            $timeStamp = '@'.$value;
40 40
             try {
41 41
                 $date = new \DateTime($timeStamp);
42 42
                 $date->setTimezone(new \DateTimeZone(date_default_timezone_get()));
43 43
             } catch (\Exception $exception) {
44
-                throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621);
44
+                throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621);
45 45
             }
46 46
 
47
-            $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
47
+            $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
48 48
             if (strpos($format, '%') !== false) {
49 49
                 $result = strftime($format, $date->format('U'));
50 50
             } else {
Please login to merge, or discard this patch.
Classes/Service/ClipboardService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     protected function getDataKey()
83 83
     {
84
-        return 'vidi_clipboard_' . $this->getModuleLoader()->getDataType();
84
+        return 'vidi_clipboard_'.$this->getModuleLoader()->getDataType();
85 85
     }
86 86
 
87 87
     /**
Please login to merge, or discard this patch.
Classes/Service/SpreadSheetService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     {
88 88
 
89 89
         // workbook header
90
-        $output = stripslashes(sprintf(self::XmlHeader, $this->encoding)) . "\n";
90
+        $output = stripslashes(sprintf(self::XmlHeader, $this->encoding))."\n";
91 91
 
92 92
         // Set up styles
93 93
         $output .= "<Styles>\n";
Please login to merge, or discard this patch.
Classes/View/Grid/Row.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             $output[$this->getFieldName()] = $value;
127 127
         }
128 128
 
129
-        $output['DT_RowId'] = 'row-' . $object->getUid();
129
+        $output['DT_RowId'] = 'row-'.$object->getUid();
130 130
         $output['DT_RowClass'] = sprintf('%s_%s', $object->getDataType(), $object->getUid());
131 131
 
132 132
         return $output;
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
         foreach ($localizedStructure as $index => $structure) {
328 328
 
329 329
             $localizedStructure[$index]['value'] = sprintf('<span>%s %s</span>',
330
-                empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-' . $structure['languageFlag'], Icon::SIZE_SMALL),
330
+                empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-'.$structure['languageFlag'], Icon::SIZE_SMALL),
331 331
                 $structure['value']
332 332
             );
333 333
         }
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
             $enablesMethods = array('Hidden', 'Deleted', 'StartTime', 'EndTime');
353 353
             foreach ($enablesMethods as $enableMethod) {
354 354
 
355
-                $methodName = 'get' . $enableMethod . 'Field';
355
+                $methodName = 'get'.$enableMethod.'Field';
356 356
 
357 357
                 // Fetch possible hidden filed.
358 358
                 $enableField = Tca::table($object)->$methodName();
Please login to merge, or discard this patch.
Tests/Functional/Domain/Model/ContentTest.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\Vidi\Tests\Functional\AbstractFunctionalTestCase;
18 18
 
19
-require_once dirname(dirname(dirname(__FILE__))) . '/AbstractFunctionalTestCase.php';
19
+require_once dirname(dirname(dirname(__FILE__))).'/AbstractFunctionalTestCase.php';
20 20
 
21 21
 /**
22 22
  * Test case for class \Fab\Vidi\Domain\Model\Content.
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 	 * @dataProvider propertyProvider
114 114
 	 */
115 115
 	public function testProperty($propertyName, $value) {
116
-		$setter = 'set' . ucfirst($propertyName);
117
-		$getter = 'get' . ucfirst($propertyName);
116
+		$setter = 'set'.ucfirst($propertyName);
117
+		$getter = 'get'.ucfirst($propertyName);
118 118
 		$this->markTestIncomplete(); # TCA must be faked
119 119
 		#call_user_func_array(array($this->fixture, $setter), array($value));
120 120
 		#$this->assertEquals($value, call_user_func(array($this->fixture, $getter)));
Please login to merge, or discard this patch.
Classes/Converter/Property.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         // Resolve the table name.
60 60
         self::$currentTable = $tableNameOrContentObject instanceof Content ?
61
-            $tableNameOrContentObject->getDataType() :
62
-            $tableNameOrContentObject;
61
+            $tableNameOrContentObject->getDataType() : $tableNameOrContentObject;
63 62
         return $this;
64 63
     }
65 64
 
Please login to merge, or discard this patch.
Classes/Module/ModulePreferences.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,8 +179,8 @@
 block discarded – undo
179 179
         $generalSettings = $this->getSettings();
180 180
 
181 181
         $preferences = [];
182
-        if (isset($generalSettings[$dataType . '.'])) {
183
-            $settings = $generalSettings[$dataType . '.'];
182
+        if (isset($generalSettings[$dataType.'.'])) {
183
+            $settings = $generalSettings[$dataType.'.'];
184 184
 
185 185
             $configurableParts = ConfigurablePart::getParts();
186 186
             foreach ($settings as $key => $value) {
Please login to merge, or discard this patch.
Classes/Controller/UserPreferencesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 
30 30
         $dataType = $this->getModuleLoader()->getDataType();
31 31
 
32
-        $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_' . $key;
32
+        $key = $dataType.'_'.$this->getBackendUserIdentifier().'_'.$key;
33 33
         $this->getCacheInstance()->set($key, $value, [], 0);
34 34
 
35
-        $key = $dataType . '_' . $this->getBackendUserIdentifier() . '_signature';
35
+        $key = $dataType.'_'.$this->getBackendUserIdentifier().'_signature';
36 36
         $this->getCacheInstance()->set($key, $preferenceSignature, [], 0);
37 37
 
38 38
         return 'OK';
Please login to merge, or discard this patch.