Passed
Push — master ( 087ea5...982d37 )
by Fran
03:47
created
src/base/types/Controller.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     public function render($template, array $vars = array(), $cookies = array(), $domain = null)
36 36
     {
37 37
         $vars['__menu__'] = $this->getMenu();
38
-        $domain = (null ===$domain) ? $this->getDomain() : $domain;
39
-        return $this->tpl->render($domain . $template, $vars, $cookies);
38
+        $domain = (null === $domain) ? $this->getDomain() : $domain;
39
+        return $this->tpl->render($domain.$template, $vars, $cookies);
40 40
     }
41 41
 
42 42
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $vars['__menu__'] = $this->getMenu();
69 69
         $domain = $domain ?: $this->getDomain();
70
-        return $this->tpl->dump($domain . $template, $vars);
70
+        return $this->tpl->dump($domain.$template, $vars);
71 71
     }
72 72
 
73 73
     /**
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
         /////////////////////////////////////////////////////////////
97 97
         // Date in the past sets the value to already have been expired.
98 98
         header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
99
-        header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
99
+        header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
100 100
         header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
101 101
         header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
102 102
         header("Pragma: no-cache");
103 103
         header("Expires: 0");
104 104
         header('Content-Transfer-Encoding: none');
105
-        header("Content-type: " . $content);
106
-        header("Content-length: " . strlen($data));
107
-        header('Content-Disposition: attachment; filename="' . $filename . '"');
105
+        header("Content-type: ".$content);
106
+        header("Content-length: ".strlen($data));
107
+        header('Content-Disposition: attachment; filename="'.$filename.'"');
108 108
         echo $data;
109 109
         ob_flush();
110 110
         ob_end_clean();
Please login to merge, or discard this patch.
src/base/types/helpers/ApiHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
                 $fDto = self::generatePasswordField($field, $required);
43 43
             } elseif (in_array($mappedColumn->getType(), [PropelTypes::TIMESTAMP])) {
44 44
                 //$fDto = self::generateDateField($field, $required);
45
-            } elseif(in_array($mappedColumn->getType(), [PropelTypes::ENUM, PropelTypes::SET])) {
45
+            } elseif (in_array($mappedColumn->getType(), [PropelTypes::ENUM, PropelTypes::SET])) {
46 46
                 $fDto = self::generateEnumField($field, $required);
47
-                foreach($mappedColumn->getValueSet() as $value) {
47
+                foreach ($mappedColumn->getValueSet() as $value) {
48 48
                     $fDto->data[] = [
49 49
                         $field => $value,
50 50
                         "Label" => _($value),
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 }
53 53
             }
54 54
 
55
-            if(null !== $fDto) {
55
+            if (null !== $fDto) {
56 56
                 $form->addField($fDto);
57 57
             }
58 58
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $fDto->required = $mappedColumn->isNotNull();
73 73
         $relatedModel = strtolower($mappedColumn->getRelation()->getForeignTable()->getPhpName());
74 74
         $fDto->entity = $relatedModel;
75
-        $fDto->url = Router::getInstance()->getRoute('api-' . $relatedModel . '-pk');
75
+        $fDto->url = Router::getInstance()->getRoute('api-'.$relatedModel.'-pk');
76 76
         return $fDto;
77 77
     }
78 78
 
Please login to merge, or discard this patch.
src/controller/base/Admin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @package PSFS\controller
16 16
  * @domain ROOT
17 17
  */
18
-abstract class Admin extends AuthAdminController{
18
+abstract class Admin extends AuthAdminController {
19 19
 
20 20
     const DOMAIN = 'ROOT';
21 21
 
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
      * @throws \PSFS\base\exception\FormException
46 46
      */
47 47
     public static function staticAdminLogon($route = null) {
48
-        if(file_exists(CONFIG_DIR . DIRECTORY_SEPARATOR . 'admins.json')) {
49
-            if('login' !== Config::getInstance()->get('admin_login')) {
48
+        if (file_exists(CONFIG_DIR.DIRECTORY_SEPARATOR.'admins.json')) {
49
+            if ('login' !== Config::getInstance()->get('admin_login')) {
50 50
                 return AdminServices::getInstance()->setAdminHeaders();
51
-            } else {
51
+            }else {
52 52
                 $form = new LoginForm();
53 53
                 $form->setData(array("route" => $route));
54 54
                 $form->build();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     'form' => $form,
59 59
                 ));
60 60
             }
61
-        } else {
61
+        }else {
62 62
             return UserController::showAdminManager();
63 63
         }
64 64
     }
Please login to merge, or discard this patch.