Completed
Pull Request — master (#13)
by Samuel
13:56
created
src/Repository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public static function prefixColumn(string $column): string
62 62
     {
63
-        return static::getTableName() . '.' . $column;
63
+        return static::getTableName().'.'.$column;
64 64
     }
65 65
 
66 66
     public function getDatabaseExplorer(): Explorer
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
             $scope = $this->structure->getScope(static::$tableName, $scopeName);
83 83
             if (!$scope) {
84 84
                 throw new RepositoryException(
85
-                    'Scope ' . $scopeName . ' is not defined for table ' . static::$tableName
85
+                    'Scope '.$scopeName.' is not defined for table '.static::$tableName
86 86
                 );
87 87
             }
88 88
 
89
-            $scopeNameToCall = 'scope' . ucfirst($scope->getName());
89
+            $scopeNameToCall = 'scope'.ucfirst($scope->getName());
90 90
             return call_user_func_array([$this->findAll(), $scopeNameToCall], $arguments);
91 91
         }
92 92
 
93
-        throw new RepositoryException('Call to undefined method ' . get_class($this) . '::' . $name . '()');
93
+        throw new RepositoryException('Call to undefined method '.get_class($this).'::'.$name.'()');
94 94
     }
95 95
 
96 96
     /********************************************************************\
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function insert(array $data): ?ActiveRow
128 128
     {
129
-        $result = $this->transaction(function () use ($data) {
129
+        $result = $this->transaction(function() use ($data) {
130 130
             foreach ($this->behaviours as $behaviour) {
131 131
                 $data = $behaviour->beforeInsert($data);
132 132
             }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     public function update(ActiveRow $record, array $data): ?ActiveRow
152 152
     {
153
-        $result = $this->transaction(function () use ($record, $data) {
153
+        $result = $this->transaction(function() use ($record, $data) {
154 154
             $oldRecord = clone $record;
155 155
 
156 156
             foreach ($this->behaviours as $behaviour) {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function delete(ActiveRow $record): bool
173 173
     {
174
-        return $this->transaction(function () use ($record): bool {
174
+        return $this->transaction(function() use ($record): bool {
175 175
             $oldRecord = clone $record;
176 176
 
177 177
             foreach ($this->behaviours as $behaviour) {
Please login to merge, or discard this patch.
src/Selection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,14 +59,14 @@
 block discarded – undo
59 59
             $scope = $this->structure->getScope($this->selection->getName(), $scopeName);
60 60
             if (!$scope) {
61 61
                 trigger_error(
62
-                    'Scope ' . $scopeName . ' is not defined for table ' . $this->selection->getName(),
62
+                    'Scope '.$scopeName.' is not defined for table '.$this->selection->getName(),
63 63
                     E_USER_ERROR
64 64
                 );
65 65
             }
66 66
             return $this->where(call_user_func_array($scope->getCallback(), $arguments));
67 67
         }
68 68
 
69
-        trigger_error('Call to undefined method ' . get_class($this) . '::' . $name . '()', E_USER_ERROR);
69
+        trigger_error('Call to undefined method '.get_class($this).'::'.$name.'()', E_USER_ERROR);
70 70
     }
71 71
 
72 72
     /**********************************************************************\
Please login to merge, or discard this patch.