Completed
Push — master ( 894858...0c5108 )
by Artur
02:25
created
backend/controller/Controller.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 use Bricks\ServiceLocator\Manager as Locator;
4 4
 use Bricks\TemplateEngine\Php\Template;
5 5
 
6
-abstract class Controller{
6
+abstract class Controller {
7 7
   protected $locator;
8 8
   protected $controller;
9 9
   protected $action;
10 10
 
11
-  public function __construct(Locator $locator, $controller, $action){
11
+  public function __construct(Locator $locator, $controller, $action) {
12 12
     $this->locator = $locator;
13 13
     $this->controller = $controller;
14 14
     $this->action = $action;
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
    *
24 24
    * @return Template Шаблон, используемый для данного метода контроллера.
25 25
    */
26
-  public function template($controller = null, $action = null){
27
-    if(is_null($controller)){                                                                                  
26
+  public function template($controller = null, $action = null) {
27
+    if (is_null($controller)) {                                                                                  
28 28
       $controller = $this->controller;                                                                         
29 29
     }                                                                                                          
30
-    if(is_null($action)){                                                                                                                              
30
+    if (is_null($action)) {                                                                                                                              
31 31
       $action = $this->action;                                                                                 
32 32
     }
33 33
 
Please login to merge, or discard this patch.