GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 11-17 lines in 3 locations

src/php/Storyplayer/SPv2/Modules/ZeroMQ/FromZmqSocket.php 1 location

@@ 155-166 (lines=12) @@
152
        return $return;
153
    }
154
155
    public function getEndpoints()
156
    {
157
        // what are we doing?
158
        $log = Log::usingLog()->startAction("get the list of endpoints for a ZMQ socket");
159
160
        // do it
161
        $endpoints = $this->args[0]->getEndpoints();
162
163
        // all done
164
        $log->endAction($endpoints);
165
        return $endpoints;
166
    }
167
}
168

src/php/Storyplayer/SPv2/Modules/ZeroMQ/UsingZmqSocket.php 1 location

@@ 84-94 (lines=11) @@
81
        $log->endAction();
82
    }
83
84
    public function unbindFromPort($port)
85
    {
86
        // what are we doing?
87
        $log = Log::usingLog()->startAction("unbind() ZMQ tcp socket at host 'localhost':{$port}");
88
89
        // attempt the unbind
90
        $this->args[0]->unbind("tcp://*:{$port}");
91
92
        // all done
93
        $log->endAction();
94
    }
95
96
    public function unbindFromAllPorts()
97
    {

src/php/StoryplayerInternals/SPv2/Modules/RuntimeTable/FromRuntimeTables.php 1 location

@@ 136-152 (lines=17) @@
133
     *         returns an object if the table exists
134
     *         returns NULL otherwise
135
     */
136
    public function getTable($tableName)
137
    {
138
        // what are we doing?
139
        $log = Log::usingLog()->startAction("get runtime table '{$tableName}'");
140
141
        // do we have one?
142
        $table = $this->getTableSilently($tableName);
143
144
        // all done
145
        //
146
        // NOTE: we do not log the contents of the table here, to avoid spamming
147
        // the logs
148
        //
149
        // when we have more fine-grained logging, we can revisit this
150
        $log->endAction();
151
        return $table;
152
    }
153
154
    /**
155
     * return a named table, without writing to the log