Completed
Branch master (842e0c)
by dima
02:26
created
bootstrap/common.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@  discard block
 block discarded – undo
7 7
     private static $_instance = null;
8 8
 
9 9
     private function __construct(){
10
-	// приватный конструктор ограничивает реализацию getInstance ()
10
+    // приватный конструктор ограничивает реализацию getInstance ()
11 11
     }
12 12
 
13 13
     protected function __clone(){
14
-	// ограничивает клонирование объекта
14
+    // ограничивает клонирование объекта
15 15
     }
16 16
 
17 17
     /**
@@ -21,28 +21,28 @@  discard block
 block discarded – undo
21 21
      * @return string
22 22
      */
23 23
     public static function getModule($name, array $params = []){
24
-	$DI		 = self::getInstance()->load("DI");
25
-	$debugbar	 = $DI->get(DebugBar\StandardDebugBar::class);
26
-	$debugbar['messages']->debug(sprintf('App::getModule %s, with params %s', $name, json_encode($params)));
27
-	$debugbar['time']->startMeasure($name, 'Load module ' . $name);
28
-	$module		 = $DI->get($name);
29
-	$result		 = $module->setParams($params)->process();
30
-	$debugbar['time']->stopMeasure($name);
31
-	return $result;
24
+    $DI		 = self::getInstance()->load("DI");
25
+    $debugbar	 = $DI->get(DebugBar\StandardDebugBar::class);
26
+    $debugbar['messages']->debug(sprintf('App::getModule %s, with params %s', $name, json_encode($params)));
27
+    $debugbar['time']->startMeasure($name, 'Load module ' . $name);
28
+    $module		 = $DI->get($name);
29
+    $result		 = $module->setParams($params)->process();
30
+    $debugbar['time']->stopMeasure($name);
31
+    return $result;
32 32
     }
33 33
 
34 34
     public static function getInstance(){
35
-	if(is_null(self::$_instance)){
36
-	    self::$_instance = new self();
37
-	}
38
-	return self::$_instance;
35
+    if(is_null(self::$_instance)){
36
+        self::$_instance = new self();
37
+    }
38
+    return self::$_instance;
39 39
     }
40 40
 
41 41
     public function import($key, $value){
42
-	$this->settings[$key] = $value;
42
+    $this->settings[$key] = $value;
43 43
     }
44 44
 
45 45
     public function load($key){
46
-	return $this->settings[$key];
46
+    return $this->settings[$key];
47 47
     }
48 48
 }
Please login to merge, or discard this patch.