Completed
Push — master ( 336199...0d47e3 )
by Sarah
01:47
created
Events.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class Events extends \yii\base\BaseObject
11 11
 {
12
-    public static function directoryAfterInit(){
12
+    public static function directoryAfterInit() {
13 13
         $x = 3;
14 14
     }
15 15
 
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
         $arrayNumber = null;
25 25
         $it = 0;
26 26
         /* @var $sender TopMenu */
27
-        foreach ($event->sender->items as $item){
27
+        foreach ($event->sender->items as $item) {
28 28
             if ($item['label'] == Yii::t('DirectoryModule.base', 'Directory'))
29 29
             {
30 30
                 $arrayNumber = $it;
31 31
             }
32 32
             $it++;
33 33
         }
34
-        $event->sender->items[$arrayNumber]['url'] = Url::to([ "/geolocation/index"]);
34
+        $event->sender->items[$arrayNumber]['url'] = Url::to(["/geolocation/index"]);
35 35
     }
36 36
 
37 37
 
Please login to merge, or discard this patch.