Completed
Push — master ( 1f3fa8...7d4b61 )
by Mike
03:08
created
src/Element/ElementInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -6,11 +6,23 @@
 block discarded – undo
6 6
 
7 7
 interface ElementInterface
8 8
 {
9
+    /**
10
+     * @return string
11
+     */
9 12
     public function getTitle();
10 13
 
14
+    /**
15
+     * @return string
16
+     */
11 17
     public function getBody(Context $context);
12 18
 
19
+    /**
20
+     * @return integer
21
+     */
13 22
     public function getOrder();
14 23
 
24
+    /**
25
+     * @return boolean
26
+     */
15 27
     public function isRelevantTo(Context $context);
16 28
 }
Please login to merge, or discard this patch.
src/Element/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getSuitableElements(Context $context)
52 52
     {
53
-        $elements = array_filter($this->specElements, function (ElementInterface $element) use ($context) {
53
+        $elements = array_filter($this->specElements, function(ElementInterface $element) use ($context) {
54 54
             return $element->isRelevantTo($context);
55 55
         });
56 56
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         // sort elements (ASC)
66
-        usort($elements, function (ElementInterface $a, ElementInterface $b) {
66
+        usort($elements, function(ElementInterface $a, ElementInterface $b) {
67 67
             return $a->getOrder() > $b->getOrder() ? 1 : ($a->getOrder() < $b->getOrder() ? -1 : 0);
68 68
         });
69 69
 
Please login to merge, or discard this patch.
src/DI/Compiler/DataProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $providerChain = $container->findDefinition('data.provider_chain');
21 21
 
22 22
         $taggedProviders = $container->findTaggedServiceIds('data.provider');
23
-        $providers = array_map(function ($id) {
23
+        $providers = array_map(function($id) {
24 24
             return new Reference($id);
25 25
         }, array_keys($taggedProviders));
26 26
 
Please login to merge, or discard this patch.
src/DI/Compiler/ConsoleCommandPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $application = $container->findDefinition('application');
21 21
 
22 22
         $taggedCommands = $container->findTaggedServiceIds('console.command');
23
-        $commands = array_map(function ($id) {
23
+        $commands = array_map(function($id) {
24 24
             return new Reference($id);
25 25
         }, array_keys($taggedCommands));
26 26
 
Please login to merge, or discard this patch.