Passed
Push — main ( caeba9...2aa0f9 )
by Sammy
01:40
created
Controllers/Traduko.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public function update_file($lang = 'fra')
23 23
     {
24 24
         try {
25
-            $locale_path = $this->get('settings.locale.directory_path') . '/' . $this->get('settings.locale.file_name');
25
+            $locale_path = $this->get('settings.locale.directory_path').'/'.$this->get('settings.locale.file_name');
26 26
             self::create_file($locale_path, $lang);
27 27
 
28 28
             $this->logger()->notice($this->l('KADRO_SYSTEM_FILE_UPDATED'));
Please login to merge, or discard this patch.
Controllers/Reception.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace HexMakina\kadro\Controllers;
4 4
 
5
-use HexMakina\kadro\Auth\{Operator,Permission,ACL};
5
+use HexMakina\kadro\Auth\{Operator, Permission, ACL};
6 6
 use HexMakina\kadro\Auth\AccessRefusedException;
7 7
 use HexMakina\BlackBox\Auth\OperatorInterface;
8 8
 // use HexMakina\LeMarchand\LeMarchand;
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
         $target_controller = $this->get('Controllers\\'.$router->targetController());
28 28
 
29 29
         if ($target_controller->requiresOperator()) {
30
-            if(is_null($operator_id = $this->get('HexMakina\BlackBox\StateAgentInterface')->operatorId()))
30
+            if (is_null($operator_id = $this->get('HexMakina\BlackBox\StateAgentInterface')->operatorId()))
31 31
                 $this->checkin();
32 32
 
33
-            if(is_null($operator = get_class($operator)::exists($operator_id)) || !$operator->isActive()){
33
+            if (is_null($operator = get_class($operator)::exists($operator_id)) || !$operator->isActive()) {
34 34
               $this->checkout();
35 35
             }
36 36
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $this->logger()->notice($this->l('PAGE_CHECKIN_WELCOME', [$operator->name()]));
71 71
             $this->router()->hop();
72 72
         } catch (\Exception $e) {
73
-            $this->logger()->warning($this->l('KADRO_operator_' . $e->getMessage()));
73
+            $this->logger()->warning($this->l('KADRO_operator_'.$e->getMessage()));
74 74
             $this->router()->hop('checkin');
75 75
         }
76 76
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
         $target_controller = $this->get('Controllers\\'.$router->targetController());
28 28
 
29 29
         if ($target_controller->requiresOperator()) {
30
-            if(is_null($operator_id = $this->get('HexMakina\BlackBox\StateAgentInterface')->operatorId()))
31
-                $this->checkin();
30
+            if(is_null($operator_id = $this->get('HexMakina\BlackBox\StateAgentInterface')->operatorId())) {
31
+                            $this->checkin();
32
+            }
32 33
 
33 34
             if(is_null($operator = get_class($operator)::exists($operator_id)) || !$operator->isActive()){
34 35
               $this->checkout();
Please login to merge, or discard this patch.
Models/Lingvo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function __toString()
30 30
     {
31
-        return $this->iso_name() . ' (' . $this->get(self::ISO_3) . ')';
31
+        return $this->iso_name().' ('.$this->get(self::ISO_3).')';
32 32
     }
33 33
 
34 34
     public function traceable(): bool
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         if (isset($filter['types'])) {
77
-            $wc = sprintf("AND " . self::ISO_TYPE . " IN ('%s') ", implode('\', \'', array_keys(self::ISO_TYPES)));
77
+            $wc = sprintf("AND ".self::ISO_TYPE." IN ('%s') ", implode('\', \'', array_keys(self::ISO_TYPES)));
78 78
             $Query->where($wc);
79 79
         }
80 80
         if (isset($filter['scopes'])) {
81
-            $wc = sprintf("AND " . self::ISO_SCOPE . " IN ('%s') ", implode('\', \'', array_keys(self::ISO_SCOPES)));
81
+            $wc = sprintf("AND ".self::ISO_SCOPE." IN ('%s') ", implode('\', \'', array_keys(self::ISO_SCOPES)));
82 82
             $Query->where($wc);
83 83
         }
84 84
 
Please login to merge, or discard this patch.