Completed
Pull Request — master (#202)
by
unknown
07:29
created
src/SumoCoders/FrameworkCoreBundle/Form/Type/FileType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $builder
32 32
             ->addEventListener(
33 33
                 FormEvents::PRE_SET_DATA,
34
-                function (FormEvent $event) use ($options) {
34
+                function(FormEvent $event) use ($options) {
35 35
                     $event->getForm()->add(
36 36
                         'file',
37 37
                         SymfonyFileType::class,
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
             )
62 62
             ->addModelTransformer(
63 63
                 new CallbackTransformer(
64
-                    function (AbstractFile $file = null) {
64
+                    function(AbstractFile $file = null) {
65 65
                         return $file;
66 66
                     },
67
-                    function (AbstractFile $file = null) use ($options) {
67
+                    function(AbstractFile $file = null) use ($options) {
68 68
                         if ($file === null) {
69 69
                             $fileClass = $options['file_class'];
70 70
                             if ($this->removeField !== null && $this->removeField->getData()) {
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkCoreBundle/Extensions/Doctrine/MatchAgainst.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@
 block discarded – undo
56 56
             $haystack .= $column->dispatch($sqlWalker);
57 57
         }
58 58
 
59
-        $query = "MATCH(" . $haystack . ") AGAINST (" . $this->needle->dispatch($sqlWalker);
59
+        $query = "MATCH(".$haystack.") AGAINST (".$this->needle->dispatch($sqlWalker);
60 60
 
61 61
         if ($this->mode) {
62
-            $query .= " " . $this->mode->value . " )";
62
+            $query .= " ".$this->mode->value." )";
63 63
         } else {
64 64
             $query .= " )";
65 65
         }
Please login to merge, or discard this patch.
DependencyInjection/SumoCodersFrameworkCoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function load(array $configs, ContainerBuilder $container)
21 21
     {
22
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
22
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
23 23
         $loader->load('services.yml');
24 24
         $loader->load('parameters.yml');
25 25
     }
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkCoreBundle/Form/Extension/DateTimeTypeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,6 +51,6 @@
 block discarded – undo
51 51
 
52 52
     private function convertToJsFormat(string $intlFormat): string
53 53
     {
54
-        return str_replace(['y', 'MM', 'd', 'H', 'i'], ['YYYY','MM', 'DD', 'HH', 'mm'], $intlFormat);
54
+        return str_replace(['y', 'MM', 'd', 'H', 'i'], ['YYYY', 'MM', 'DD', 'HH', 'mm'], $intlFormat);
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkCoreBundle/Form/Extension/DateTypeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
52 52
 
53 53
     private function convertToJsFormat(string $intlFormat): string
54 54
     {
55
-        return str_replace(['y', 'MM', 'd'], ['YYYY','MM', 'DD'], $intlFormat);
55
+        return str_replace(['y', 'MM', 'd'], ['YYYY', 'MM', 'DD'], $intlFormat);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
DependencyInjection/SumoCodersFrameworkUserExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function load(array $configs, ContainerBuilder $container)
13 13
     {
14
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
14
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
15 15
         $loader->load('services.yml');
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkUserBundle/Controller/EditController.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
      *
65 65
      * @throws AccessDeniedHttpException if not allowed to edit user
66 66
      */
67
-    public function editAction(Request $request, ?int $id): array
67
+    public function editAction(Request $request, ?int $id) : array
68 68
     {
69 69
         if (!$this->authorizationChecker->isGranted('ROLE_ADMIN')
70 70
             && $this->tokenStorage->getToken()->getUser()->getId() !== $id
Please login to merge, or discard this patch.
src/SumoCoders/FrameworkUserBundle/Twig/UserExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
         return [
16 16
             new Twig_SimpleTest(
17 17
                 'admin',
18
-                function (BaseUser $user) {
18
+                function(BaseUser $user) {
19 19
                     return $user instanceof Admin;
20 20
                 }
21 21
             ),
22 22
             new Twig_SimpleTest(
23 23
                 'user',
24
-                function (BaseUser $user) {
24
+                function(BaseUser $user) {
25 25
                     return $user instanceof User;
26 26
                 }
27 27
             ),
Please login to merge, or discard this patch.