Completed
Pull Request — master (#13)
by Samuel
11:40
created
src/Repository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public static function prefixColumn(string $column): string
58 58
     {
59
-        return static::getTableName() . '.' . $column;
59
+        return static::getTableName().'.'.$column;
60 60
     }
61 61
 
62 62
     public function getDatabaseExplorer(): Explorer
@@ -77,14 +77,14 @@  discard block
 block discarded – undo
77 77
             $scopeName = lcfirst(substr($name, 5));
78 78
             $scope = $this->structure->getScope(static::$tableName, $scopeName);
79 79
             if (!$scope) {
80
-                throw new RepositoryException('Scope ' . $scopeName . ' is not defined for table ' . static::$tableName);
80
+                throw new RepositoryException('Scope '.$scopeName.' is not defined for table '.static::$tableName);
81 81
             }
82 82
 
83
-            $scopeNameToCall = 'scope' . ucfirst($scope->getName());
83
+            $scopeNameToCall = 'scope'.ucfirst($scope->getName());
84 84
             return call_user_func_array([$this->findAll(), $scopeNameToCall], $arguments);
85 85
         }
86 86
 
87
-        throw new RepositoryException('Call to undefined method ' . get_class($this) . '::' . $name . '()');
87
+        throw new RepositoryException('Call to undefined method '.get_class($this).'::'.$name.'()');
88 88
     }
89 89
 
90 90
     /********************************************************************\
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function insert(array $data): ?ActiveRow
122 122
     {
123
-        $result = $this->transaction(function () use ($data) {
123
+        $result = $this->transaction(function() use ($data) {
124 124
             foreach ($this->behaviours as $behaviour) {
125 125
                 $data = $behaviour->beforeInsert($data);
126 126
             }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
     public function update(ActiveRow $record, array $data): ?ActiveRow
146 146
     {
147
-        $result = $this->transaction(function () use ($record, $data) {
147
+        $result = $this->transaction(function() use ($record, $data) {
148 148
             $oldRecord = clone $record;
149 149
 
150 150
             foreach ($this->behaviours as $behaviour) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
     public function delete(ActiveRow $record): bool
167 167
     {
168
-        return $this->transaction(function () use ($record): bool {
168
+        return $this->transaction(function() use ($record): bool {
169 169
             $oldRecord = clone $record;
170 170
 
171 171
             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.