Completed
Push — master ( 5794c5...08c98b )
by Fabien
53:00
created
Classes/Formatter/Datetime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@
 block discarded – undo
27 27
     {
28 28
         $result = '';
29 29
         if ($value > 0) {
30
-            $timeStamp = '@' . $value;
30
+            $timeStamp = '@'.$value;
31 31
             try {
32 32
                 $date = new \DateTime($timeStamp);
33 33
                 $date->setTimezone(new \DateTimeZone(date_default_timezone_get()));
34 34
             } catch (\Exception $exception) {
35
-                throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621);
35
+                throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621);
36 36
             }
37 37
 
38
-            $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
38
+            $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
39 39
             if (strpos($format, '%') !== false) {
40 40
                 $result = strftime($format, $date->format('U'));
41 41
             } else {
Please login to merge, or discard this patch.
Classes/Formatter/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
     {
28 28
         $result = '';
29 29
         if ((int)$value > 0) {
30
-            $timeStamp = '@' . $value;
30
+            $timeStamp = '@'.$value;
31 31
             try {
32 32
                 $date = new \DateTime($timeStamp);
33 33
                 $date->setTimezone(new \DateTimeZone(date_default_timezone_get()));
34 34
             } catch (\Exception $exception) {
35
-                throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621);
35
+                throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621);
36 36
             }
37 37
 
38 38
             $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';
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
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $output[$this->getFieldName()] = $value;
118 118
         }
119 119
 
120
-        $output['DT_RowId'] = 'row-' . $object->getUid();
120
+        $output['DT_RowId'] = 'row-'.$object->getUid();
121 121
         $output['DT_RowClass'] = sprintf('%s_%s', $object->getDataType(), $object->getUid());
122 122
 
123 123
         return $output;
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         foreach ($localizedStructure as $index => $structure) {
315 315
             $localizedStructure[$index]['value'] = sprintf(
316 316
                 '<span>%s %s</span>',
317
-                empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-' . $structure['languageFlag'], Icon::SIZE_SMALL),
317
+                empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-'.$structure['languageFlag'], Icon::SIZE_SMALL),
318 318
                 $structure['value']
319 319
             );
320 320
         }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
             $enablesMethods = array('Hidden', 'Deleted', 'StartTime', 'EndTime');
338 338
             foreach ($enablesMethods as $enableMethod) {
339
-                $methodName = 'get' . $enableMethod . 'Field';
339
+                $methodName = 'get'.$enableMethod.'Field';
340 340
 
341 341
                 // Fetch possible hidden filed.
342 342
                 $enableField = Tca::table($object)->$methodName();
Please login to merge, or discard this patch.
Classes/Utility/BackendUtility.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
         $expressionBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
47 47
             ->getQueryBuilderForTable($table)
48 48
             ->expr();
49
-        return $withLogicalSeparator . ' ' . $expressionBuilder->eq(
50
-            $table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'],
49
+        return $withLogicalSeparator.' '.$expressionBuilder->eq(
50
+            $table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'],
51 51
             0
52 52
         );
53 53
     }
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
         if (is_array($ctrl)) {
74 74
             if (is_array($ctrl['enablecolumns'])) {
75 75
                 if ($ctrl['enablecolumns']['disabled'] ?? false) {
76
-                    $field = $table . '.' . $ctrl['enablecolumns']['disabled'];
76
+                    $field = $table.'.'.$ctrl['enablecolumns']['disabled'];
77 77
                     $query->add($expressionBuilder->eq($field, 0));
78 78
                     $invQuery->add($expressionBuilder->neq($field, 0));
79 79
                 }
80 80
                 if ($ctrl['enablecolumns']['starttime'] ?? false) {
81
-                    $field = $table . '.' . $ctrl['enablecolumns']['starttime'];
81
+                    $field = $table.'.'.$ctrl['enablecolumns']['starttime'];
82 82
                     $query->add($expressionBuilder->lte($field, (int)GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('date', 'timestamp')));
83 83
                     $invQuery->add(
84 84
                         $expressionBuilder->andX(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     );
89 89
                 }
90 90
                 if ($ctrl['enablecolumns']['endtime'] ?? false) {
91
-                    $field = $table . '.' . $ctrl['enablecolumns']['endtime'];
91
+                    $field = $table.'.'.$ctrl['enablecolumns']['endtime'];
92 92
                     $query->add(
93 93
                         $expressionBuilder->orX(
94 94
                             $expressionBuilder->eq($field, 0),
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             return '';
110 110
         }
111 111
 
112
-        return ' AND ' . ($inv ? $invQuery : $query);
112
+        return ' AND '.($inv ? $invQuery : $query);
113 113
     }
114 114
 
115 115
     /**
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
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 defined('TYPO3') or die();
9 9
 
10
-call_user_func(function () {
10
+call_user_func(function() {
11 11
     $configuration = GeneralUtility::makeInstance(
12 12
         ExtensionConfiguration::class
13 13
     )->get('vidi');
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
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 use Fab\Vidi\Tests\Functional\AbstractFunctionalTestCase;
19 19
 
20
-require_once dirname(dirname(dirname(__FILE__))) . '/AbstractFunctionalTestCase.php';
20
+require_once dirname(dirname(dirname(__FILE__))).'/AbstractFunctionalTestCase.php';
21 21
 
22 22
 /**
23 23
  * Test case for class \Fab\Vidi\Domain\Model\Content.
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function testProperty($propertyName, $value)
124 124
     {
125
-        $setter = 'set' . ucfirst($propertyName);
126
-        $getter = 'get' . ucfirst($propertyName);
125
+        $setter = 'set'.ucfirst($propertyName);
126
+        $getter = 'get'.ucfirst($propertyName);
127 127
         $this->markTestIncomplete(); # TCA must be faked
128 128
         #call_user_func_array(array($this->fixture, $setter), array($value));
129 129
         #$this->assertEquals($value, call_user_func(array($this->fixture, $getter)));
Please login to merge, or discard this patch.
Tests/Functional/Module/ModuleLoaderTest.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 Fab\Vidi\Module\ModuleLoader;
18 18
 use Fab\Vidi\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\Vidi\Module\ModuleLoader.
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function attributeCanBeSet($attribute, $value)
60 60
     {
61
-        $setter = 'set' . ucfirst($attribute);
61
+        $setter = 'set'.ucfirst($attribute);
62 62
         $this->fixture->$setter($value);
63 63
         $this->assertAttributeEquals($value, $attribute, $this->fixture);
64 64
     }
Please login to merge, or discard this patch.
ext_tables.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
 
18 18
 defined('TYPO3') or die();
19 19
 
20
-call_user_func(function () {
20
+call_user_func(function() {
21 21
     // Check from Vidi configuration what default module should be loaded.
22 22
     // Make sure the class exists to avoid a Runtime Error
23 23
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     $iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
173 173
     foreach ($icons as $key => $icon) {
174 174
         $iconRegistry->registerIcon(
175
-            'extensions-vidi-' . $key,
175
+            'extensions-vidi-'.$key,
176 176
             BitmapIconProvider::class,
177 177
             [
178 178
                 'source' => $icon
Please login to merge, or discard this patch.
Classes/ViewHelpers/Be/AdditionalAssetsViewHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
     protected function resolvePath($uri)
55 55
     {
56 56
         $uri = GeneralUtility::getFileAbsFileName($uri);
57
-        $uri = substr($uri, strlen(Environment::getPublicPath() . '/'));
57
+        $uri = substr($uri, strlen(Environment::getPublicPath().'/'));
58 58
         if (Typo3Mode::isBackendMode() && $uri !== false) {
59
-            $uri = '../' . $uri;
59
+            $uri = '../'.$uri;
60 60
         }
61 61
         return $uri;
62 62
     }
Please login to merge, or discard this patch.